src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.EVP.DigestAlgs.cs (20)
87HashAlgorithmNames.MD5 => EvpMd5(),
88HashAlgorithmNames.SHA1 => EvpSha1(),
89HashAlgorithmNames.SHA256 => EvpSha256(),
90HashAlgorithmNames.SHA384 => EvpSha384(),
91HashAlgorithmNames.SHA512 => EvpSha512(),
92HashAlgorithmNames.SHA3_256 => EvpSha3_256(),
93HashAlgorithmNames.SHA3_384 => EvpSha3_384(),
94HashAlgorithmNames.SHA3_512 => EvpSha3_512(),
95HashAlgorithmNames.SHAKE128 => EvpShake128(),
96HashAlgorithmNames.SHAKE256 => EvpShake256(),
105case HashAlgorithmNames.SHA1:
106case HashAlgorithmNames.SHA256:
107case HashAlgorithmNames.SHA384:
108case HashAlgorithmNames.SHA512:
109case HashAlgorithmNames.MD5:
110case HashAlgorithmNames.SHA3_256:
111case HashAlgorithmNames.SHA3_384:
112case HashAlgorithmNames.SHA3_512:
113case HashAlgorithmNames.SHAKE128:
114case HashAlgorithmNames.SHAKE256:
System\Security\Cryptography\Kmac128.cs (10)
24static string IKmacStatic.HashAlgorithmName => HashAlgorithmNames.KMAC128;
63_kmacProvider = new ConcurrentSafeKmac(HashAlgorithmNames.KMAC128, key, customizationString, xof: false);
77public static bool IsSupported { get; } = HashProviderDispenser.KmacSupported(HashAlgorithmNames.KMAC128);
399return LiteHashProvider.KmacStream(HashAlgorithmNames.KMAC128, key, customizationString, outputLength, source, xof: false);
435return LiteHashProvider.KmacStream(HashAlgorithmNames.KMAC128, key, customizationString, outputLength, source, xof: false);
466LiteHashProvider.KmacStream(HashAlgorithmNames.KMAC128, key, customizationString, source, xof: false, destination);
513return LiteHashProvider.KmacStreamAsync(HashAlgorithmNames.KMAC128, key, source, xof: false, outputLength, customizationString, cancellationToken);
559return LiteHashProvider.KmacStreamAsync(HashAlgorithmNames.KMAC128, key.Span, source, xof: false, outputLength, customizationString.Span, cancellationToken);
599return LiteHashProvider.KmacStreamAsync(HashAlgorithmNames.KMAC128, key.Span, source, xof: false, destination, customizationString.Span, cancellationToken);
753HashAlgorithmNames.KMAC128,
System\Security\Cryptography\Kmac256.cs (10)
24static string IKmacStatic.HashAlgorithmName => HashAlgorithmNames.KMAC256;
63_kmacProvider = new ConcurrentSafeKmac(HashAlgorithmNames.KMAC256, key, customizationString, xof: false);
77public static bool IsSupported { get; } = HashProviderDispenser.KmacSupported(HashAlgorithmNames.KMAC256);
399return LiteHashProvider.KmacStream(HashAlgorithmNames.KMAC256, key, customizationString, outputLength, source, xof: false);
435return LiteHashProvider.KmacStream(HashAlgorithmNames.KMAC256, key, customizationString, outputLength, source, xof: false);
466LiteHashProvider.KmacStream(HashAlgorithmNames.KMAC256, key, customizationString, source, xof: false, destination);
513return LiteHashProvider.KmacStreamAsync(HashAlgorithmNames.KMAC256, key, source, xof: false, outputLength, customizationString, cancellationToken);
559return LiteHashProvider.KmacStreamAsync(HashAlgorithmNames.KMAC256, key.Span, source, xof: false, outputLength, customizationString.Span, cancellationToken);
599return LiteHashProvider.KmacStreamAsync(HashAlgorithmNames.KMAC256, key.Span, source, xof: false, destination, customizationString.Span, cancellationToken);
753HashAlgorithmNames.KMAC256,
System\Security\Cryptography\KmacXof128.cs (10)
24static string IKmacStatic.HashAlgorithmName => HashAlgorithmNames.KMAC128;
63_kmacProvider = new ConcurrentSafeKmac(HashAlgorithmNames.KMAC128, key, customizationString, xof: true);
77public static bool IsSupported { get; } = HashProviderDispenser.KmacSupported(HashAlgorithmNames.KMAC128);
399return LiteHashProvider.KmacStream(HashAlgorithmNames.KMAC128, key, customizationString, outputLength, source, xof: true);
435return LiteHashProvider.KmacStream(HashAlgorithmNames.KMAC128, key, customizationString, outputLength, source, xof: true);
466LiteHashProvider.KmacStream(HashAlgorithmNames.KMAC128, key, customizationString, source, xof: true, destination);
513return LiteHashProvider.KmacStreamAsync(HashAlgorithmNames.KMAC128, key, source, xof: true, outputLength, customizationString, cancellationToken);
559return LiteHashProvider.KmacStreamAsync(HashAlgorithmNames.KMAC128, key.Span, source, xof: true, outputLength, customizationString.Span, cancellationToken);
599return LiteHashProvider.KmacStreamAsync(HashAlgorithmNames.KMAC128, key.Span, source, xof: true, destination, customizationString.Span, cancellationToken);
753HashAlgorithmNames.KMAC128,
System\Security\Cryptography\KmacXof256.cs (10)
24static string IKmacStatic.HashAlgorithmName => HashAlgorithmNames.KMAC256;
63_kmacProvider = new ConcurrentSafeKmac(HashAlgorithmNames.KMAC256, key, customizationString, xof: true);
77public static bool IsSupported { get; } = HashProviderDispenser.KmacSupported(HashAlgorithmNames.KMAC256);
399return LiteHashProvider.KmacStream(HashAlgorithmNames.KMAC256, key, customizationString, outputLength, source, xof: true);
435return LiteHashProvider.KmacStream(HashAlgorithmNames.KMAC256, key, customizationString, outputLength, source, xof: true);
466LiteHashProvider.KmacStream(HashAlgorithmNames.KMAC256, key, customizationString, source, xof: true, destination);
513return LiteHashProvider.KmacStreamAsync(HashAlgorithmNames.KMAC256, key, source, xof: true, outputLength, customizationString, cancellationToken);
559return LiteHashProvider.KmacStreamAsync(HashAlgorithmNames.KMAC256, key.Span, source, xof: true, outputLength, customizationString.Span, cancellationToken);
599return LiteHashProvider.KmacStreamAsync(HashAlgorithmNames.KMAC256, key.Span, source, xof: true, destination, customizationString.Span, cancellationToken);
753HashAlgorithmNames.KMAC256,