1
0
mirror of https://github.com/danog/phpseclib.git synced 2024-12-15 02:17:04 +01:00

Merge branch '3.0'

This commit is contained in:
terrafrost 2021-04-13 08:06:02 -05:00
commit cd89d1766b

View File

@ -4520,7 +4520,7 @@ class SSH2
foreach ($engines as $engine) { foreach ($engines as $engine) {
foreach ($algos as $algo) { foreach ($algos as $algo) {
$obj = self::encryption_algorithm_to_crypt_instance($algo); $obj = self::encryption_algorithm_to_crypt_instance($algo);
if ($obj instanceof Rijndael ) { if ($obj instanceof Rijndael) {
$obj->setKeyLength(preg_replace('#[^\d]#', '', $algo)); $obj->setKeyLength(preg_replace('#[^\d]#', '', $algo));
} }
switch ($algo) { switch ($algo) {