From 23ea28205db48b975c2c0734a6253918c3f3288f Mon Sep 17 00:00:00 2001 From: Danilo Alonso Date: Tue, 9 Dec 2025 11:25:36 -0500 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20fixedTimeComparison=20fav?= =?UTF-8?q?ors=20our=20generated=20value=20to=20guarantee=20fixed=20time?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/crypto.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/crypto.js b/lib/crypto.js index 7b980a0..4fbb9a3 100755 --- a/lib/crypto.js +++ b/lib/crypto.js @@ -144,7 +144,7 @@ exports.verify = function (raw, algorithm, key) { case 'HS512': { const compare = exports.generate(value, algorithm, key); - return Cryptiles.fixedTimeComparison(signature, compare); + return Cryptiles.fixedTimeComparison(compare, signature); } case 'EDDSA': {