be standard

This commit is contained in:
Christophe Diederichs 2020-06-16 14:17:31 +02:00
parent 7141f00ff0
commit d57736bf8b

View File

@ -79,7 +79,7 @@ function crypto_secretbox_open_easy(msg, box, n, k) {
var i
var c = new Uint8Array(crypto_secretbox_BOXZEROBYTES + box.length)
var m = new Uint8Array(c.length);
var m = new Uint8Array(c.length)
for (i = 0; i < box.length; i++) c[i + crypto_secretbox_BOXZEROBYTES] = box[i]
if (c.length < 32) return false
if (crypto_secretbox_open(m, c, c.length, n, k) !== 0) return false