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 507 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.x448HkdfSha256KEM = void 0; const ed448_1 = require("@noble/curves/ed448"); const dhKemHkdfSha256_1 = require("./dhKemHkdfSha256"); const x448DH = { genSecretKey: () => ed448_1.x448.utils.randomPrivateKey(), publicKey: ed448_1.x448.getPublicKey, exchange: ed448_1.x448.getSharedSecret, }; exports.x448HkdfSha256KEM = (0, dhKemHkdfSha256_1.hkdfSha256KemForDH)(x448DH); //# sourceMappingURL=x448HkdfSha256.js.map