VerifyAlgorithmName() private method

private VerifyAlgorithmName ( string algorithm ) : string
algorithm string
return string
 protected ECKeyParameters(string algorithm, bool isPrivate, ECDomainParameters parameters) : base(isPrivate)
 {
     if (algorithm == null)
     {
         throw new ArgumentNullException("algorithm");
     }
     if (parameters == null)
     {
         throw new ArgumentNullException("parameters");
     }
     this.algorithm  = ECKeyParameters.VerifyAlgorithmName(algorithm);
     this.parameters = parameters;
 }
 protected ECKeyParameters(string algorithm, bool isPrivate, DerObjectIdentifier publicKeyParamSet) : base(isPrivate)
 {
     if (algorithm == null)
     {
         throw new ArgumentNullException("algorithm");
     }
     if (publicKeyParamSet == null)
     {
         throw new ArgumentNullException("publicKeyParamSet");
     }
     this.algorithm         = ECKeyParameters.VerifyAlgorithmName(algorithm);
     this.parameters        = ECKeyParameters.LookupParameters(publicKeyParamSet);
     this.publicKeyParamSet = publicKeyParamSet;
 }