class ExportOnly
implements AeadInterface
import { ExportOnly } from "https://deno.land/x/hpke@1.2.9/src/aeads/exportOnly.ts";
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:
Examples
Example 1
Example 1
import {
CipherSuite,
DhkemP256HkdfSha256,
ExportOnly,
HkdfSha256,
} from "http://deno.land/x/hpke/core/mod.ts";
const suite = new CipherSuite({
kem: new DhkemP256HkdfSha256(),
kdf: new HkdfSha256(),
aead: new ExportOnly(),
});
Methods
createEncryptionContext(_key: ArrayBuffer): AeadEncryptionContext