01: package org.bouncycastle.crypto.params;
02:
03: import java.math.BigInteger;
04:
05: /**
06: * Public key parameters for NaccacheStern cipher. For details on this cipher,
07: * please see
08: *
09: * http://www.gemplus.com/smart/rd/publications/pdf/NS98pkcs.pdf
10: */
11: public class NaccacheSternKeyParameters extends AsymmetricKeyParameter {
12:
13: private BigInteger g, n;
14:
15: int lowerSigmaBound;
16:
17: /**
18: * @param privateKey
19: */
20: public NaccacheSternKeyParameters(boolean privateKey, BigInteger g,
21: BigInteger n, int lowerSigmaBound) {
22: super (privateKey);
23: this .g = g;
24: this .n = n;
25: this .lowerSigmaBound = lowerSigmaBound;
26: }
27:
28: /**
29: * @return Returns the g.
30: */
31: public BigInteger getG() {
32: return g;
33: }
34:
35: /**
36: * @return Returns the lowerSigmaBound.
37: */
38: public int getLowerSigmaBound() {
39: return lowerSigmaBound;
40: }
41:
42: /**
43: * @return Returns the n.
44: */
45: public BigInteger getModulus() {
46: return n;
47: }
48:
49: }
|