From 5ef738855c7ef57e64be851f220058861cf41acd Mon Sep 17 00:00:00 2001 From: DKubasekRA <51989790+DKubasekRA@users.noreply.github.com> Date: Wed, 27 May 2020 10:43:36 +0200 Subject: [PATCH] Reverted comparison in ctMask16LT --- wolfcrypt/src/misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wolfcrypt/src/misc.c b/wolfcrypt/src/misc.c index 7f779dc24..7ff7eb01f 100644 --- a/wolfcrypt/src/misc.c +++ b/wolfcrypt/src/misc.c @@ -363,7 +363,7 @@ WC_STATIC WC_INLINE word16 ctMask16GT(int a, int b) WC_STATIC WC_INLINE word16 ctMask16LT(int a, int b) { - return (((word32)a - b - 1) >> 31) - 1; + return (((word32)b - a - 1) >> 31) - 1; } WC_STATIC WC_INLINE word16 ctMask16Eq(int a, int b)