Class RSAPrivateCrtKeySpec

java.lang.Object
java.security.spec.RSAPrivateKeySpec
java.security.spec.RSAPrivateCrtKeySpec
All Implemented Interfaces:
KeySpec

public 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.

  • Constructor Details

    • RSAPrivateCrtKeySpec

      public 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.
      Parameters:
      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.
  • Method Details