Deprecated
use RSAKEMGenerator, RSAKEMExtractor
| Modifier and Type | Field and Description |
|---|---|
| private DerivationFunction | |
| private RSAKeyParameters | |
| private SecureRandom |
| Access | Constructor and Description |
|---|---|
| public | RSAKeyEncapsulation(DerivationFunction
the key derivation function to be used. kdf, SecureRandom the random source for the session key. rnd)Set up the RSA-KEM. |
| Modifier and Type | Method and Description |
|---|---|
| public CipherParameters | Returns: the session key.the input buffer for the encapsulated key. in, int the offset for the input buffer. inOff, int the length of the encapsulated key. inLen, int the length of the session key. keyLen)Implements org. Decrypt an encapsulated session key. |
| public CipherParameters | Returns: the session key.the input buffer for the encapsulated key. in, int the length of the session key. keyLen)Decrypt an encapsulated session key. |
| public CipherParameters | Returns: the random session key.the output buffer for the encapsulated key. out, int the offset for the output buffer. outOff, int the length of the random session key. keyLen)Implements org. Generate and encapsulate a random session key. |
| public CipherParameters | Returns: the random session key.the output buffer for the encapsulated key. out, int the length of the random session key. keyLen)Generate and encapsulate a random session key. |
| public void | init(CipherParameters
the recipient's public (for encryption) or private (for decryption) key. key)Implements org. Initialise the RSA-KEM. |
| kdf | back to summary |
|---|---|
| private DerivationFunction kdf | |
| key | back to summary |
|---|---|
| private RSAKeyParameters key | |
| rnd | back to summary |
|---|---|
| private SecureRandom rnd | |
| RSAKeyEncapsulation | back to summary |
|---|---|
| public RSAKeyEncapsulation(DerivationFunction kdf, SecureRandom rnd) Set up the RSA-KEM.
| |
| decrypt | back to summary |
|---|---|
| public CipherParameters decrypt(byte[] in, int inOff, int inLen, int keyLen) throws IllegalArgumentException Implements org. Decrypt an encapsulated session key.
| |
| decrypt | back to summary |
|---|---|
| public CipherParameters decrypt(byte[] in, int keyLen) Decrypt an encapsulated session key.
| |
| encrypt | back to summary |
|---|---|
| public CipherParameters encrypt(byte[] out, int outOff, int keyLen) throws IllegalArgumentException Implements org. Generate and encapsulate a random session key.
| |
| encrypt | back to summary |
|---|---|
| public CipherParameters encrypt(byte[] out, int keyLen) Generate and encapsulate a random session key.
| |
| init | back to summary |
|---|---|
| public void init(CipherParameters key) throws IllegalArgumentException Implements org. Initialise the RSA-KEM.
| |