UNPKG
@logismika/crypto
Version:
latest (0.5.0)
0.5.0
0.5.0-a4.0
0.5.0-a3
0.5.0-a2
0.5.0-a1
0.4.1
0.4.0
0.3.1
0.3.0
0.2.3
0.2.2
Crypto algorithms library
github.com/Logismika/crypto
Logismika/crypto
@logismika/crypto
/
build
/
esm
/
kuznechik
/
common
/
GOST_Kuz_X.js
10 lines
(9 loc)
•
256 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
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; };