Skip to content

Commit e142b16

Browse files
authored
Merge pull request #7848 from miyazakh/fips_wcPBKDF2ex
Check klen in byte in wc_PBKDF2_ex
2 parents 034e132 + 180ad20 commit e142b16

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

wolfcrypt/src/pwdbased.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ int wc_PBKDF2_ex(byte* output, const byte* passwd, int pLen, const byte* salt,
218218
* length", ensure the returned bits for the derived master key are at a
219219
* minimum 14-bytes or 112-bits after stretching and strengthening
220220
* (iterations) */
221-
if (kLen < HMAC_FIPS_MIN_KEY/8)
221+
if (kLen < HMAC_FIPS_MIN_KEY)
222222
return BAD_LENGTH_E;
223223
#endif
224224

0 commit comments

Comments
 (0)