public ECKeyGenerationParameters( DerObjectIdentifier publicKeyParamSet, SecureRandom random) : this(ECKeyParameters.LookupParameters(publicKeyParamSet), random) { this.publicKeyParamSet = publicKeyParamSet; }
/// <summary> /// Initializes a new instance of the <see cref="ECKeyGenerationParameters"/> class. /// </summary> /// <param name="publicKeyParamSet">The public key param set.</param> /// <param name="random">The random.</param> /// <param name="hashAlgorithm">The hash algorithm.</param> /// <param name="symmetricKeyAlgorithm">The symmetric key algorithm.</param> public ECKeyGenerationParameters(DerObjectIdentifier publicKeyParamSet, ISecureRandom random, HashAlgorithmTag hashAlgorithm, SymmetricKeyAlgorithmTag symmetricKeyAlgorithm) : this(ECKeyParameters.LookupParameters(publicKeyParamSet), random) { _publicKeyParamSet = publicKeyParamSet; _hashAlgorithm = hashAlgorithm; _symmetricKeyAlgorithm = symmetricKeyAlgorithm; }
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; }