UNPKG

@logismika/crypto

Version:
10 lines (9 loc) 256 B
import { BLOCK_SIZE } from "./consts"; import { toByte } from "./utils"; export const GOST_Kuz_X = (a, b) => { const c = new Uint8Array(BLOCK_SIZE); for (let i = 0; i < c.length; i += 1) { c[i] = toByte(a[i] ^ b[i]); } return c; };