|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcryptix.security.rsa.PublicKey
cryptix.security.rsa.SecretKey
This class represents an RSA secret key pair. It can also be used as a public key.
Copyright © 1995-1997
Systemics Ltd on behalf of the
Cryptix Development Team.
All rights reserved.
$Revision: 1.4 $
cryptix.provider.rsa.BaseRSAPrivateKey| Field Summary | |
protected BigInteger |
d_
Deprecated. the private exponent |
protected BigInteger |
p_
Deprecated. one of the factors of n |
protected BigInteger |
q_
Deprecated. the other factor of n |
protected BigInteger |
u_
Deprecated. the multiplicative inverse of p mod q |
| Fields inherited from class cryptix.security.rsa.PublicKey |
e_, n_ |
| Constructor Summary | |
protected |
SecretKey()
Deprecated. A constructor that does no initialization, for use only by subclasses. |
|
SecretKey(BigInteger n,
BigInteger e,
BigInteger d,
BigInteger p,
BigInteger q,
BigInteger u)
Deprecated. Constructs a secret key pair from the component parts. |
| Method Summary | |
BigInteger |
cryptFast(BigInteger exponent,
BigInteger input)
Deprecated. Performs a fast encryption/decryption, using the Chinese Remainder Theorem. |
BigInteger |
d()
Deprecated. Returns the private exponent, d. |
BigInteger |
decrypt(BigInteger encrypted)
Deprecated. Decrypts a number. |
BigInteger |
encrypt(BigInteger plain)
Deprecated. Encrypts a number. |
java.lang.String |
insane()
Deprecated. Performs a sanity check on the key. |
BigInteger |
p()
Deprecated. Returns the smaller factor of n, p. |
BigInteger |
q()
Deprecated. Returns the larger factor of n, q. |
java.lang.String |
test()
Deprecated. Performs a basic test on the key. |
java.lang.String |
toString()
Deprecated. Returns a string representation of all parts of the secret key. |
BigInteger |
u()
Deprecated. Returns the multiplicative inverse of p mod q. |
| Methods inherited from class cryptix.security.rsa.PublicKey |
bitLength, copy, e, equals, fingerPrint, id, n |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected BigInteger d_
protected BigInteger p_
protected BigInteger q_
protected BigInteger u_
| Constructor Detail |
protected SecretKey()
public SecretKey(BigInteger n,
BigInteger e,
BigInteger d,
BigInteger p,
BigInteger q,
BigInteger u)
n - the public moduluse - the public (encryption) exponentd - the private (decryption) exponentp - the smaller factor of nq - the larger factor of nu - the multiplicative inverse of p mod q| Method Detail |
public final BigInteger d()
public final BigInteger p()
public final BigInteger q()
public final BigInteger u()
public BigInteger decrypt(BigInteger encrypted)
encrypted - the number to decrypt.
public BigInteger encrypt(BigInteger plain)
encrypt in class PublicKeyplain - the number to encrypt.
public final BigInteger cryptFast(BigInteger exponent,
BigInteger input)
exponent - either e if encrypting or d if decrypting.input - the value to encrypt or decrypt.
public final java.lang.String insane()
public final java.lang.String test()
public java.lang.String toString()
toString in class PublicKey
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||