can now return crypto_verify result directly

This commit is contained in:
Christophe Diederichs 2020-09-15 12:29:13 +02:00
parent 13fcad4d8e
commit fdcd6621a7

View File

@ -33,5 +33,5 @@ function crypto_onetimeauth_verify (mac, msg, key) {
var tmp = new Uint8Array(16)
crypto_onetimeauth(tmp, msg, key)
return crypto_verify_16(mac, 0, tmp, 0) === 0
return crypto_verify_16(mac, 0, tmp, 0)
}