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 830 B
import { encodeEncryptedGroupSecrets, decodeEncryptedGroupSecrets } from "../../src/welcome"; import { createRoundtripTest } from "./roundtrip"; describe("EncryptedGroupSecrets roundtrip", () => { const roundtrip = createRoundtripTest(encodeEncryptedGroupSecrets, decodeEncryptedGroupSecrets); test("roundtrips minimal", () => { roundtrip({ newMember: new Uint8Array([1]), encryptedGroupSecrets: { kemOutput: new Uint8Array([2]), ciphertext: new Uint8Array([3]) }, }); }); test("roundtrips nontrivial", () => { roundtrip({ newMember: new Uint8Array([4, 5, 6]), encryptedGroupSecrets: { kemOutput: new Uint8Array([7, 8]), ciphertext: new Uint8Array([9, 10, 11]) }, }); }); }); //# sourceMappingURL=encryptedGroupSecrets.test.js.map