From 123eee71509f7dc33e69125a8a968de38bfff144 Mon Sep 17 00:00:00 2001 From: terrafrost Date: Fri, 18 Mar 2016 12:00:41 -0500 Subject: [PATCH] RC4: key wasn't being truncated correctly --- phpseclib/Crypt/RC4.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpseclib/Crypt/RC4.php b/phpseclib/Crypt/RC4.php index 4c871256..eccf682c 100644 --- a/phpseclib/Crypt/RC4.php +++ b/phpseclib/Crypt/RC4.php @@ -234,7 +234,7 @@ class Crypt_RC4 extends Crypt_Base if ($length < 8) { $this->key_length = 1; } elseif ($length > 2048) { - $this->key_length = 248; + $this->key_length = 256; } else { $this->key_length = $length >> 3; }