public final class RsaKemHybridEncrypt extends Object implements HybridEncrypt
Shoup's ISO standard proposal is available at https://www.shoup.net/iso/std6.pdf.
| Constructor and Description |
|---|
RsaKemHybridEncrypt(RSAPublicKey recipientPublicKey,
String hkdfHmacAlgo,
byte[] hkdfSalt,
AeadFactory aeadFactory) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
encrypt(byte[] plaintext,
byte[] contextInfo)
Encryption operation: encrypts
plaintext binding contextInfo to the resulting
ciphertext. |
public RsaKemHybridEncrypt(RSAPublicKey recipientPublicKey, String hkdfHmacAlgo, byte[] hkdfSalt, AeadFactory aeadFactory) throws GeneralSecurityException
GeneralSecurityExceptionpublic byte[] encrypt(byte[] plaintext,
byte[] contextInfo)
throws GeneralSecurityException
HybridEncryptplaintext binding contextInfo to the resulting
ciphertext.encrypt in interface HybridEncryptGeneralSecurityException