270 references to Name
Microsoft.CodeAnalysis (7)
Compilation\Compilation.cs (1)
3260Debug.Assert(!deterministic || moduleBeingBuilt.PdbChecksumAlgorithm.Name != null);
Compilation\DeterministicKeyBuilder.cs (1)
416writer.Write("pdbChecksumAlgorithm", options.PdbChecksumAlgorithm.Name);
Emit\EmitOptions.cs (1)
367if (PdbChecksumAlgorithm.Name != null)
NativePdbWriter\PdbWriter.cs (1)
42private bool IsDeterministic { get => _hashAlgorithmNameOpt.Name != null; }
PEWriter\PeWriter.cs (3)
204Debug.Assert(!isDeterministic || context.Module.PdbChecksumAlgorithm.Name != null); 206var portablePdbIdProvider = (context.Module.PdbChecksumAlgorithm.Name != null) ? 252debugDirectoryBuilder.AddPdbChecksumEntry(context.Module.PdbChecksumAlgorithm.Name!, portablePdbContentHash);
Microsoft.DotNet.Build.Tasks.Workloads (1)
Utils.cs (1)
26HashAlgorithm algorithm = HashAlgorithm.Create(hashName.Name);
Microsoft.DotNet.SignCheckLibrary (3)
Verification\ArchiveVerifier.cs (3)
40string hashedPath = String.IsNullOrEmpty(directoryName) ? Utils.GetHash(@".\", HashAlgorithmName.SHA256.Name) : 41Utils.GetHash(directoryName, HashAlgorithmName.SHA256.Name); 46Utils.GetHash(archiveEntry.FullName, HashAlgorithmName.SHA256.Name) + Path.GetExtension(archiveEntry.FullName); // lgtm [cs/zipslip] Archive from trusted source
Roslyn.Test.PdbUtilities (2)
Reader\PdbValidation.cs (2)
607if ((portablePdbStreamOpt != null || hasEmbeddedPdb) && hashAlgorithm.Name != null) 612Assert.Equal(hashAlgorithm.Name, pdbChecksumData.AlgorithmName);
System.Security.Cryptography (248)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.EvpPkey.Rsa.cs (4)
140ArgumentNullException.ThrowIfNull(digestAlgorithm.Name, nameof(digestAlgorithm)); 142IntPtr digestAlgorithmPtr = Interop.Crypto.HashAlgorithmToEvp(digestAlgorithm.Name); 181ArgumentNullException.ThrowIfNull(digestAlgorithm.Name, nameof(digestAlgorithm)); 183IntPtr digestAlgorithmPtr = Interop.Crypto.HashAlgorithmToEvp(digestAlgorithm.Name);
src\libraries\Common\src\System\Security\Cryptography\ECDiffieHellmanDerivation.cs (2)
24Debug.Assert(!string.IsNullOrEmpty(hashAlgorithm.Name)); 49Debug.Assert(!string.IsNullOrEmpty(hashAlgorithm.Name));
src\libraries\Common\src\System\Security\Cryptography\ECDiffieHellmanOpenSsl.Derive.cs (2)
24ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 44ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm));
src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (3)
48pbeParameters.HashAlgorithm.Name); 148Debug.Assert(digestAlgorithmName.Name != null); 301throw new CryptographicException(SR.Cryptography_UnknownHashAlgorithm, prf.Name);
src\libraries\Common\src\System\Security\Cryptography\Pkcs12Kdf.cs (1)
101throw new CryptographicException(SR.Cryptography_UnknownHashAlgorithm, hashAlgorithm.Name);
src\libraries\Common\src\System\Security\Cryptography\RSAOpenSsl.cs (8)
193Debug.Assert(padding.OaepHashAlgorithm.Name != null); 194hashAlgorithm = Interop.Crypto.HashAlgorithmToEvp(padding.OaepHashAlgorithm.Name); 260Debug.Assert(padding.OaepHashAlgorithm.Name != null); 261hashAlgorithm = Interop.Crypto.HashAlgorithmToEvp(padding.OaepHashAlgorithm.Name); 730ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 756ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 788ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 845padding.OaepHashAlgorithm.Name is string name &&
src\libraries\Common\src\System\Security\Cryptography\RsaPaddingProcessor.cs (1)
75switch (hashAlgorithmName.Name)
src\libraries\Common\src\System\Security\Cryptography\SP800108HmacCounterKdf.cs (17)
50/// <paramref name="hashAlgorithm" /> has a <see cref="HashAlgorithmName.Name" /> that's <see langword="null" />. 53/// <paramref name="hashAlgorithm" /> has a <see cref="HashAlgorithmName.Name" /> that's empty. 74/// <paramref name="hashAlgorithm" /> has a <see cref="HashAlgorithmName.Name" /> that's <see langword="null" />. 82/// <paramref name="hashAlgorithm" /> has a <see cref="HashAlgorithmName.Name" /> that's empty. 125/// <paramref name="hashAlgorithm" /> has a <see cref="HashAlgorithmName.Name" /> that's <see langword="null" />. 129/// <paramref name="hashAlgorithm" /> has a <see cref="HashAlgorithmName.Name" /> that's empty. 183/// <paramref name="hashAlgorithm" /> has a <see cref="HashAlgorithmName.Name" /> that's <see langword="null" />. 187/// <paramref name="hashAlgorithm" /> has a <see cref="HashAlgorithmName.Name" /> that's empty. 236/// <paramref name="hashAlgorithm" /> has a <see cref="HashAlgorithmName.Name" /> that's <see langword="null" />. 239/// <paramref name="hashAlgorithm" /> has a <see cref="HashAlgorithmName.Name" /> that's empty. 269/// <paramref name="hashAlgorithm" /> has a <see cref="HashAlgorithmName.Name" /> that's <see langword="null" />. 272/// <paramref name="hashAlgorithm" /> has a <see cref="HashAlgorithmName.Name" /> that's empty. 300/// <paramref name="hashAlgorithm" /> has a <see cref="HashAlgorithmName.Name" /> that's <see langword="null" />. 303/// <paramref name="hashAlgorithm" /> has a <see cref="HashAlgorithmName.Name" /> that's empty. 341/// <paramref name="hashAlgorithm" /> has a <see cref="HashAlgorithmName.Name" /> that's <see langword="null" />. 344/// <paramref name="hashAlgorithm" /> has a <see cref="HashAlgorithmName.Name" /> that's empty. 549string? hashAlgorithmName = hashAlgorithm.Name;
System\Security\Cryptography\CryptographicOperations.cs (63)
78/// <paramref name="hashAlgorithm"/> has a <see cref="HashAlgorithmName.Name" /> that is 83/// <paramref name="hashAlgorithm"/> has a <see cref="HashAlgorithmName.Name" /> that is empty. 104/// <paramref name="hashAlgorithm"/> has a <see cref="HashAlgorithmName.Name" /> that is 108/// <paramref name="hashAlgorithm"/> has a <see cref="HashAlgorithmName.Name" /> that is empty. 119Debug.Assert(hashAlgorithm.Name is not null); 122int written = HashProviderDispenser.OneShotHashProvider.HashData(hashAlgorithm.Name, source, buffer); 137/// <para><paramref name="hashAlgorithm"/> has a <see cref="HashAlgorithmName.Name" /> that is empty.</para> 140/// <paramref name="hashAlgorithm"/> has a <see cref="HashAlgorithmName.Name" /> that is 173/// <paramref name="hashAlgorithm"/> has a <see cref="HashAlgorithmName.Name" /> that is empty. 176/// <paramref name="hashAlgorithm"/> has a <see cref="HashAlgorithmName.Name" /> that is 188Debug.Assert(hashAlgorithm.Name is not null); 196bytesWritten = HashProviderDispenser.OneShotHashProvider.HashData(hashAlgorithm.Name, source, destination); 211/// <paramref name="hashAlgorithm"/> has a <see cref="HashAlgorithmName.Name" /> that is 216/// <para><paramref name="hashAlgorithm"/> has a <see cref="HashAlgorithmName.Name" /> that is empty.</para> 230Debug.Assert(hashAlgorithm.Name is not null); 231return LiteHashProvider.HashStream(hashAlgorithm.Name, hashSizeInBytes, source); 245/// <paramref name="hashAlgorithm"/> has a <see cref="HashAlgorithmName.Name" /> that is 252/// <para><paramref name="hashAlgorithm"/> has a <see cref="HashAlgorithmName.Name" /> that is empty.</para> 266Debug.Assert(hashAlgorithm.Name is not null); 269int written = LiteHashProvider.HashStream(hashAlgorithm.Name, source, destination); 288/// <paramref name="hashAlgorithm"/> has a <see cref="HashAlgorithmName.Name" /> that is 295/// <para><paramref name="hashAlgorithm"/> has a <see cref="HashAlgorithmName.Name" /> that is empty.</para> 316Debug.Assert(hashAlgorithm.Name is not null); 320hashAlgorithm.Name, 339/// <paramref name="hashAlgorithm"/> has a <see cref="HashAlgorithmName.Name" /> that is 344/// <para><paramref name="hashAlgorithm"/> has a <see cref="HashAlgorithmName.Name" /> that is empty.</para> 364Debug.Assert(hashAlgorithm.Name is not null); 366return LiteHashProvider.HashStreamAsync(hashAlgorithm.Name, source, cancellationToken); 380/// <paramref name="hashAlgorithm"/> has a <see cref="HashAlgorithmName.Name" /> that is 385/// <paramref name="hashAlgorithm"/> has a <see cref="HashAlgorithmName.Name" /> that is empty. 408/// <paramref name="hashAlgorithm"/> has a <see cref="HashAlgorithmName.Name" /> that is 412/// <paramref name="hashAlgorithm"/> has a <see cref="HashAlgorithmName.Name" /> that is empty. 423Debug.Assert(hashAlgorithm.Name is not null); 426int written = HashProviderDispenser.OneShotHashProvider.MacData(hashAlgorithm.Name, key, source, buffer); 442/// <para><paramref name="hashAlgorithm"/> has a <see cref="HashAlgorithmName.Name" /> that is empty.</para> 445/// <paramref name="hashAlgorithm"/> has a <see cref="HashAlgorithmName.Name" /> that is 483/// <paramref name="hashAlgorithm"/> has a <see cref="HashAlgorithmName.Name" /> that is empty. 486/// <paramref name="hashAlgorithm"/> has a <see cref="HashAlgorithmName.Name" /> that is 503Debug.Assert(hashAlgorithm.Name is not null); 511bytesWritten = HashProviderDispenser.OneShotHashProvider.MacData(hashAlgorithm.Name, key, source, destination); 527/// <paramref name="hashAlgorithm"/> has a <see cref="HashAlgorithmName.Name" /> that is 532/// <para><paramref name="hashAlgorithm"/> has a <see cref="HashAlgorithmName.Name" /> that is empty.</para> 559/// <paramref name="hashAlgorithm"/> has a <see cref="HashAlgorithmName.Name" /> that is 564/// <para><paramref name="hashAlgorithm"/> has a <see cref="HashAlgorithmName.Name" /> that is empty.</para> 578Debug.Assert(hashAlgorithm.Name is not null); 580return LiteHashProvider.HmacStream(hashAlgorithm.Name, hashSizeInBytes, key, source); 595/// <paramref name="hashAlgorithm"/> has a <see cref="HashAlgorithmName.Name" /> that is 600/// <para><paramref name="hashAlgorithm"/> has a <see cref="HashAlgorithmName.Name" /> that is empty.</para> 616Debug.Assert(hashAlgorithm.Name is not null); 619return LiteHashProvider.HmacStream(hashAlgorithm.Name, key, source, destination); 636/// <paramref name="hashAlgorithm"/> has a <see cref="HashAlgorithmName.Name" /> that is 641/// <para><paramref name="hashAlgorithm"/> has a <see cref="HashAlgorithmName.Name" /> that is empty.</para> 679/// <paramref name="hashAlgorithm"/> has a <see cref="HashAlgorithmName.Name" /> that is 686/// <para><paramref name="hashAlgorithm"/> has a <see cref="HashAlgorithmName.Name" /> that is empty.</para> 708Debug.Assert(hashAlgorithm.Name is not null); 711return LiteHashProvider.HmacStreamAsync(hashAlgorithm.Name, key.Span, source, destination, cancellationToken); 728/// <paramref name="hashAlgorithm"/> has a <see cref="HashAlgorithmName.Name" /> that is 733/// <para><paramref name="hashAlgorithm"/> has a <see cref="HashAlgorithmName.Name" /> that is empty.</para> 754Debug.Assert(hashAlgorithm.Name is not null); 756return LiteHashProvider.HmacStreamAsync(hashAlgorithm.Name, key.Span, source, cancellationToken); 773ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 775switch (hashAlgorithm.Name) 809throw new CryptographicException(SR.Format(SR.Cryptography_UnknownHashAlgorithm, hashAlgorithm.Name));
System\Security\Cryptography\DSA.cs (21)
120/// <paramref name="hashAlgorithm"/> has a <see langword="null"/> or empty <see cref="HashAlgorithmName.Name"/>. 129ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 146ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 183/// <paramref name="hashAlgorithm"/> has a <see langword="null"/> or empty <see cref="HashAlgorithmName.Name"/>. 203ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 244ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 266/// <paramref name="hashAlgorithm"/> has a <see langword="null"/> or empty <see cref="HashAlgorithmName.Name"/>. 274ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 317ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 355/// <paramref name="hashAlgorithm"/> has a <see langword="null"/> or empty <see cref="HashAlgorithmName.Name"/>. 377ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 388ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 543ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 575/// <paramref name="hashAlgorithm"/> has a <see langword="null"/> or empty <see cref="HashAlgorithmName.Name"/>. 587ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 631ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 653/// <paramref name="hashAlgorithm"/> has a <see langword="null"/> or empty <see cref="HashAlgorithmName.Name"/>. 666ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 690/// <paramref name="hashAlgorithm"/> has a <see langword="null"/> or empty <see cref="HashAlgorithmName.Name"/>. 703ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 755ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm));
System\Security\Cryptography\DSACryptoServiceProvider.Unix.cs (9)
104throw new CryptographicException(SR.Cryptography_UnknownHashAlgorithm, hashAlgorithm.Name); 112throw new CryptographicException(SR.Cryptography_UnknownHashAlgorithm, hashAlgorithm.Name); 120throw new CryptographicException(SR.Cryptography_UnknownHashAlgorithm, hashAlgorithm.Name); 206throw new CryptographicException(SR.Cryptography_UnknownHashAlgorithm, hashAlgorithm.Name); 214throw new CryptographicException(SR.Cryptography_UnknownHashAlgorithm, hashAlgorithm.Name); 222throw new CryptographicException(SR.Cryptography_UnknownHashAlgorithm, hashAlgorithm.Name); 264throw new CryptographicException(SR.Cryptography_UnknownHashAlgorithm, hashAlgorithm.Name); 272throw new CryptographicException(SR.Cryptography_UnknownHashAlgorithm, hashAlgorithm.Name); 280throw new CryptographicException(SR.Cryptography_UnknownHashAlgorithm, hashAlgorithm.Name);
System\Security\Cryptography\ECDsa.cs (33)
60ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 97/// <paramref name="hashAlgorithm"/> has a <see langword="null"/> or empty <see cref="HashAlgorithmName.Name"/>. 117ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 196/// <paramref name="hashAlgorithm"/> has a <see langword="null"/> or empty <see cref="HashAlgorithmName.Name"/>. 204ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 227/// <paramref name="hashAlgorithm"/> has a <see langword="null"/> or empty <see cref="HashAlgorithmName.Name"/>. 235ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 468ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 495/// <paramref name="hashAlgorithm"/> has a <see langword="null"/> or empty <see cref="HashAlgorithmName.Name"/>. 507ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 549ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 568/// <paramref name="hashAlgorithm" />'s <see cref="HashAlgorithmName.Name" /> is an empty string. 571/// <paramref name="hashAlgorithm" />'s <see cref="HashAlgorithmName.Name" /> is <see langword="null" />. 581ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 602/// <paramref name="hashAlgorithm" />'s <see cref="HashAlgorithmName.Name" /> is an empty string. 605/// <paramref name="hashAlgorithm" />'s <see cref="HashAlgorithmName.Name" /> is <see langword="null" />. 613ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 641/// <paramref name="hashAlgorithm" />'s <see cref="HashAlgorithmName.Name" /> is an empty string. 649/// <paramref name="hashAlgorithm" />'s <see cref="HashAlgorithmName.Name" /> is <see langword="null" />. 661ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 691/// <paramref name="hashAlgorithm" />'s <see cref="HashAlgorithmName.Name" /> is an empty string. 699/// <paramref name="hashAlgorithm" />'s <see cref="HashAlgorithmName.Name" /> is <see langword="null" />. 709ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 737ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 775/// <paramref name="hashAlgorithm"/> has a <see langword="null"/> or empty <see cref="HashAlgorithmName.Name"/>. 797ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 825/// <paramref name="hashAlgorithm"/> has a <see langword="null"/> or empty <see cref="HashAlgorithmName.Name"/>. 834ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 843ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 872ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 919ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 942/// <paramref name="hashAlgorithm"/> has a <see langword="null"/> or empty <see cref="HashAlgorithmName.Name"/>. 956ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm));
System\Security\Cryptography\HKDF.OpenSsl.cs (6)
22Debug.Assert(hashAlgorithmName.Name is not null); 24Interop.Crypto.HkdfExtract(Interop.Crypto.EvpKdfAlgs.Hkdf, ikm, hashAlgorithmName.Name, salt, prk); 42Debug.Assert(hashAlgorithmName.Name is not null); 44Interop.Crypto.HkdfExpand(Interop.Crypto.EvpKdfAlgs.Hkdf, prk, hashAlgorithmName.Name, info, output); 63Debug.Assert(hashAlgorithmName.Name is not null); 68hashAlgorithmName.Name,
System\Security\Cryptography\IncrementalHash.cs (12)
30Debug.Assert(!string.IsNullOrEmpty(name.Name)); 40Debug.Assert(!string.IsNullOrEmpty(name.Name)); 43_algorithmName = new HashAlgorithmName("HMAC" + name.Name); 319/// <paramref name="hashAlgorithm"/>.<see cref="HashAlgorithmName.Name"/> is <c>null</c>, or 325ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 326CheckSha3Support(hashAlgorithm.Name); 328return new IncrementalHash(hashAlgorithm, HashProviderDispenser.CreateHashProvider(hashAlgorithm.Name)); 349/// <paramref name="hashAlgorithm"/>.<see cref="HashAlgorithmName.Name"/> is <c>null</c>, or 378/// <paramref name="hashAlgorithm"/>.<see cref="HashAlgorithmName.Name"/> is <c>null</c>, or 384ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 385CheckSha3Support(hashAlgorithm.Name); 387return new IncrementalHash(hashAlgorithm, new HMACCommon(hashAlgorithm.Name, key, -1));
System\Security\Cryptography\Pbkdf2Implementation.OpenSsl.cs (2)
18Debug.Assert(hashAlgorithmName.Name is not null); 19IntPtr evpHashType = Interop.Crypto.HashAlgorithmToEvp(hashAlgorithmName.Name);
System\Security\Cryptography\Rfc2898DeriveBytes.cs (2)
246if (string.IsNullOrEmpty(hashAlgorithm.Name)) 260throw new CryptographicException(SR.Format(SR.Cryptography_UnknownHashAlgorithm, hashAlgorithm.Name));
System\Security\Cryptography\Rfc2898DeriveBytes.OneShot.cs (16)
32/// <paramref name="hashAlgorithm" /> has a <see cref="HashAlgorithmName.Name" /> 67/// <paramref name="hashAlgorithm" /> has a <see cref="HashAlgorithmName.Name" /> 104/// <paramref name="hashAlgorithm" /> has a <see cref="HashAlgorithmName.Name" /> 143/// <paramref name="hashAlgorithm" /> has a <see cref="HashAlgorithmName.Name" /> 186/// <paramref name="hashAlgorithm" /> has a <see cref="HashAlgorithmName.Name" /> 231/// <paramref name="hashAlgorithm" /> has a <see cref="HashAlgorithmName.Name" /> 268Debug.Assert(hashAlgorithm.Name is not null); 309Debug.Assert(hashAlgorithm.Name is not null); 322string? hashAlgorithmName = hashAlgorithm.Name; 326if (hashAlgorithmName == HashAlgorithmName.SHA1.Name || 327hashAlgorithmName == HashAlgorithmName.SHA256.Name || 328hashAlgorithmName == HashAlgorithmName.SHA384.Name || 329hashAlgorithmName == HashAlgorithmName.SHA512.Name) 334if (hashAlgorithmName == HashAlgorithmName.SHA3_256.Name || 335hashAlgorithmName == HashAlgorithmName.SHA3_384.Name || 336hashAlgorithmName == HashAlgorithmName.SHA3_512.Name)
System\Security\Cryptography\RSA.cs (18)
394ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 404ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 413ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 434/// <paramref name="padding" /> or <paramref name="hashAlgorithm" />'s <see cref="HashAlgorithmName.Name" /> is <see langword="null" />. 437/// <paramref name="hashAlgorithm" />'s <see cref="HashAlgorithmName.Name" /> is an empty string. 458ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 487/// <paramref name="padding" /> or <paramref name="hashAlgorithm" />'s <see cref="HashAlgorithmName.Name" /> is <see langword="null" />. 491/// <paramref name="hashAlgorithm" />'s <see cref="HashAlgorithmName.Name" /> is an empty string. 521ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 540/// <paramref name="padding" /> or <paramref name="hashAlgorithm" />'s <see cref="HashAlgorithmName.Name" /> is <see langword="null" />. 543/// <paramref name="hashAlgorithm" />'s <see cref="HashAlgorithmName.Name" /> is an empty string. 564ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 589/// <paramref name="padding" /> or <paramref name="hashAlgorithm" />'s <see cref="HashAlgorithmName.Name" /> is <see langword="null" />. 593/// <paramref name="hashAlgorithm" />'s <see cref="HashAlgorithmName.Name" /> is an empty string. 623ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 658ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 669ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 678ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm));
System\Security\Cryptography\RSACryptoServiceProvider.Unix.cs (1)
372throw new CryptographicException(SR.Format(SR.Cryptography_UnknownHashAlgorithm, hashAlgorithm.Name));
System\Security\Cryptography\RSAEncryptionPadding.cs (3)
68ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 85/// If <see cref="Mode"/> is not <see cref="RSAEncryptionPaddingMode.Oaep"/>, then <see cref="HashAlgorithmName.Name" /> will be null. 132return _mode.ToString() + _oaepHashAlgorithm.Name;
System\Security\Cryptography\SP800108HmacCounterKdfImplementationOpenSsl.cs (2)
44_hashAlgorithm.Name!, 89hashAlgorithm.Name!,
System\Security\Cryptography\X509Certificates\CertificateRequest.cs (6)
75ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 102ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 133ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 169ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 197ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 228ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm));
System\Security\Cryptography\X509Certificates\CertificateRequest.Load.cs (2)
39ArgumentException.ThrowIfNullOrEmpty(signerHashAlgorithm.Name, nameof(signerHashAlgorithm)); 121ArgumentException.ThrowIfNullOrEmpty(signerHashAlgorithm.Name, nameof(signerHashAlgorithm));
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.Build.cs (6)
53/// <see cref="HashAlgorithmName.Name"/>. 95/// <see cref="HashAlgorithmName.Name"/>. 143ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 273/// <see cref="HashAlgorithmName.Name"/>. 283/// <see cref="HashAlgorithmName.Name"/>. 327ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm));
System\Security\Cryptography\X509Certificates\ECDsaX509SignatureGenerator.cs (1)
54SR.Format(SR.Cryptography_UnknownHashAlgorithm, hashAlgorithm.Name));
System\Security\Cryptography\X509Certificates\RSAPkcs1X509SignatureGenerator.cs (1)
80SR.Format(SR.Cryptography_UnknownHashAlgorithm, hashAlgorithm.Name));
System\Security\Cryptography\X509Certificates\RSAPssX509SignatureGenerator.cs (1)
58SR.Format(SR.Cryptography_UnknownHashAlgorithm, hashAlgorithm.Name));
System\Security\Cryptography\X509Certificates\X509Certificate2Collection.cs (5)
599/// <paramref name="hashAlgorithm"/>.<see cref="HashAlgorithmName.Name"/> is <see langword="null"/> or empty. 636/// <paramref name="hashAlgorithm"/>.<see cref="HashAlgorithmName.Name"/> is <see langword="null"/> or empty. 661ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 695/// <paramref name="hashAlgorithm"/>.<see cref="HashAlgorithmName.Name"/> is <see langword="null"/> or empty. 711ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm));
System.Security.Cryptography.Cose (3)
System\Security\Cryptography\Cose\CoseSigner.cs (3)
164exMsg = SR.Format(SR.Sign1SignCoseAlgorithmDoesNotMatchSpecifiedKeyHashAlgorithmAndPadding, alg.Value, _keyType, HashAlgorithm.Name, RSASignaturePadding); 168exMsg = SR.Format(SR.Sign1SignCoseAlgorithmDoesNotMatchSpecifiedKeyAndHashAlgorithm, alg.Value, _keyType, HashAlgorithm.Name); 177string? hashAlgorithmName = HashAlgorithm.Name;
System.Security.Cryptography.Pkcs (6)
Internal\Cryptography\PkcsHelpers.cs (1)
109throw new CryptographicException(SR.Cryptography_Cms_UnknownAlgorithm, algName.Name);
src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (3)
48pbeParameters.HashAlgorithm.Name); 148Debug.Assert(digestAlgorithmName.Name != null); 301throw new CryptographicException(SR.Cryptography_UnknownHashAlgorithm, prf.Name);
src\libraries\Common\src\System\Security\Cryptography\Pkcs12Kdf.cs (1)
101throw new CryptographicException(SR.Cryptography_UnknownHashAlgorithm, hashAlgorithm.Name);
System\Security\Cryptography\Pkcs\CmsSignature.RSA.cs (1)
366Debug.Assert(hashAlgorithmName == HashAlgorithmName.MD5, $"Unsupported digest algorithm '{hashAlgorithmName.Name}'");