Exemplo n.º 1
0
 public override void SetHashAlgorithm(string name)
 {
     if (name == null)
     {
         throw new ArgumentNullException(nameof(name));
     }
     hashAlgorithmName = EcUtils.GetHashAlgorithmName(name);
 }
Exemplo n.º 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));
        }
Exemplo n.º 3
0
 public override void SetHashAlgorithm(string name)
 {
     hashAlgorithmName = EcUtils.GetHashAlgorithmName(name);
 }