fix bit shift, although oddly both work

This commit is contained in:
Theron Spiegl 2021-01-14 20:40:16 -06:00
parent eaaaca98ff
commit f56321821c

View File

@ -12,7 +12,7 @@ const crypto_core_hchacha20_CONSTBYTES = 16
function ROTL32 (x, b) {
x &= 0xFFFFFFFF
b &= 0xFFFFFFFF
return (x << b) | (x >>> (64 - b))
return (x << b) | (x >>> (32 - b))
}
function LOAD32_LE (src, offset) {