mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-12 16:36:30 +00:00
Added missin break
removed return statement
This commit is contained in:
parent
cc3f0c1ec1
commit
65d9e2bb49
@ -258,6 +258,7 @@ class TripleDES extends DES
|
||||
switch (strlen($key)) {
|
||||
case 16:
|
||||
$key.= substr($key, 0, 8);
|
||||
break;
|
||||
case 24:
|
||||
break;
|
||||
default:
|
||||
@ -438,7 +439,6 @@ class TripleDES extends DES
|
||||
* @see \phpseclib\Crypt\Common\SymmetricKey::setPreferredEngine()
|
||||
* @param int $engine
|
||||
* @access public
|
||||
* @return int
|
||||
*/
|
||||
public function setPreferredEngine($engine)
|
||||
{
|
||||
@ -448,6 +448,6 @@ class TripleDES extends DES
|
||||
$this->des[2]->setPreferredEngine($engine);
|
||||
}
|
||||
|
||||
return parent::setPreferredEngine($engine);
|
||||
parent::setPreferredEngine($engine);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user