From c8b55b8929745e37bf3b7afb059c7ad3b856fb68 Mon Sep 17 00:00:00 2001 From: terrafrost Date: Sun, 12 Oct 2014 00:52:52 -0500 Subject: [PATCH] Rijndael: calling $rijndael->setEngine() didn't have any effect (CRYPT_RIJNDAEL_MODE constant was always over-riding it) --- phpseclib/Crypt/Rijndael.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/phpseclib/Crypt/Rijndael.php b/phpseclib/Crypt/Rijndael.php index 5fa05200..5f2b7519 100644 --- a/phpseclib/Crypt/Rijndael.php +++ b/phpseclib/Crypt/Rijndael.php @@ -437,11 +437,6 @@ class Crypt_Rijndael extends Crypt_Base // mcrypt is not usable for them, only for 128/192/256-bit keys // so we are forced to set the slower MODE_INTERNAL $engine $this->setEngine(CRYPT_MODE_INTERNAL); - } else { - // Set what is set/preferred in CRYPT_RIJNDAEL_MODE - // If its CRYPT_RIJNDAEL_MODE_MCRYPT and $this->cipher_name_mcrypt not available - // setEngine() will set to CRYPT_RIJNDAEL_MODE_INTERNAL automatically - $this->setEngine(constant('CRYPT_' . $this->const_namespace . '_MODE')); } }