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.
-
dP
-
-
dQ
-
-
exponent
- The public exponent.
-
ident
-
-
p
- The larger of the two prime factors.
-
pMinus1
- p-1 [calculated].
-
q
- The smaller of the two prime factors.
-
qInv
- The multiplicative inverse of q % p [calculated].
-
qMinus1
- q-1 [calculated].
-
RSAPrivKeyCrt()
- Construct an empty RSAPrivKey.
-
RSAPrivKeyCrt(BigInteger, BigInteger, BigInteger, BigInteger, BigInteger, BigInteger, BigInteger, BigInteger)
- Construct an RSAPrivKeyCrt the appropriate big numbers
-
RSAPrivKeyCrt(byte[])
-
-
getCrtCoefficient()
- Returns the crtCoefficient.
-
getEncoded()
- Return an encoded representation for this key.
-
getFormat()
- Return the format this key is in.
-
getPrimeExponentP()
- Returns the primeExponentP.
-
getPrimeExponentQ()
- Returns the primeExponentQ.
-
getPrimeP()
- Returns the prime P.
-
getPrimeQ()
- Returns the prime Q.
-
getPublicExponent()
- Returns the public exponent.
-
toString()
- Generate a String representation of this key.
ident
public static final String ident
exponent
protected BigInteger exponent
- The public exponent.
p
protected BigInteger p
- The larger of the two prime factors.
q
protected BigInteger q
- The smaller of the two prime factors.
qInv
protected BigInteger qInv
- The multiplicative inverse of q % p [calculated].
pMinus1
protected BigInteger pMinus1
- p-1 [calculated].
qMinus1
protected BigInteger qMinus1
- q-1 [calculated].
dP
protected BigInteger dP
dQ
protected BigInteger dQ
RSAPrivKeyCrt
public RSAPrivKeyCrt()
- Construct an empty RSAPrivKey.
RSAPrivKeyCrt
public RSAPrivKeyCrt(byte encKey[])
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.
getFormat
public String getFormat()
- Return the format this key is in.
- Overrides:
- getFormat in class RSAPrivKey
getEncoded
public byte[] getEncoded()
- Return an encoded representation for this key.
- Overrides:
- getEncoded in class RSAPrivKey
getPublicExponent
public BigInteger getPublicExponent()
- Returns the public exponent.
- Returns:
- the public exponent.
getPrimeP
public BigInteger getPrimeP()
- Returns the prime P.
- Returns:
- the prime P.
getPrimeQ
public BigInteger getPrimeQ()
- Returns the prime Q.
- Returns:
- the prime Q.
getPrimeExponentP
public BigInteger getPrimeExponentP()
- Returns the primeExponentP.
- Returns:
- the primeExponentP.
getPrimeExponentQ
public BigInteger getPrimeExponentQ()
- Returns the primeExponentQ.
- Returns:
- the primeExponentQ.
getCrtCoefficient
public BigInteger getCrtCoefficient()
- Returns the crtCoefficient.
- Returns:
- the crtCoefficient.
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