Commit 88f39358 authored by Fedor Indutny's avatar Fedor Indutny Committed by Jeremiah Senkpiel
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>

Conflicts:
	test/parallel/test-crypto-pbkdf2.js
parent 9424fa57
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