From 180ad206fc79af71aca102aff505a4db1a8d2d5e Mon Sep 17 00:00:00 2001 From: Hideki Miyazaki Date: Thu, 8 Aug 2024 08:52:08 +0900 Subject: [PATCH] check klen in byte --- wolfcrypt/src/pwdbased.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wolfcrypt/src/pwdbased.c b/wolfcrypt/src/pwdbased.c index a8607adc7c..fb06dcef6e 100644 --- a/wolfcrypt/src/pwdbased.c +++ b/wolfcrypt/src/pwdbased.c @@ -218,7 +218,7 @@ int wc_PBKDF2_ex(byte* output, const byte* passwd, int pLen, const byte* salt, * length", ensure the returned bits for the derived master key are at a * minimum 14-bytes or 112-bits after stretching and strengthening * (iterations) */ - if (kLen < HMAC_FIPS_MIN_KEY/8) + if (kLen < HMAC_FIPS_MIN_KEY) return BAD_LENGTH_E; #endif