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