From d9adb6660965644afd78b4bbbd20266b89aa9484 Mon Sep 17 00:00:00 2001 From: terrafrost Date: Sun, 14 Dec 2014 11:03:12 -0600 Subject: [PATCH] Crypt/Base: fix typo --- phpseclib/Crypt/Base.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpseclib/Crypt/Base.php b/phpseclib/Crypt/Base.php index c2091387..79667a20 100644 --- a/phpseclib/Crypt/Base.php +++ b/phpseclib/Crypt/Base.php @@ -1002,7 +1002,7 @@ class Crypt_Base case CRYPT_MODE_CBC: if (!defined('OPENSSL_RAW_DATA')) { $padding = str_repeat(chr($this->block_size), $this->block_size) ^ substr($ciphertext, -$this->block_size); - $plaintext.= openssl_encrypt($padding, $this->cipher_name_openssl_ecb, $this->key, true); + $ciphertext.= openssl_encrypt($padding, $this->cipher_name_openssl_ecb, $this->key, true); } $plaintext = openssl_decrypt($ciphertext, $this->cipher_name_openssl, $this->key, $this->openssl_options, $this->decryptIV); if ($this->continuousBuffer) {