RSAMultiPrimePrivateCrtKey

  • RSAMultiPrimePrivateCrtKey represents an RSA private key using the Chinese Remainder Theorem (CRT) for multi-prime RSA calculations, as defined in PKCS#1 v2.1.

  • It extends the RSAPrivateKey interface and provides methods to access CRT-specific parameters like crtCoefficient, otherPrimeInfo, primeExponentP, primeExponentQ, primeP, and primeQ.

  • The interface also includes methods for retrieving the public exponent and the standard RSA key components like modulus and private exponent inherited from its parent interfaces.

  • Developers can use this interface to work with RSA private keys that utilize the CRT optimization for faster computations in multi-prime scenarios.

public interface RSAMultiPrimePrivateCrtKey implements RSAPrivateKey

The interface to an RSA multi-prime private key, as defined in the PKCS#1 v2.1, using the Chinese Remainder Theorem (CRT) information values.

Constant Summary

long serialVersionUID The type fingerprint that is set to indicate serialization compatibility with a previous version of the type.

Inherited Constant Summary

Public Method Summary

abstract BigInteger
getCrtCoefficient()
Returns the crtCoefficient.
abstract RSAOtherPrimeInfo[]
getOtherPrimeInfo()
Returns the otherPrimeInfo or null if there are only two prime factors (p and q).
abstract BigInteger
getPrimeExponentP()
Returns the primeExponentP.
abstract BigInteger
getPrimeExponentQ()
Returns the primeExponentQ.
abstract BigInteger
getPrimeP()
Returns the primeP.
abstract BigInteger
getPrimeQ()
Returns the primeQ.
abstract BigInteger
getPublicExponent()
Returns the public exponent.

Inherited Method Summary

Constants

public static final long serialVersionUID

The type fingerprint that is set to indicate serialization compatibility with a previous version of the type.

Constant Value: 618058533534628008

Public Methods

public abstract BigInteger getCrtCoefficient ()

Returns the crtCoefficient.

Returns
  • the crtCoefficient.

public abstract RSAOtherPrimeInfo[] getOtherPrimeInfo ()

Returns the otherPrimeInfo or null if there are only two prime factors (p and q).

Returns
  • the otherPrimeInfo.

public abstract BigInteger getPrimeExponentP ()

Returns the primeExponentP.

Returns
  • the primeExponentP.

public abstract BigInteger getPrimeExponentQ ()

Returns the primeExponentQ.

Returns
  • the primeExponentQ.

public abstract BigInteger getPrimeP ()

Returns the primeP.

Returns
  • the primeP.

public abstract BigInteger getPrimeQ ()

Returns the primeQ.

Returns
  • the primeQ.

public abstract BigInteger getPublicExponent ()

Returns the public exponent.

Returns
  • the public exponent.