@Immutable public final class HpkeEncrypt extends Object implements HybridEncrypt
HPKE RFC: https://www.rfc-editor.org/rfc/rfc9180.html
| Modifier and Type | Method and Description |
|---|---|
static HybridEncrypt |
create(HpkePublicKey key) |
byte[] |
encrypt(byte[] plaintext,
byte[] contextInfo)
Encryption operation: encrypts
plaintext binding contextInfo to the resulting
ciphertext. |
public static HybridEncrypt create(HpkePublicKey key) throws GeneralSecurityException
GeneralSecurityExceptionpublic byte[] encrypt(byte[] plaintext,
byte[] contextInfo)
throws GeneralSecurityException
HybridEncryptplaintext binding contextInfo to the resulting
ciphertext.encrypt in interface HybridEncryptGeneralSecurityException