internal static Platform.HashAlgorithm GetHashAlgorithm(AsymmetricAlgorithm algorithm) #endif { var hashAlgorithm = AsymmetricKeyAlgorithmProviderFactory.GetHashAlgorithmEnum(algorithm); return(HashAlgorithmProvider.CreateHashAlgorithm(hashAlgorithm)); }
/// <summary> /// Creates a hash algorithm instance that is appropriate for the given algorithm.T /// </summary> /// <returns>The hash algorithm.</returns> private System.Security.Cryptography.HashAlgorithm GetHashAlgorithm() { var hashAlgorithm = AsymmetricKeyAlgorithmProviderFactory.GetHashAlgorithmEnum(this.Algorithm); return(HashAlgorithmProvider.CreateHashAlgorithm(hashAlgorithm)); }