01: package org.bouncycastle.crypto.params;
02:
03: import java.math.BigInteger;
04:
05: import org.bouncycastle.math.ec.ECConstants;
06: import org.bouncycastle.math.ec.ECCurve;
07: import org.bouncycastle.math.ec.ECPoint;
08:
09: public class ECDomainParameters implements ECConstants {
10: ECCurve curve;
11: byte[] seed;
12: ECPoint G;
13: BigInteger n;
14: BigInteger h;
15:
16: public ECDomainParameters(ECCurve curve, ECPoint G, BigInteger n) {
17: this .curve = curve;
18: this .G = G;
19: this .n = n;
20: this .h = ONE;
21: this .seed = null;
22: }
23:
24: public ECDomainParameters(ECCurve curve, ECPoint G, BigInteger n,
25: BigInteger h) {
26: this .curve = curve;
27: this .G = G;
28: this .n = n;
29: this .h = h;
30: this .seed = null;
31: }
32:
33: public ECDomainParameters(ECCurve curve, ECPoint G, BigInteger n,
34: BigInteger h, byte[] seed) {
35: this .curve = curve;
36: this .G = G;
37: this .n = n;
38: this .h = h;
39: this .seed = seed;
40: }
41:
42: public ECCurve getCurve() {
43: return curve;
44: }
45:
46: public ECPoint getG() {
47: return G;
48: }
49:
50: public BigInteger getN() {
51: return n;
52: }
53:
54: public BigInteger getH() {
55: return h;
56: }
57:
58: public byte[] getSeed() {
59: return seed;
60: }
61: }
|