Class PublicPrivateEncryptionDecryptionRSAAESHybrid
java.lang.Object
net.finmath.decryptionoracle.decryption.PublicPrivateEncryptionDecryptionRSAAESHybrid
- All Implemented Interfaces:
PublicPrivateEncryptionDecryption
public class PublicPrivateEncryptionDecryptionRSAAESHybrid
extends Object
implements PublicPrivateEncryptionDecryption
Hybrid RSA+AES encryption and decryption.
This method has no limit in the plain text.
For application like encrypted-hashed-keys that respect a limit of the plain text
you may consider
PublicPrivateEncryptionDecryptionRSA.- Author:
- Christian Fries
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]decrypt(PrivateKey rsaKey, byte[] envelope) decrypt.byte[]encrypt.
-
Constructor Details
-
PublicPrivateEncryptionDecryptionRSAAESHybrid
public PublicPrivateEncryptionDecryptionRSAAESHybrid()
-
-
Method Details
-
encrypt
encrypt.
- Specified by:
encryptin interfacePublicPrivateEncryptionDecryption- Parameters:
rsaKey- aPublicKeyobjectplaintext- an array of bytes objects- Returns:
- an array of bytes objects
-
decrypt
decrypt.
- Specified by:
decryptin interfacePublicPrivateEncryptionDecryption- Parameters:
rsaKey- aPrivateKeyobjectenvelope- an array of bytes objects- Returns:
- an array of bytes objects
-