mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-17 02:35:10 +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;
|
$count = isset($func_args[4]) ? $func_args[4] : 1000;
|
||||||
|
|
||||||
// Keylength
|
// Keylength
|
||||||
if (!isset($func_args[5])) {
|
if (isset($func_args[5])) {
|
||||||
$dkLen = $method == 'pbkdf1' ? 2 * $this->password_key_size : $this->password_key_size;
|
|
||||||
} else {
|
|
||||||
$dkLen = $func_args[5];
|
$dkLen = $func_args[5];
|
||||||
|
} else {
|
||||||
|
$dkLen = $method == 'pbkdf1' ? 2 * $this->password_key_size : $this->password_key_size;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (true) {
|
switch (true) {
|
||||||
|
Loading…
Reference in New Issue
Block a user