1
0
mirror of https://github.com/danog/phpseclib.git synced 2024-11-27 04:46:26 +01:00

Merge branch '1.0' into 2.0

This commit is contained in:
terrafrost 2018-10-13 08:15:46 -05:00
commit 3119bb98e3

View File

@ -620,7 +620,7 @@ abstract class Base
$count = isset($func_args[4]) ? $func_args[4] : 1000;
// Keylength
if (isset($func_args[5])) {
if (isset($func_args[5]) && $func_args[5] > 0) {
$dkLen = $func_args[5];
} else {
$dkLen = $method == 'pbkdf1' ? 2 * $this->key_length : $this->key_length;