All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class au.net.aba.crypto.provider.RSAPrivKeyCrt

java.lang.Object
   |
   +----au.net.aba.crypto.provider.RSAPrivKey
           |
           +----au.net.aba.crypto.provider.RSAPrivKeyCrt

public class RSAPrivKeyCrt
extends RSAPrivKey
implements RSAPrivateCrtKey
A class for ABA RSA private keys that can use the Chinese Remainder Theorem.


Variable Index

 o dP
 o dQ
 o exponent
The public exponent.
 o ident
 o p
The larger of the two prime factors.
 o pMinus1
p-1 [calculated].
 o q
The smaller of the two prime factors.
 o qInv
The multiplicative inverse of q % p [calculated].
 o qMinus1
q-1 [calculated].

Constructor Index

 o RSAPrivKeyCrt()
Construct an empty RSAPrivKey.
 o RSAPrivKeyCrt(BigInteger, BigInteger, BigInteger, BigInteger, BigInteger, BigInteger, BigInteger, BigInteger)
Construct an RSAPrivKeyCrt the appropriate big numbers
 o RSAPrivKeyCrt(byte[])

Method Index

 o getCrtCoefficient()
Returns the crtCoefficient.
 o getEncoded()
Return an encoded representation for this key.
 o getFormat()
Return the format this key is in.
 o getPrimeExponentP()
Returns the primeExponentP.
 o getPrimeExponentQ()
Returns the primeExponentQ.
 o getPrimeP()
Returns the prime P.
 o getPrimeQ()
Returns the prime Q.
 o getPublicExponent()
Returns the public exponent.
 o toString()
Generate a String representation of this key.

Variables

 o ident
 public static final String ident
 o exponent
 protected BigInteger exponent
The public exponent.

 o p
 protected BigInteger p
The larger of the two prime factors.

 o q
 protected BigInteger q
The smaller of the two prime factors.

 o qInv
 protected BigInteger qInv
The multiplicative inverse of q % p [calculated].

 o pMinus1
 protected BigInteger pMinus1
p-1 [calculated].

 o qMinus1
 protected BigInteger qMinus1
q-1 [calculated].

 o dP
 protected BigInteger dP
 o dQ
 protected BigInteger dQ

Constructors

 o RSAPrivKeyCrt
 public RSAPrivKeyCrt()
Construct an empty RSAPrivKey.

 o RSAPrivKeyCrt
 public RSAPrivKeyCrt(byte encKey[])
 o RSAPrivKeyCrt
 public RSAPrivKeyCrt(BigInteger modulus,
                      BigInteger exponent,
                      BigInteger d,
                      BigInteger p,
                      BigInteger q,
                      BigInteger dP,
                      BigInteger dQ,
                      BigInteger qInv)
Construct an RSAPrivKeyCrt the appropriate big numbers

Parameters:
modulus - the modulus.
exponent - the public exponent.
d - the private exponent.
p - the prime p.
q - the prime q.
dP - the prime exponent p.
dQ - the prime exponent q.
qInv - the CRT coefficient.

Methods

 o getFormat
 public String getFormat()
Return the format this key is in.

Overrides:
getFormat in class RSAPrivKey
 o getEncoded
 public byte[] getEncoded()
Return an encoded representation for this key.

Overrides:
getEncoded in class RSAPrivKey
 o getPublicExponent
 public BigInteger getPublicExponent()
Returns the public exponent.

Returns:
the public exponent.
 o getPrimeP
 public BigInteger getPrimeP()
Returns the prime P.

Returns:
the prime P.
 o getPrimeQ
 public BigInteger getPrimeQ()
Returns the prime Q.

Returns:
the prime Q.
 o getPrimeExponentP
 public BigInteger getPrimeExponentP()
Returns the primeExponentP.

Returns:
the primeExponentP.
 o getPrimeExponentQ
 public BigInteger getPrimeExponentQ()
Returns the primeExponentQ.

Returns:
the primeExponentQ.
 o getCrtCoefficient
 public BigInteger getCrtCoefficient()
Returns the crtCoefficient.

Returns:
the crtCoefficient.
 o toString
 public String toString()
Generate a String representation of this key.

Returns:
The key as a string.
Overrides:
toString in class RSAPrivKey

All Packages  Class Hierarchy  This Package  Previous  Next  Index