UNPKG

@hackbg/miscreant-esm

Version:

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

9 lines 283 B
// Copyright (C) 2016 Dmitry Chestnykh // MIT License. See LICENSE file for details. /** Perform an in-place bitwise XOR operation on two bytestrings */ export function xor(a, b) { for (let i = 0; i < b.length; i++) { a[i] ^= b[i]; } } //# sourceMappingURL=xor.js.map