From a04871ed03527e8a27b21ed3f69c6ebc19af9593 Mon Sep 17 00:00:00 2001 From: Luke Burns Date: Wed, 12 Jul 2017 15:21:24 -0400 Subject: [PATCH] fixed argument order for crypto_sign_open --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 69587da..1b7d52b 100644 --- a/index.js +++ b/index.js @@ -1642,7 +1642,7 @@ function unpackneg(r, p) { return 0; } -function crypto_sign_open(msg, sm, pk) { +function crypto_sign_open(sm, msg, pk) { check(msg, sm.length - crypto_sign_BYTES) check(sm, crypto_sign_BYTES) check(pk, crypto_sign_PUBLICKEYBYTES)