UNPKG

miscreant

Version:

Misuse resistant symmetric encryption library providing AES-SIV (RFC 5297), AES-PMAC-SIV, and STREAM constructions

12 lines (10 loc) 286 B
import { suite, test } from "mocha-typescript"; import { expect } from "chai"; import { wipe } from "../src/internals/wipe"; @suite class WipeSpec { @test "should wipe bytes"() { const a = new Uint8Array([1, 2, 3, 4]); wipe(a); expect(a).to.eql(new Uint8Array(4)); } }