public class RSAPrivateCrtKeySpec extends RSAPrivateKeySpec
Defined in the PKCS #1 v2.1 standard.
Constructor and Description |
---|
RSAPrivateCrtKeySpec(BigInteger modulus,
BigInteger publicExponent,
BigInteger privateExponent,
BigInteger primeP,
BigInteger primeQ,
BigInteger primeExponentP,
BigInteger primeExponentQ,
BigInteger crtCoefficient)
Creates a new
RSAMultiPrimePrivateCrtKeySpec with the specified
modulus, public exponent, private exponent, prime factors, prime
exponents, crt coefficient, and additional primes. |
Modifier and Type | Method and Description |
---|---|
BigInteger |
getCrtCoefficient()
Returns the CRT coefficient,
q^-1 mod p . |
BigInteger |
getPrimeExponentP()
Returns the exponent of the prime
p . |
BigInteger |
getPrimeExponentQ()
Returns the exponent of the prime
q . |
BigInteger |
getPrimeP()
Returns the prime factor
p . |
BigInteger |
getPrimeQ()
Returns the prime factor
q . |
BigInteger |
getPublicExponent()
Returns the public exponent
e . |
getModulus, getPrivateExponent
public RSAPrivateCrtKeySpec(BigInteger modulus, BigInteger publicExponent, BigInteger privateExponent, BigInteger primeP, BigInteger primeQ, BigInteger primeExponentP, BigInteger primeExponentQ, BigInteger crtCoefficient)
RSAMultiPrimePrivateCrtKeySpec
with the specified
modulus, public exponent, private exponent, prime factors, prime
exponents, crt coefficient, and additional primes.modulus
- the modulus n
.publicExponent
- the public exponent e
.privateExponent
- the private exponent d
.primeP
- the prime factor p
of n
.primeQ
- the prime factor q
of n
.primeExponentP
- the exponent of the prime p
.primeExponentQ
- the exponent of the prime q
.crtCoefficient
- the CRT coefficient q^-1 mod p
.public BigInteger getCrtCoefficient()
q^-1 mod p
.q^-1 mod p
.public BigInteger getPrimeExponentP()
p
.p
.public BigInteger getPrimeExponentQ()
q
.q
.public BigInteger getPrimeP()
p
.p
.public BigInteger getPrimeQ()
q
.q
.public BigInteger getPublicExponent()
e
.e
.