Class au.net.aba.crypto.provider.RSAPrivateKey
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class au.net.aba.crypto.provider.RSAPrivateKey

java.lang.Object
   |
   +----au.net.aba.crypto.provider.RSAPublicKey
           |
           +----au.net.aba.crypto.provider.RSAPrivateKey

public class RSAPrivateKey
extends RSAPublicKey
implements PrivateKey
A class for ABA RSA private keys.

Variable Index

 o d
The private exponent of this key.
 o dP
 o dQ
 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 RSAPrivateKey()
Construct an empty RSAPrivateKey.
 o RSAPrivateKey(KeySpec)
Construct an empty RSAPrivateKey.

Method Index

 o decrypt(BigInteger)
Decrypt a data block with this key.
 o encrypt(BigInteger)
Encrypt a data block with this key.
 o toString()
Generate a String representation of this key.

Variables

 o ident
  public final static String ident
 o d
  protected BigInteger d
The private exponent of this key.
 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 RSAPrivateKey
  public RSAPrivateKey()
Construct an empty RSAPrivateKey.
 o RSAPrivateKey
  public RSAPrivateKey(KeySpec keySpec)
Construct an empty RSAPrivateKey.

Methods

 o toString
  public String toString()
Generate a String representation of this key.
Returns:
The key as a string.
Overrides:
toString in class RSAPublicKey
 o encrypt
  protected BigInteger encrypt(BigInteger plainText)
Encrypt a data block with this key.
Parameters:
plainText - The plain text block to encrypt.
Returns:
The encrypted data.
Overrides:
encrypt in class RSAPublicKey
 o decrypt
  protected BigInteger decrypt(BigInteger cipherText)
Decrypt a data block with this key.
Parameters:
cipherText - The cipher text block to decrypt.
Returns:
The decrypted data.
Overrides:
decrypt in class RSAPublicKey

All Packages  Class Hierarchy  This Package  Previous  Next  Index