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