hpkeDecrypt
Decrypts data using HPKE according to RFC 9180.
The ciphertext and encapsulated key should be received from the sender and both parties must also agree on the AAD to use.
Return
the plaintext.
Parameters
the cipher suite for selecting the KEM, KDF, and encryption algorithm. Presently only Algorithm.HPKE_BASE_P256_SHA256_AES128GCM is supported.
the private key of the receiver, curve must match the cipher suite.
the data to decrypt.
additional authenticated data.
the encapsulated key.
Decrypts data using HPKE according to RFC 9180.
The ciphertext and encapsulated key should be received from the sender and both parties must also agree on the AAD to use.
Return
the plaintext.
Parameters
the cipher suite for selecting the KEM, KDF, and encryption algorithm. Presently only Algorithm.HPKE_BASE_P256_SHA256_AES128GCM is supported.
the private key of the receiver, curve must match the cipher suite.
the data to decrypt.
additional authenticated data.
the encapsulated key.