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
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: 2744 $
- Author:
- Middleware Services
-
Field Summary
Fields inherited from class edu.vt.middleware.crypt.asymmetric.AsymmetricAlgorithm
MODE, PADDING
Fields inherited from class edu.vt.middleware.crypt.AbstractEncryptionAlgorithm
cipher, cipherMode, key, mode, padding
Fields inherited from class edu.vt.middleware.crypt.AbstractAlgorithm
algorithm, randomByteSize, randomProvider
-
Constructor Summary
ConstructorDescriptionRSA()
Creates a default RSA asymmetric encryption algorithm that uses OAEP padding. -
Method Summary
Methods inherited from class edu.vt.middleware.crypt.asymmetric.AsymmetricAlgorithm
clone, getAlgorithmParameterSpec, getChunkSize, newInstance
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
Methods inherited from class edu.vt.middleware.crypt.AbstractAlgorithm
getAlgorithm, getRandomData, setRandomProvider
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface edu.vt.middleware.crypt.Algorithm
getAlgorithm, getRandomData, setRandomProvider
-
Field Details
-
ALGORITHM
Algorithm name.- See Also:
-
-
Constructor Details
-
RSA
public RSA()Creates a default RSA asymmetric encryption algorithm that uses OAEP padding.
-