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

13 lines 490 B
import { encodeHpkeCiphertext, decodeHpkeCiphertext } from "../../src/hpkeCiphertext"; import { createRoundtripTest } from "./roundtrip"; const dummy = { kemOutput: new Uint8Array([1, 2, 3]), ciphertext: new Uint8Array([4, 5, 6]), }; describe("HPKECiphertext roundtrip", () => { const roundtrip = createRoundtripTest(encodeHpkeCiphertext, decodeHpkeCiphertext); test("roundtrips", () => { roundtrip(dummy); }); }); //# sourceMappingURL=hpkeCiphertext.test.js.map