Commit da3f4255 authored by Fedor Indutny's avatar Fedor Indutny
Browse files

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

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
PR-URL: https://github.com/nodejs/node/pull/5397


Reviewed-By: default avatarShigeki Ohtsu <ohtsu@iij.ad.jp>
Reviewed-By: default avatarBen Noorhduis <info@bnoordhuis.nl>
parent 610bd8d5
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment