mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-05 21:17:53 +00:00
Crypt/Base: readability improvement
This commit is contained in:
parent
d8b235141e
commit
0bafe1e6c6
@ -573,10 +573,10 @@ class Crypt_Base
|
||||
$count = isset($func_args[4]) ? $func_args[4] : 1000;
|
||||
|
||||
// Keylength
|
||||
if (!isset($func_args[5])) {
|
||||
$dkLen = $method == 'pbkdf1' ? 2 * $this->password_key_size : $this->password_key_size;
|
||||
} else {
|
||||
if (isset($func_args[5])) {
|
||||
$dkLen = $func_args[5];
|
||||
} else {
|
||||
$dkLen = $method == 'pbkdf1' ? 2 * $this->password_key_size : $this->password_key_size;
|
||||
}
|
||||
|
||||
switch (true) {
|
||||
|
Loading…
Reference in New Issue
Block a user