Skip to content

Commit

Permalink
check klen in byte
Browse files Browse the repository at this point in the history
  • Loading branch information
miyazakh committed Aug 7, 2024
1 parent 0ab1f19 commit 180ad20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wolfcrypt/src/pwdbased.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 180ad20

Please sign in to comment.