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 502 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.p256HkdfSha256KEM = void 0; const p256_1 = require("@noble/curves/p256"); const dhKemHkdfSha256_1 = require("./dhKemHkdfSha256"); const p256DH = { genSecretKey: () => p256_1.p256.utils.randomPrivateKey(), publicKey: p256_1.p256.getPublicKey, exchange: p256_1.p256.getSharedSecret, }; exports.p256HkdfSha256KEM = (0, dhKemHkdfSha256_1.hkdfSha256KemForDH)(p256DH); //# sourceMappingURL=p256HkdfSha256.js.map