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