01: package org.bouncycastle.crypto.params;
02:
03: import java.math.BigInteger;
04:
05: public class RSAPrivateCrtKeyParameters extends RSAKeyParameters {
06: private BigInteger e;
07: private BigInteger p;
08: private BigInteger q;
09: private BigInteger dP;
10: private BigInteger dQ;
11: private BigInteger qInv;
12:
13: /**
14: *
15: */
16: public RSAPrivateCrtKeyParameters(BigInteger modulus,
17: BigInteger publicExponent, BigInteger privateExponent,
18: BigInteger p, BigInteger q, BigInteger dP, BigInteger dQ,
19: BigInteger qInv) {
20: super (true, modulus, privateExponent);
21:
22: this .e = publicExponent;
23: this .p = p;
24: this .q = q;
25: this .dP = dP;
26: this .dQ = dQ;
27: this .qInv = qInv;
28: }
29:
30: public BigInteger getPublicExponent() {
31: return e;
32: }
33:
34: public BigInteger getP() {
35: return p;
36: }
37:
38: public BigInteger getQ() {
39: return q;
40: }
41:
42: public BigInteger getDP() {
43: return dP;
44: }
45:
46: public BigInteger getDQ() {
47: return dQ;
48: }
49:
50: public BigInteger getQInv() {
51: return qInv;
52: }
53: }
|