01: package org.bouncycastle.crypto.params;
02:
03: import java.security.SecureRandom;
04:
05: import org.bouncycastle.crypto.KeyGenerationParameters;
06:
07: public class ECKeyGenerationParameters extends KeyGenerationParameters {
08: private ECDomainParameters domainParams;
09:
10: public ECKeyGenerationParameters(ECDomainParameters domainParams,
11: SecureRandom random) {
12: super (random, domainParams.getN().bitLength());
13:
14: this .domainParams = domainParams;
15: }
16:
17: public ECDomainParameters getDomainParameters() {
18: return domainParams;
19: }
20: }
|