edu.vt.middleware.crypt.asymmetric
Class RSA
java.lang.Object
edu.vt.middleware.crypt.AbstractAlgorithm
edu.vt.middleware.crypt.AbstractEncryptionAlgorithm
edu.vt.middleware.crypt.asymmetric.AsymmetricAlgorithm
edu.vt.middleware.crypt.asymmetric.RSA
- All Implemented Interfaces:
- Algorithm, EncryptionAlgorithm
public class RSA
- extends AsymmetricAlgorithm
RSA contains functions for encrypting and decrypting using
the RSA algorithm. The encryption mode is set to 'NONE'. The padding is set
to 'OAEP'. This classes defaults to a key creation length of 2048 bits.
- Version:
- $Revision: 3 $
- Author:
- Middleware Services
|
Constructor Summary |
RSA()
Creates a default RSA asymmetric encryption algorithm that uses OAEP
padding. |
| Methods inherited from class edu.vt.middleware.crypt.AbstractEncryptionAlgorithm |
crypt, crypt, decrypt, decrypt, decrypt, encrypt, encrypt, encrypt, getBlockSize, getCipherMode, getMode, getPadding, init, initCipher, initDecrypt, initEncrypt, setKey, toString |
ALGORITHM
public static final String ALGORITHM
- Algorithm name.
- See Also:
- Constant Field Values
DEFAULT_KEY_LENGTH
public static final int DEFAULT_KEY_LENGTH
- Default key size for this algorithm in bits.
- See Also:
- Constant Field Values
RSA
public RSA()
- Creates a default RSA asymmetric encryption algorithm that uses OAEP
padding.
getDefaultKeyLength
public int getDefaultKeyLength()
- Gets the default key length for this algorithm.
- Overrides:
getDefaultKeyLength in class AsymmetricAlgorithm
- Returns:
- Default key length in bits.
Copyright © 2003-2011 Virginia Tech. All Rights Reserved.