From df1d817f1f509ee2c770121f44c35b5ee25e3536 Mon Sep 17 00:00:00 2001 From: Juliusz Sosinowicz Date: Mon, 18 Oct 2021 15:19:43 +0200 Subject: [PATCH] #129 --- wolfcrypt/src/tfm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wolfcrypt/src/tfm.c b/wolfcrypt/src/tfm.c index 1a8050b20..970c3e9d7 100644 --- a/wolfcrypt/src/tfm.c +++ b/wolfcrypt/src/tfm.c @@ -1430,7 +1430,7 @@ int fp_invmod_mont_ct(fp_int *a, fp_int *b, fp_int *c, fp_digit mp) fp_int* pre; #endif - if ((a->used * 2 > FP_MAX_BITS) || (b->used * 2 > FP_MAX_BITS)) { + if ((a->used * 2 > FP_SIZE) || (b->used * 2 > FP_SIZE)) { return FP_VAL; }