@Immutable public final class HpkeDecrypt extends Object implements HybridDecrypt
HPKE RFC: https://www.rfc-editor.org/rfc/rfc9180.html
| Modifier and Type | Method and Description |
|---|---|
static HybridDecrypt |
create(HpkePrivateKey privateKey) |
byte[] |
decrypt(byte[] ciphertext,
byte[] contextInfo)
Decryption operation: decrypts
ciphertext verifying the integrity of contextInfo. |
public static HybridDecrypt create(HpkePrivateKey privateKey) throws GeneralSecurityException
GeneralSecurityExceptionpublic byte[] decrypt(byte[] ciphertext,
byte[] contextInfo)
throws GeneralSecurityException
HybridDecryptciphertext verifying the integrity of contextInfo.decrypt in interface HybridDecryptGeneralSecurityException