Skip to content

crypto: check for valid iteration length in pbkdf2

An iteration length of NaN or Infinity is currently silently coerced to 0, which is more or less undefined behaviour. This commit makes NaN and Infinity invalid iteration parameter values.

We're doing the same checks for other parameters already, so it would make sense to be consistent here.

Merge request reports

Loading