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

Crypt: some of the minimum key lengths were off

This commit is contained in:
terrafrost 2017-12-19 07:04:36 -06:00
parent 354666c36d
commit c340d62548
2 changed files with 2 additions and 2 deletions

View File

@ -367,7 +367,7 @@ class Crypt_Blowfish extends Crypt_Base
function setKeyLength($length)
{
if ($length < 32) {
$this->key_length = 7;
$this->key_length = 4;
} elseif ($length > 448) {
$this->key_length = 56;
} else {

View File

@ -369,7 +369,7 @@ class Crypt_RC2 extends Crypt_Base
function setKeyLength($length)
{
if ($length < 8) {
$this->default_key_length = 8;
$this->default_key_length = 1;
} elseif ($length > 1024) {
$this->default_key_length = 128;
} else {