be standard
This commit is contained in:
parent
7141f00ff0
commit
d57736bf8b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user