mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-31 21:21:55 +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)) {
|
switch (strlen($key)) {
|
||||||
case 16:
|
case 16:
|
||||||
$key.= substr($key, 0, 8);
|
$key.= substr($key, 0, 8);
|
||||||
|
break;
|
||||||
case 24:
|
case 24:
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
@ -438,7 +439,6 @@ class TripleDES extends DES
|
|||||||
* @see \phpseclib\Crypt\Common\SymmetricKey::setPreferredEngine()
|
* @see \phpseclib\Crypt\Common\SymmetricKey::setPreferredEngine()
|
||||||
* @param int $engine
|
* @param int $engine
|
||||||
* @access public
|
* @access public
|
||||||
* @return int
|
|
||||||
*/
|
*/
|
||||||
public function setPreferredEngine($engine)
|
public function setPreferredEngine($engine)
|
||||||
{
|
{
|
||||||
@ -448,6 +448,6 @@ class TripleDES extends DES
|
|||||||
$this->des[2]->setPreferredEngine($engine);
|
$this->des[2]->setPreferredEngine($engine);
|
||||||
}
|
}
|
||||||
|
|
||||||
return parent::setPreferredEngine($engine);
|
parent::setPreferredEngine($engine);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user