|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object
|
+--au.net.aba.crypto.provider.RSAPrivKey
|
+--au.net.aba.crypto.provider.RSAPrivKeyCrt
A class for ABA RSA private keys that can use the Chinese Remainder Theorem.
| Field Summary | |
protected java.math.BigInteger |
dP
|
protected java.math.BigInteger |
dQ
|
protected java.math.BigInteger |
exponent
The public exponent. |
static java.lang.String |
ident
|
protected java.math.BigInteger |
p
The larger of the two prime factors. |
protected java.math.BigInteger |
pMinus1
p-1 [calculated]. |
protected java.math.BigInteger |
q
The smaller of the two prime factors. |
protected java.math.BigInteger |
qInv
The multiplicative inverse of q % p [calculated]. |
protected java.math.BigInteger |
qMinus1
q-1 [calculated]. |
| Fields inherited from class au.net.aba.crypto.provider.RSAPrivKey |
d,
ident,
modulus |
| Fields inherited from interface java.security.PrivateKey |
serialVersionUID |
| Fields inherited from interface java.security.Key |
serialVersionUID |
| Constructor Summary | |
RSAPrivKeyCrt()
Construct an empty RSAPrivKey. |
|
RSAPrivKeyCrt(java.math.BigInteger modulus,
java.math.BigInteger exponent,
java.math.BigInteger d,
java.math.BigInteger p,
java.math.BigInteger q,
java.math.BigInteger dP,
java.math.BigInteger dQ,
java.math.BigInteger qInv)
Construct an RSAPrivKeyCrt the appropriate big numbers |
|
RSAPrivKeyCrt(byte[] encKey)
|
|
| Method Summary | |
java.math.BigInteger |
getCrtCoefficient()
Returns the crtCoefficient. |
byte[] |
getEncoded()
Return an encoded representation for this key. |
java.lang.String |
getFormat()
Return the format this key is in. |
java.math.BigInteger |
getPrimeExponentP()
Returns the primeExponentP. |
java.math.BigInteger |
getPrimeExponentQ()
Returns the primeExponentQ. |
java.math.BigInteger |
getPrimeP()
Returns the prime P. |
java.math.BigInteger |
getPrimeQ()
Returns the prime Q. |
java.math.BigInteger |
getPublicExponent()
Returns the public exponent. |
java.lang.String |
toString()
Generate a String representation of this key. |
| Methods inherited from class au.net.aba.crypto.provider.RSAPrivKey |
getAlgorithm,
getModulus,
getPrivateExponent |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Field Detail |
public static final java.lang.String ident
protected java.math.BigInteger exponent
protected java.math.BigInteger p
protected java.math.BigInteger q
protected java.math.BigInteger qInv
protected java.math.BigInteger pMinus1
protected java.math.BigInteger qMinus1
protected java.math.BigInteger dP
protected java.math.BigInteger dQ
| Constructor Detail |
public RSAPrivKeyCrt()
public RSAPrivKeyCrt(byte[] encKey)
public RSAPrivKeyCrt(java.math.BigInteger modulus,
java.math.BigInteger exponent,
java.math.BigInteger d,
java.math.BigInteger p,
java.math.BigInteger q,
java.math.BigInteger dP,
java.math.BigInteger dQ,
java.math.BigInteger qInv)
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.| Method Detail |
public java.lang.String getFormat()
toString() method. This
format is compatible with the AsciiEncodedKeySpec.public byte[] getEncoded()
RSAPrivKey.getFormat(),
RSAPrivKey.toString()public java.math.BigInteger getPublicExponent()
public java.math.BigInteger getPrimeP()
public java.math.BigInteger getPrimeQ()
public java.math.BigInteger getPrimeExponentP()
public java.math.BigInteger getPrimeExponentQ()
public java.math.BigInteger getCrtCoefficient()
public java.lang.String toString()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||