Class ExportOnly

The ExportOnly mode 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.ExportOnly as follows:

import {
CipherSuite,
DhkemP256HkdfSha256,
ExportOnly,
HkdfSha256,
} from "@hpke/core";

const suite = new CipherSuite({
kem: new DhkemP256HkdfSha256(),
kdf: new HkdfSha256(),
aead: new ExportOnly(),
});

Implements

Constructors

Properties

id: AeadId = AeadId.ExportOnly

The KDF identifier.

keySize: number = 0

The length in bytes of an AEAD key (Nk).

nonceSize: number = 0

The length in bytes of an AEAD nonce (Nn).

tagSize: number = 0

The length in bytes of an AEAD authentication tag (Nt).

Methods