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

12 lines 576 B
import { encodePskInfo, decodePskInfo } from "../../src/presharedkey"; import { createRoundtripTest } from "./roundtrip"; describe("PSKInfo roundtrip", () => { const roundtrip = createRoundtripTest(encodePskInfo, decodePskInfo); test("roundtrips external", () => { roundtrip({ psktype: "external", pskId: new Uint8Array([1, 2, 3]) }); }); test("roundtrips resumption", () => { roundtrip({ psktype: "resumption", usage: "application", pskGroupId: new Uint8Array([4, 5, 6]), pskEpoch: 123n }); }); }); //# sourceMappingURL=pskInfo.test.js.map