1
0
mirror of https://github.com/danog/phpseclib.git synced 2024-11-30 04:39:21 +01:00

Crypt/Base: readability improvement

This commit is contained in:
terrafrost 2014-06-16 09:57:04 -05:00
parent d8b235141e
commit 0bafe1e6c6

View File

@ -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) {