mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-26 19:40:28 +00:00
Rijndael: calling $rijndael->setEngine() didn't have any effect
(CRYPT_RIJNDAEL_MODE constant was always over-riding it)
This commit is contained in:
parent
361b59fff9
commit
c8b55b8929
@ -437,11 +437,6 @@ class Crypt_Rijndael extends Crypt_Base
|
|||||||
// mcrypt is not usable for them, only for 128/192/256-bit keys
|
// mcrypt is not usable for them, only for 128/192/256-bit keys
|
||||||
// so we are forced to set the slower MODE_INTERNAL $engine
|
// so we are forced to set the slower MODE_INTERNAL $engine
|
||||||
$this->setEngine(CRYPT_MODE_INTERNAL);
|
$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'));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user