class DhkemX448HkdfSha512
extends Dhkem
import { DhkemX448HkdfSha512 } from "https://deno.land/x/hpke@1.2.9/src/kems/dhkemX448.ts";
The DHKEM(X448, HKDF-SHA512) for HPKE KEM implementing KemInterface.
This class is implemented using @noble/curves.
The instance of this class can be specified to the CipherSuiteParams as follows:
Examples
Use with hpke-js
(https://deno.land/x/hpke/mod.ts
).
Use with hpke-js
(https://deno.land/x/hpke/mod.ts
).
import { CipherSuite, AeadId, KdfId } from "https://deno.land/x/hpke/mod.ts";
import { DhkemX448HkdfSha512 } from "https://deno.land/x/hpke/x/dhkem-x448/mod.ts";
const suite = new CipherSuite({
kem: new DhkemX448HkdfSha512(),
kdf: KdfId.HkdfSha512,
aead: AeadId.Aes256Gcm,
});
Use with @hpke/core
(https://deno.land/x/hpke/core/mod.ts
).
Use with @hpke/core
(https://deno.land/x/hpke/core/mod.ts
).
import {
Aes256Gcm,
CipherSuite,
HkdfSha512,
} from "https://deno.land/x/hpke/core/mod.ts";
import { DhkemX448HkdfSha512 } from "https://deno.land/x/hpke/x/dhkem-x448/mod.ts";
const suite = new CipherSuite({
kem: new DhkemX448HkdfSha512(),
kdf: new HkdfSha512(),
aead: new Aes256Gcm(),
});
Properties
readonly
id: KemIdKemId.DhkemX448HkdfSha512 (0x0021)