1package org.bouncycastle.crypto.params; 2 3import java.math.BigInteger; 4 5public class RSAPrivateCrtKeyParameters 6 extends RSAKeyParameters 7{ 8 private BigInteger e; 9 private BigInteger p; 10 private BigInteger q; 11 private BigInteger dP; 12 private BigInteger dQ; 13 private BigInteger qInv; 14 15 /** 16 * 17 */ 18 public RSAPrivateCrtKeyParameters( 19 BigInteger modulus, 20 BigInteger publicExponent, 21 BigInteger privateExponent, 22 BigInteger p, 23 BigInteger q, 24 BigInteger dP, 25 BigInteger dQ, 26 BigInteger qInv) 27 { 28 super(true, modulus, privateExponent); 29 30 this.e = publicExponent; 31 this.p = p; 32 this.q = q; 33 this.dP = dP; 34 this.dQ = dQ; 35 this.qInv = qInv; 36 } 37 38 public BigInteger getPublicExponent() 39 { 40 return e; 41 } 42 43 public BigInteger getP() 44 { 45 return p; 46 } 47 48 public BigInteger getQ() 49 { 50 return q; 51 } 52 53 public BigInteger getDP() 54 { 55 return dP; 56 } 57 58 public BigInteger getDQ() 59 { 60 return dQ; 61 } 62 63 public BigInteger getQInv() 64 { 65 return qInv; 66 } 67} 68