Пример #1
0
 public override void SetHashAlgorithm(string name)
 {
     if (name == null)
     {
         throw new ArgumentNullException(nameof(name));
     }
     hashAlgorithmName = EcUtils.GetHashAlgorithmName(name);
 }
Пример #2
0
        public override AsymmetricSignatureFormatter GetSignatureFormatter(string algorithm)
        {
            if (algorithm == null)
            {
                throw new ArgumentNullException(nameof(algorithm));
            }
            HashAlgorithmName hashAlgorithmName = EcUtils.GetHashAlgorithmName(algorithm);

            return(new EcSignatureFormatter(ecDsa, hashAlgorithmName));
        }
Пример #3
0
 public override void SetHashAlgorithm(string name)
 {
     hashAlgorithmName = EcUtils.GetHashAlgorithmName(name);
 }