예제 #1
0
        internal static Platform.HashAlgorithm GetHashAlgorithm(AsymmetricAlgorithm algorithm)
#endif
        {
            var hashAlgorithm = AsymmetricKeyAlgorithmProviderFactory.GetHashAlgorithmEnum(algorithm);

            return(HashAlgorithmProvider.CreateHashAlgorithm(hashAlgorithm));
        }
예제 #2
0
        /// <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));
        }