From 24634a02c9118b441e64d1951438ec05d12b35e0 Mon Sep 17 00:00:00 2001 From: Juliusz Sosinowicz Date: Thu, 14 May 2020 10:54:45 +0200 Subject: [PATCH] Fix comment --- wolfcrypt/src/ecc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wolfcrypt/src/ecc.c b/wolfcrypt/src/ecc.c index 5c561a1ee..9de60c4e3 100644 --- a/wolfcrypt/src/ecc.c +++ b/wolfcrypt/src/ecc.c @@ -9432,7 +9432,7 @@ int ecc_mul2add(ecc_point* A, mp_int* kA, } if (err == MP_OKAY) { - /* if it's >=2 build the LUT, if it's higher just use the LUT */ + /* if it's >= 2 AND the LUT is not set build the LUT */ if (idx1 >= 0 && fp_cache[idx1].lru_count >= 2 && !fp_cache[idx1].LUT_set) { /* compute mp */ err = mp_montgomery_setup(modulus, &mp); @@ -9449,7 +9449,7 @@ int ecc_mul2add(ecc_point* A, mp_int* kA, } if (err == MP_OKAY) { - /* if it's >=2 build the LUT, if it's higher just use the LUT */ + /* if it's >= 2 AND the LUT is not set build the LUT */ if (idx2 >= 0 && fp_cache[idx2].lru_count >= 2 && !fp_cache[idx2].LUT_set) { if (mpInit == 0) { /* compute mp */