|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object part2.CRTRSAPrivateKey
A class that implements a CRT RSA private key.
Constructor Summary | |
CRTRSAPrivateKey(java.math.BigInteger p,
java.math.BigInteger q,
java.math.BigInteger d)
A constructor for a CRT RSA private key using primes p and q ,
and priavte exponent d . |
Method Summary | |
java.lang.String |
decrypt(java.util.AbstractList cipherText)
A method to decrypt the ciphertext cipherText to a string value using this private key. |
java.math.BigInteger |
decrypt(java.math.BigInteger cipherText)
A method to decrypt the ciphertext cipherText to a big integer value using the private key key . |
java.math.BigInteger |
modulus()
A method to return the modulus of this private RSA key. |
java.math.BigInteger |
privateExponent()
A method to return the private exponent of this private RSA key. |
java.lang.String |
toString()
A method to produce a string representation of this private RSA key. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public CRTRSAPrivateKey(java.math.BigInteger p, java.math.BigInteger q, java.math.BigInteger d) throws java.lang.Exception
p
and q
,
and priavte exponent d
.
Exception.
java.lang.Exception
Method Detail |
public java.math.BigInteger modulus() throws java.lang.Exception
Exception.
java.lang.Exception
public java.math.BigInteger privateExponent() throws java.lang.Exception
Exception.
java.lang.Exception
public java.lang.String toString()
Exception.
public java.math.BigInteger decrypt(java.math.BigInteger cipherText) throws java.lang.Exception
cipherText
to a big integer value using the private key key
.
decrypt
in interface RSAPrivateKey
Exception.
java.lang.Exception
public java.lang.String decrypt(java.util.AbstractList cipherText) throws java.lang.Exception
cipherText
to a string value using this private key.
decrypt
in interface RSAPrivateKey
Exception.
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |