The AES-256-GCM for HPKE AEAD implementing AeadInterface.
When using @hpke/core, the instance of this class must be specified to the aead parameter of CipherSuiteParams instead of AeadId.Aes256Gcm as follows:
@hpke/core
aead
AeadId.Aes256Gcm
import { Aes256Gcm, CipherSuite, DhkemP256HkdfSha256, HkdfSha256,} from "@hpke/core";const suite = new CipherSuite({ kem: new DhkemP256HkdfSha256(), kdf: new HkdfSha256(), aead: new Aes256Gcm(),}); Copy
import { Aes256Gcm, CipherSuite, DhkemP256HkdfSha256, HkdfSha256,} from "@hpke/core";const suite = new CipherSuite({ kem: new DhkemP256HkdfSha256(), kdf: new HkdfSha256(), aead: new Aes256Gcm(),});
AeadId.Aes256Gcm (0x0002)
32
12
16
Creates an AEAD encryption context which has seal/open operation.
A byte string of the raw key.
An AEAD encryption context.
The AES-256-GCM for HPKE AEAD implementing AeadInterface.
When using
@hpke/core
, the instance of this class must be specified to theaead
parameter of CipherSuiteParams instead ofAeadId.Aes256Gcm
as follows:Example