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

18 lines 727 B
import { encodePskId, decodePskId } from "../../src/presharedkey"; import { createRoundtripTest } from "./roundtrip"; describe("PreSharedKeyID roundtrip", () => { const roundtrip = createRoundtripTest(encodePskId, decodePskId); test("roundtrips external", () => { roundtrip({ psktype: "external", pskId: new Uint8Array([1, 2, 3]), pskNonce: new Uint8Array([4, 5, 6, 7]) }); }); test("roundtrips resumption", () => { roundtrip({ psktype: "resumption", usage: "application", pskGroupId: new Uint8Array([8, 9, 10]), pskEpoch: 123n, pskNonce: new Uint8Array([11, 12, 13, 14]), }); }); }); //# sourceMappingURL=pskId.test.js.map