RSAPrivateCrtKeySpecpublic class RSAPrivateCrtKeySpec extends RSAPrivateKeySpec The key specification of a RSA private key using Chinese Remainder Theorem
(CRT) values.
Defined in the PKCS #1 v2.1
standard.
|
Fields Summary |
---|
private final BigInteger | publicExponent | private final BigInteger | primeP | private final BigInteger | primeQ | private final BigInteger | primeExponentP | private final BigInteger | primeExponentQ | private final BigInteger | crtCoefficient |
Constructors Summary |
---|
public RSAPrivateCrtKeySpec(BigInteger modulus, BigInteger publicExponent, BigInteger privateExponent, BigInteger primeP, BigInteger primeQ, BigInteger primeExponentP, BigInteger primeExponentQ, BigInteger crtCoefficient)Creates a new {@code RSAMultiPrimePrivateCrtKeySpec} with the specified
modulus, public exponent, private exponent, prime factors, prime
exponents, crt coefficient, and additional primes.
super(modulus, privateExponent);
this.publicExponent = publicExponent;
this.primeP = primeP;
this.primeQ = primeQ;
this.primeExponentP = primeExponentP;
this.primeExponentQ = primeExponentQ;
this.crtCoefficient = crtCoefficient;
|
Methods Summary |
---|
public java.math.BigInteger | getCrtCoefficient()Returns the CRT coefficient, {@code q^-1 mod p}.
return crtCoefficient;
| public java.math.BigInteger | getPrimeExponentP()Returns the exponent of the prime {@code p}.
return primeExponentP;
| public java.math.BigInteger | getPrimeExponentQ()Returns the exponent of the prime {@code q}.
return primeExponentQ;
| public java.math.BigInteger | getPrimeP()Returns the prime factor {@code p}.
return primeP;
| public java.math.BigInteger | getPrimeQ()Returns the prime factor {@code q}.
return primeQ;
| public java.math.BigInteger | getPublicExponent()Returns the public exponent {@code e}.
return publicExponent;
|
|