UNPKG

noble-xwing

Version:

Typescript implementation of the X-Wing hybrid Post Quantum KEM using the noble library, as outlined in https://eprint.iacr.org/2024/039.

12 lines 533 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.x25519HkdfSha256KEM = void 0; const ed25519_1 = require("@noble/curves/ed25519"); const dhKemHkdfSha256_1 = require("./dhKemHkdfSha256"); const x25519DH = { genSecretKey: () => ed25519_1.x25519.utils.randomPrivateKey(), publicKey: ed25519_1.x25519.getPublicKey, exchange: ed25519_1.x25519.getSharedSecret, }; exports.x25519HkdfSha256KEM = (0, dhKemHkdfSha256_1.hkdfSha256KemForDH)(x25519DH); //# sourceMappingURL=x25519HkdfSha256.js.map