UNPKG

ts-mls

Version:

[![CI](https://github.com/LukaJCB/ts-mls/actions/workflows/ci.yml/badge.svg)](https://github.com/LukaJCB/ts-mls/actions/workflows/ci.yml) [![npm version](https://badge.fury.io/js/ts-mls.svg)](https://badge.fury.io/js/ts-mls) [![Coverage Status](https://co

20 lines 738 B
import { makeHashImpl } from "./makeHashImpl.js"; import { makeHpke } from "./makeHpke.js"; import { makeKdf } from "./makeKdfImpl.js"; import { makeKdfImpl } from "./makeKdfImpl.js"; import { defaultRng } from "./rng.js"; import { makeNobleSignatureImpl } from "./makeNobleSignatureImpl.js"; export const defaultCryptoProvider = { async getCiphersuiteImpl(cs) { const sc = crypto.subtle; return { kdf: makeKdfImpl(makeKdf(cs.hpke.kdf)), hash: makeHashImpl(sc, cs.hash), signature: await makeNobleSignatureImpl(cs.signature), hpke: await makeHpke(cs.hpke), rng: defaultRng, name: cs.name, }; }, }; //# sourceMappingURL=provider.js.map