mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-28 12:10:59 +00:00
Merge branch '1.0' into 2.0
This commit is contained in:
commit
3119bb98e3
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user