mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-29 04:23:34 +00:00
Merge branch '2.0'
This commit is contained in:
commit
405ed06e8a
@ -679,6 +679,9 @@ abstract class SymmetricKey
|
||||
|
||||
// Keylength
|
||||
if (isset($func_args[3])) {
|
||||
if ($func_args[3] <= 0) {
|
||||
throw new \LengthException('Derived key length cannot be longer 0 or less');
|
||||
}
|
||||
$dkLen = $func_args[3];
|
||||
} else {
|
||||
$key_length = $this->explicit_key_length !== false ? $this->explicit_key_length : $this->key_length;
|
||||
|
Loading…
Reference in New Issue
Block a user