Generate an HPKE key pair for the specified KEM.
KEM algorithm to use (default: "x25519").
"x25519"
Hex-encoded key pair.
const kp = hpkeGenerateKeyPair("x25519");console.log(kp.publicKey); // 64-char hex (32 bytes)console.log(kp.privateKey); // 64-char hex (32 bytes) Copy
const kp = hpkeGenerateKeyPair("x25519");console.log(kp.publicKey); // 64-char hex (32 bytes)console.log(kp.privateKey); // 64-char hex (32 bytes)
Generate an HPKE key pair for the specified KEM.