01: package org.bouncycastle.jce.spec;
02:
03: import java.security.spec.AlgorithmParameterSpec;
04:
05: public class ElGamalGenParameterSpec implements AlgorithmParameterSpec {
06: private int primeSize;
07:
08: /*
09: * @param primeSize the size (in bits) of the prime modulus.
10: */
11: public ElGamalGenParameterSpec(int primeSize) {
12: this .primeSize = primeSize;
13: }
14:
15: /**
16: * Returns the size in bits of the prime modulus.
17: *
18: * @return the size in bits of the prime modulus
19: */
20: public int getPrimeSize() {
21: return primeSize;
22: }
23: }
|