Skip to content

crypto: PBKDF2 works with `int` not `ssize_t`

Rodrigo Muino Tomonari requested to merge github/fork/indutny/fix/gh-5396 into master

Pull Request check-list

Please make sure to review and check all of these items:

  • Does make -j8 test (UNIX) or vcbuild test nosign (Windows) pass with this change (including linting)?
  • Is the commit message formatted according to CONTRIBUTING.md?
  • If this change fixes a bug (or a performance problem), is a regression test (or a benchmark) included?
  • Is a documentation update included (if this change modifies existing APIs, or introduces new ones)?

NOTE: these things are not required to open a PR and can be done afterwards / while the PR is open.

Affected core subsystem(s)

Please provide affected core subsystem(s) (like buffer, cluster, crypto, etc)

Description of change

Change types of all PBKDF2 params to int as they are int in evp.h.

Check that raw_keylen fits into int before passing it to OpenSSL.

Fix: #5396 (closed)

Merge request reports

Loading