Rijndael: calling $rijndael->setEngine() didn't have any effect

(CRYPT_RIJNDAEL_MODE constant was always over-riding it)
This commit is contained in:
terrafrost 2014-10-12 00:52:52 -05:00
parent 361b59fff9
commit c8b55b8929

View File

@ -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'));
}
}