Crypt/Base: fix typo

This commit is contained in:
terrafrost 2014-12-14 11:03:12 -06:00
parent 4cc23b7006
commit d9adb66609

View File

@ -1002,7 +1002,7 @@ class Crypt_Base
case CRYPT_MODE_CBC: case CRYPT_MODE_CBC:
if (!defined('OPENSSL_RAW_DATA')) { if (!defined('OPENSSL_RAW_DATA')) {
$padding = str_repeat(chr($this->block_size), $this->block_size) ^ substr($ciphertext, -$this->block_size); $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); $plaintext = openssl_decrypt($ciphertext, $this->cipher_name_openssl, $this->key, $this->openssl_options, $this->decryptIV);
if ($this->continuousBuffer) { if ($this->continuousBuffer) {