diff --git a/crypto_verify.js b/crypto_verify.js index 8bc08bf..29ab54c 100644 --- a/crypto_verify.js +++ b/crypto_verify.js @@ -23,5 +23,5 @@ function crypto_verify_32(x, xi, y, yi) { function sodium_memcmp (a, b) { assert(a.byteLength = b.byteLength, 'buffers must be the same size') - return vn(a, 0, b, 0, a.byteLength) + return vn(a, 0, b, 0, a.byteLength) === 0 }