The AES-128-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.Aes128Gcm.
@hpke/core
aead
AeadId.Aes128Gcm
import { Aes128Gcm, CipherSuite, DhkemP256HkdfSha256, HkdfSha256,} from "@hpke/core";const suite = new CipherSuite({ kem: new DhkemP256HkdfSha256(), kdf: new HkdfSha256(), aead: new Aes128Gcm(),}); Copy
import { Aes128Gcm, CipherSuite, DhkemP256HkdfSha256, HkdfSha256,} from "@hpke/core";const suite = new CipherSuite({ kem: new DhkemP256HkdfSha256(), kdf: new HkdfSha256(), aead: new Aes128Gcm(),});
Readonly
AeadId.Aes128Gcm (0x0001)
16
12
Creates an AEAD encryption context which has seal/open operation.
A byte string of the raw key.
An AEAD encryption context.
The AES-128-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.Aes128Gcm
.Example