225 references to HashAlgorithmNames
System.Security.Cryptography (225)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.EVP.DigestAlgs.cs (19)
132case HashAlgorithmNames.SHA1: return EvpSha1(); 133case HashAlgorithmNames.SHA256: return EvpSha256(); 134case HashAlgorithmNames.SHA384: return EvpSha384(); 135case HashAlgorithmNames.SHA512: return EvpSha512(); 136case HashAlgorithmNames.SHA3_256: 139case HashAlgorithmNames.SHA3_384: 142case HashAlgorithmNames.SHA3_512: 145case HashAlgorithmNames.SHAKE128: 148case HashAlgorithmNames.SHAKE256: 161case HashAlgorithmNames.SHA1: 162case HashAlgorithmNames.SHA256: 163case HashAlgorithmNames.SHA384: 164case HashAlgorithmNames.SHA512: 165case HashAlgorithmNames.MD5: 167case HashAlgorithmNames.SHA3_256: 169case HashAlgorithmNames.SHA3_384: 171case HashAlgorithmNames.SHA3_512: 173case HashAlgorithmNames.SHAKE128: 175case HashAlgorithmNames.SHAKE256:
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.EVP.MacAlgs.cs (2)
25Kmac128 = EvpMacFetch(HashAlgorithmNames.KMAC128); 26Kmac256 = EvpMacFetch(HashAlgorithmNames.KMAC256);
src\libraries\Common\src\System\Security\Cryptography\RsaPaddingProcessor.cs (8)
77case HashAlgorithmNames.MD5: 80case HashAlgorithmNames.SHA1: 83case HashAlgorithmNames.SHA256: 86case HashAlgorithmNames.SHA384: 89case HashAlgorithmNames.SHA512: 92case HashAlgorithmNames.SHA3_256: 95case HashAlgorithmNames.SHA3_384: 98case HashAlgorithmNames.SHA3_512:
src\libraries\Common\src\System\Security\Cryptography\SP800108HmacCounterKdf.cs (7)
557case HashAlgorithmNames.SHA1: 558case HashAlgorithmNames.SHA256: 559case HashAlgorithmNames.SHA384: 560case HashAlgorithmNames.SHA512: 563case HashAlgorithmNames.SHA3_256: 569case HashAlgorithmNames.SHA3_384: 575case HashAlgorithmNames.SHA3_512:
System\Security\Cryptography\CryptographicOperations.cs (11)
777case HashAlgorithmNames.SHA256: 779case HashAlgorithmNames.SHA1: 781case HashAlgorithmNames.SHA512: 783case HashAlgorithmNames.SHA384: 785case HashAlgorithmNames.SHA3_256: 786if (!HashProviderDispenser.HashSupported(HashAlgorithmNames.SHA3_256)) 792case HashAlgorithmNames.SHA3_384: 793if (!HashProviderDispenser.HashSupported(HashAlgorithmNames.SHA3_384)) 799case HashAlgorithmNames.SHA3_512: 800if (!HashProviderDispenser.HashSupported(HashAlgorithmNames.SHA3_512)) 806case HashAlgorithmNames.MD5 when Helpers.HasMD5:
System\Security\Cryptography\DSASignatureDeformatter.cs (1)
28if (!strName.Equals(HashAlgorithmNames.SHA1, StringComparison.InvariantCultureIgnoreCase))
System\Security\Cryptography\DSASignatureFormatter.cs (1)
28if (!strName.Equals(HashAlgorithmNames.SHA1, StringComparison.InvariantCultureIgnoreCase))
System\Security\Cryptography\HashAlgorithmNames.cs (5)
34return HashAlgorithmNames.SHA1; 36return HashAlgorithmNames.SHA256; 38return HashAlgorithmNames.SHA384; 40return HashAlgorithmNames.SHA512; 42return HashAlgorithmNames.MD5;
System\Security\Cryptography\HashProviderDispenser.OpenSsl.cs (4)
18HashAlgorithmNames.KMAC128 => Interop.Crypto.EvpMacAlgs.Kmac128 is not null, 19HashAlgorithmNames.KMAC256 => Interop.Crypto.EvpMacAlgs.Kmac256 is not null, 36HashAlgorithmNames.KMAC128 => Interop.Crypto.EvpMacAlgs.Kmac128, 37HashAlgorithmNames.KMAC256 => Interop.Crypto.EvpMacAlgs.Kmac256,
System\Security\Cryptography\HMACCommon.cs (8)
62case HashAlgorithmNames.SHA256: 65case HashAlgorithmNames.SHA384: 68case HashAlgorithmNames.SHA512: 71case HashAlgorithmNames.SHA3_256: 75case HashAlgorithmNames.SHA3_384: 79case HashAlgorithmNames.SHA3_512: 83case HashAlgorithmNames.SHA1: 86case HashAlgorithmNames.MD5 when Helpers.HasMD5:
System\Security\Cryptography\HMACMD5.cs (7)
41this.HashName = HashAlgorithmNames.MD5; 42_hMacCommon = new HMACCommon(HashAlgorithmNames.MD5, key, BlockSize); 158bytesWritten = HashProviderDispenser.OneShotHashProvider.MacData(HashAlgorithmNames.MD5, key, source, destination); 195return LiteHashProvider.HmacStream(HashAlgorithmNames.MD5, key, source, destination); 218return LiteHashProvider.HmacStream(HashAlgorithmNames.MD5, HashSizeInBytes, key, source); 265return LiteHashProvider.HmacStreamAsync(HashAlgorithmNames.MD5, key.Span, source, cancellationToken); 332HashAlgorithmNames.MD5,
System\Security\Cryptography\HMACSHA1.cs (7)
40this.HashName = HashAlgorithmNames.SHA1; 41_hMacCommon = new HMACCommon(HashAlgorithmNames.SHA1, key, BlockSize); 160bytesWritten = HashProviderDispenser.OneShotHashProvider.MacData(HashAlgorithmNames.SHA1, key, source, destination); 196return LiteHashProvider.HmacStream(HashAlgorithmNames.SHA1, key, source, destination); 218return LiteHashProvider.HmacStream(HashAlgorithmNames.SHA1, HashSizeInBytes, key, source); 263return LiteHashProvider.HmacStreamAsync(HashAlgorithmNames.SHA1, key.Span, source, cancellationToken); 328HashAlgorithmNames.SHA1,
System\Security\Cryptography\HMACSHA256.cs (7)
39this.HashName = HashAlgorithmNames.SHA256; 40_hMacCommon = new HMACCommon(HashAlgorithmNames.SHA256, key, BlockSize); 152bytesWritten = HashProviderDispenser.OneShotHashProvider.MacData(HashAlgorithmNames.SHA256, key, source, destination); 188return LiteHashProvider.HmacStream(HashAlgorithmNames.SHA256, key, source, destination); 210return LiteHashProvider.HmacStream(HashAlgorithmNames.SHA256, HashSizeInBytes, key, source); 255return LiteHashProvider.HmacStreamAsync(HashAlgorithmNames.SHA256, key.Span, source, cancellationToken); 320HashAlgorithmNames.SHA256,
System\Security\Cryptography\HMACSHA3_256.cs (8)
63this.HashName = HashAlgorithmNames.SHA3_256; 64_hMacCommon = new HMACCommon(HashAlgorithmNames.SHA3_256, key, BlockSize); 77public static bool IsSupported { get; } = HashProviderDispenser.MacSupported(HashAlgorithmNames.SHA3_256); 190bytesWritten = HashProviderDispenser.OneShotHashProvider.MacData(HashAlgorithmNames.SHA3_256, key, source, destination); 227return LiteHashProvider.HmacStream(HashAlgorithmNames.SHA3_256, key, source, destination); 250return LiteHashProvider.HmacStream(HashAlgorithmNames.SHA3_256, HashSizeInBytes, key, source); 296return LiteHashProvider.HmacStreamAsync(HashAlgorithmNames.SHA3_256, key.Span, source, cancellationToken); 362HashAlgorithmNames.SHA3_256,
System\Security\Cryptography\HMACSHA3_384.cs (8)
63this.HashName = HashAlgorithmNames.SHA3_384; 64_hMacCommon = new HMACCommon(HashAlgorithmNames.SHA3_384, key, BlockSize); 77public static bool IsSupported { get; } = HashProviderDispenser.MacSupported(HashAlgorithmNames.SHA3_384); 190bytesWritten = HashProviderDispenser.OneShotHashProvider.MacData(HashAlgorithmNames.SHA3_384, key, source, destination); 227return LiteHashProvider.HmacStream(HashAlgorithmNames.SHA3_384, key, source, destination); 250return LiteHashProvider.HmacStream(HashAlgorithmNames.SHA3_384, HashSizeInBytes, key, source); 296return LiteHashProvider.HmacStreamAsync(HashAlgorithmNames.SHA3_384, key.Span, source, cancellationToken); 362HashAlgorithmNames.SHA3_384,
System\Security\Cryptography\HMACSHA3_512.cs (8)
63this.HashName = HashAlgorithmNames.SHA3_512; 64_hMacCommon = new HMACCommon(HashAlgorithmNames.SHA3_512, key, BlockSize); 77public static bool IsSupported { get; } = HashProviderDispenser.MacSupported(HashAlgorithmNames.SHA3_512); 190bytesWritten = HashProviderDispenser.OneShotHashProvider.MacData(HashAlgorithmNames.SHA3_512, key, source, destination); 227return LiteHashProvider.HmacStream(HashAlgorithmNames.SHA3_512, key, source, destination); 250return LiteHashProvider.HmacStream(HashAlgorithmNames.SHA3_512, HashSizeInBytes, key, source); 296return LiteHashProvider.HmacStreamAsync(HashAlgorithmNames.SHA3_512, key.Span, source, cancellationToken); 362HashAlgorithmNames.SHA3_512,
System\Security\Cryptography\HMACSHA384.cs (7)
39this.HashName = HashAlgorithmNames.SHA384; 40_hMacCommon = new HMACCommon(HashAlgorithmNames.SHA384, key, BlockSize); 169bytesWritten = HashProviderDispenser.OneShotHashProvider.MacData(HashAlgorithmNames.SHA384, key, source, destination); 205return LiteHashProvider.HmacStream(HashAlgorithmNames.SHA384, key, source, destination); 227return LiteHashProvider.HmacStream(HashAlgorithmNames.SHA384, HashSizeInBytes, key, source); 272return LiteHashProvider.HmacStreamAsync(HashAlgorithmNames.SHA384, key.Span, source, cancellationToken); 337HashAlgorithmNames.SHA384,
System\Security\Cryptography\HMACSHA512.cs (7)
39this.HashName = HashAlgorithmNames.SHA512; 40_hMacCommon = new HMACCommon(HashAlgorithmNames.SHA512, key, BlockSize); 166bytesWritten = HashProviderDispenser.OneShotHashProvider.MacData(HashAlgorithmNames.SHA512, key, source, destination); 202return LiteHashProvider.HmacStream(HashAlgorithmNames.SHA512, key, source, destination); 224return LiteHashProvider.HmacStream(HashAlgorithmNames.SHA512, HashSizeInBytes, key, source); 269return LiteHashProvider.HmacStreamAsync(HashAlgorithmNames.SHA512, key.Span, source, cancellationToken); 334HashAlgorithmNames.SHA512,
System\Security\Cryptography\IncrementalHash.cs (3)
379case HashAlgorithmNames.SHA3_256 when !SHA3_256.IsSupported: 382case HashAlgorithmNames.SHA3_384 when !SHA3_384.IsSupported: 385case HashAlgorithmNames.SHA3_512 when !SHA3_512.IsSupported:
System\Security\Cryptography\Kmac128.cs (9)
56_kmacProvider = new ConcurrentSafeKmac(HashAlgorithmNames.KMAC128, key, customizationString, xof: false); 65public static bool IsSupported { get; } = HashProviderDispenser.KmacSupported(HashAlgorithmNames.KMAC128); 299return LiteHashProvider.KmacStream(HashAlgorithmNames.KMAC128, key, customizationString, outputLength, source, xof: false); 335return LiteHashProvider.KmacStream(HashAlgorithmNames.KMAC128, key, customizationString, outputLength, source, xof: false); 366LiteHashProvider.KmacStream(HashAlgorithmNames.KMAC128, key, customizationString, source, xof: false, destination); 413return LiteHashProvider.KmacStreamAsync(HashAlgorithmNames.KMAC128, key, source, xof: false, outputLength, customizationString, cancellationToken); 459return LiteHashProvider.KmacStreamAsync(HashAlgorithmNames.KMAC128, key.Span, source, xof: false, outputLength, customizationString.Span, cancellationToken); 499return LiteHashProvider.KmacStreamAsync(HashAlgorithmNames.KMAC128, key.Span, source, xof: false, destination, customizationString.Span, cancellationToken); 509HashAlgorithmNames.KMAC128,
System\Security\Cryptography\Kmac256.cs (9)
56_kmacProvider = new ConcurrentSafeKmac(HashAlgorithmNames.KMAC256, key, customizationString, xof: false); 65public static bool IsSupported { get; } = HashProviderDispenser.KmacSupported(HashAlgorithmNames.KMAC256); 299return LiteHashProvider.KmacStream(HashAlgorithmNames.KMAC256, key, customizationString, outputLength, source, xof: false); 335return LiteHashProvider.KmacStream(HashAlgorithmNames.KMAC256, key, customizationString, outputLength, source, xof: false); 366LiteHashProvider.KmacStream(HashAlgorithmNames.KMAC256, key, customizationString, source, xof: false, destination); 413return LiteHashProvider.KmacStreamAsync(HashAlgorithmNames.KMAC256, key, source, xof: false, outputLength, customizationString, cancellationToken); 459return LiteHashProvider.KmacStreamAsync(HashAlgorithmNames.KMAC256, key.Span, source, xof: false, outputLength, customizationString.Span, cancellationToken); 499return LiteHashProvider.KmacStreamAsync(HashAlgorithmNames.KMAC256, key.Span, source, xof: false, destination, customizationString.Span, cancellationToken); 509HashAlgorithmNames.KMAC256,
System\Security\Cryptography\KmacXof128.cs (9)
56_kmacProvider = new ConcurrentSafeKmac(HashAlgorithmNames.KMAC128, key, customizationString, xof: true); 65public static bool IsSupported { get; } = HashProviderDispenser.KmacSupported(HashAlgorithmNames.KMAC128); 299return LiteHashProvider.KmacStream(HashAlgorithmNames.KMAC128, key, customizationString, outputLength, source, xof: true); 335return LiteHashProvider.KmacStream(HashAlgorithmNames.KMAC128, key, customizationString, outputLength, source, xof: true); 366LiteHashProvider.KmacStream(HashAlgorithmNames.KMAC128, key, customizationString, source, xof: true, destination); 413return LiteHashProvider.KmacStreamAsync(HashAlgorithmNames.KMAC128, key, source, xof: true, outputLength, customizationString, cancellationToken); 459return LiteHashProvider.KmacStreamAsync(HashAlgorithmNames.KMAC128, key.Span, source, xof: true, outputLength, customizationString.Span, cancellationToken); 499return LiteHashProvider.KmacStreamAsync(HashAlgorithmNames.KMAC128, key.Span, source, xof: true, destination, customizationString.Span, cancellationToken); 509HashAlgorithmNames.KMAC128,
System\Security\Cryptography\KmacXof256.cs (9)
56_kmacProvider = new ConcurrentSafeKmac(HashAlgorithmNames.KMAC256, key, customizationString, xof: true); 65public static bool IsSupported { get; } = HashProviderDispenser.KmacSupported(HashAlgorithmNames.KMAC256); 299return LiteHashProvider.KmacStream(HashAlgorithmNames.KMAC256, key, customizationString, outputLength, source, xof: true); 335return LiteHashProvider.KmacStream(HashAlgorithmNames.KMAC256, key, customizationString, outputLength, source, xof: true); 366LiteHashProvider.KmacStream(HashAlgorithmNames.KMAC256, key, customizationString, source, xof: true, destination); 413return LiteHashProvider.KmacStreamAsync(HashAlgorithmNames.KMAC256, key, source, xof: true, outputLength, customizationString, cancellationToken); 459return LiteHashProvider.KmacStreamAsync(HashAlgorithmNames.KMAC256, key.Span, source, xof: true, outputLength, customizationString.Span, cancellationToken); 499return LiteHashProvider.KmacStreamAsync(HashAlgorithmNames.KMAC256, key.Span, source, xof: true, destination, customizationString.Span, cancellationToken); 509HashAlgorithmNames.KMAC256,
System\Security\Cryptography\LiteHash.OpenSsl.cs (2)
17HashAlgorithmNames.KMAC128 => Interop.Crypto.EvpMacAlgs.Kmac128, 18HashAlgorithmNames.KMAC256 => Interop.Crypto.EvpMacAlgs.Kmac256,
System\Security\Cryptography\MD5.cs (6)
116bytesWritten = HashProviderDispenser.OneShotHashProvider.HashData(HashAlgorithmNames.MD5, source, destination); 152return LiteHashProvider.HashStream(HashAlgorithmNames.MD5, source, destination); 174return LiteHashProvider.HashStream(HashAlgorithmNames.MD5, HashSizeInBytes, source); 200return LiteHashProvider.HashStreamAsync(HashAlgorithmNames.MD5, source, cancellationToken); 241HashAlgorithmNames.MD5, 253_hashProvider = HashProviderDispenser.CreateHashProvider(HashAlgorithmNames.MD5);
System\Security\Cryptography\RSAPKCS1SignatureDeformatter.cs (1)
36_algName = HashAlgorithmNames.ToUpper(strName);
System\Security\Cryptography\RSAPKCS1SignatureFormatter.cs (1)
37_algName = HashAlgorithmNames.ToUpper(strName);
System\Security\Cryptography\SHA1.cs (6)
111bytesWritten = HashProviderDispenser.OneShotHashProvider.HashData(HashAlgorithmNames.SHA1, source, destination); 146return LiteHashProvider.HashStream(HashAlgorithmNames.SHA1, source, destination); 167return LiteHashProvider.HashStream(HashAlgorithmNames.SHA1, HashSizeInBytes, source); 192return LiteHashProvider.HashStreamAsync(HashAlgorithmNames.SHA1, source, cancellationToken); 232HashAlgorithmNames.SHA1, 244_hashProvider = HashProviderDispenser.CreateHashProvider(HashAlgorithmNames.SHA1);
System\Security\Cryptography\SHA1Managed.cs (1)
18_hashProvider = HashProviderDispenser.CreateHashProvider(HashAlgorithmNames.SHA1);
System\Security\Cryptography\SHA256.cs (6)
111bytesWritten = HashProviderDispenser.OneShotHashProvider.HashData(HashAlgorithmNames.SHA256, source, destination); 146return LiteHashProvider.HashStream(HashAlgorithmNames.SHA256, source, destination); 167return LiteHashProvider.HashStream(HashAlgorithmNames.SHA256, HashSizeInBytes, source); 192return LiteHashProvider.HashStreamAsync(HashAlgorithmNames.SHA256, source, cancellationToken); 232HashAlgorithmNames.SHA256, 244_hashProvider = HashProviderDispenser.CreateHashProvider(HashAlgorithmNames.SHA256);
System\Security\Cryptography\SHA256Managed.cs (1)
18_hashProvider = HashProviderDispenser.CreateHashProvider(HashAlgorithmNames.SHA256);
System\Security\Cryptography\SHA3_256.cs (7)
45public static bool IsSupported { get; } = HashProviderDispenser.HashSupported(HashAlgorithmNames.SHA3_256); 144bytesWritten = HashProviderDispenser.OneShotHashProvider.HashData(HashAlgorithmNames.SHA3_256, source, destination); 183return LiteHashProvider.HashStream(HashAlgorithmNames.SHA3_256, source, destination); 208return LiteHashProvider.HashStream(HashAlgorithmNames.SHA3_256, HashSizeInBytes, source); 237return LiteHashProvider.HashStreamAsync(HashAlgorithmNames.SHA3_256, source, cancellationToken); 281HashAlgorithmNames.SHA3_256, 299_hashProvider = HashProviderDispenser.CreateHashProvider(HashAlgorithmNames.SHA3_256);
System\Security\Cryptography\SHA3_384.cs (7)
45public static bool IsSupported { get; } = HashProviderDispenser.HashSupported(HashAlgorithmNames.SHA3_384); 145bytesWritten = HashProviderDispenser.OneShotHashProvider.HashData(HashAlgorithmNames.SHA3_384, source, destination); 184return LiteHashProvider.HashStream(HashAlgorithmNames.SHA3_384, source, destination); 209return LiteHashProvider.HashStream(HashAlgorithmNames.SHA3_384, HashSizeInBytes, source); 238return LiteHashProvider.HashStreamAsync(HashAlgorithmNames.SHA3_384, source, cancellationToken); 282HashAlgorithmNames.SHA3_384, 300_hashProvider = HashProviderDispenser.CreateHashProvider(HashAlgorithmNames.SHA3_384);
System\Security\Cryptography\SHA3_512.cs (7)
45public static bool IsSupported { get; } = HashProviderDispenser.HashSupported(HashAlgorithmNames.SHA3_512); 144bytesWritten = HashProviderDispenser.OneShotHashProvider.HashData(HashAlgorithmNames.SHA3_512, source, destination); 183return LiteHashProvider.HashStream(HashAlgorithmNames.SHA3_512, source, destination); 208return LiteHashProvider.HashStream(HashAlgorithmNames.SHA3_512, HashSizeInBytes, source); 237return LiteHashProvider.HashStreamAsync(HashAlgorithmNames.SHA3_512, source, cancellationToken); 281HashAlgorithmNames.SHA3_512, 299_hashProvider = HashProviderDispenser.CreateHashProvider(HashAlgorithmNames.SHA3_512);
System\Security\Cryptography\SHA384.cs (6)
110bytesWritten = HashProviderDispenser.OneShotHashProvider.HashData(HashAlgorithmNames.SHA384, source, destination); 145return LiteHashProvider.HashStream(HashAlgorithmNames.SHA384, source, destination); 166return LiteHashProvider.HashStream(HashAlgorithmNames.SHA384, HashSizeInBytes, source); 191return LiteHashProvider.HashStreamAsync(HashAlgorithmNames.SHA384, source, cancellationToken); 231HashAlgorithmNames.SHA384, 243_hashProvider = HashProviderDispenser.CreateHashProvider(HashAlgorithmNames.SHA384);
System\Security\Cryptography\SHA384Managed.cs (1)
18_hashProvider = HashProviderDispenser.CreateHashProvider(HashAlgorithmNames.SHA384);
System\Security\Cryptography\SHA512.cs (6)
110bytesWritten = HashProviderDispenser.OneShotHashProvider.HashData(HashAlgorithmNames.SHA512, source, destination); 145return LiteHashProvider.HashStream(HashAlgorithmNames.SHA512, source, destination); 166return LiteHashProvider.HashStream(HashAlgorithmNames.SHA512, HashSizeInBytes, source); 191return LiteHashProvider.HashStreamAsync(HashAlgorithmNames.SHA512, source, cancellationToken); 231HashAlgorithmNames.SHA512, 243_hashProvider = HashProviderDispenser.CreateHashProvider(HashAlgorithmNames.SHA512);
System\Security\Cryptography\SHA512Managed.cs (1)
18_hashProvider = HashProviderDispenser.CreateHashProvider(HashAlgorithmNames.SHA512);
System\Security\Cryptography\Shake128.NonWindows.cs (1)
8private const string HashAlgorithmId = HashAlgorithmNames.SHAKE128;
System\Security\Cryptography\Shake256.NonWindows.cs (1)
8private const string HashAlgorithmId = HashAlgorithmNames.SHAKE256;