public override void SetHashAlgorithm(string name)
 {
     if (name == null)
     {
         throw new ArgumentNullException(nameof(name));
     }
     hashAlgorithmName = EcUtils.GetHashAlgorithmName(name);
 }
        public override AsymmetricSignatureFormatter GetSignatureFormatter(string algorithm)
        {
            if (algorithm == null)
            {
                throw new ArgumentNullException(nameof(algorithm));
            }
            HashAlgorithmName hashAlgorithmName = EcUtils.GetHashAlgorithmName(algorithm);

            return(new EcSignatureFormatter(ecDsa, hashAlgorithmName));
        }
 public bool Matches(ECParameters other)
 {
     return(EcUtils.ParametersEqual(Parameters, other));
 }
 public override void SetKey(AsymmetricAlgorithm key)
 {
     ecDsa = EcUtils.ValidateEcDsaKey(key);
 }
 public override void SetHashAlgorithm(string name)
 {
     hashAlgorithmName = EcUtils.GetHashAlgorithmName(name);
 }