1
0
mirror of https://github.com/danog/phpseclib.git synced 2024-11-27 04:46:26 +01:00

Crypt/Base; prioritize OpenSSL over mcrypt

This commit is contained in:
terrafrost 2015-03-30 23:33:52 -05:00
parent 6bd4e6018e
commit 1a51226d84

View File

@ -56,7 +56,6 @@
* @access public
* @see Crypt_Base::encrypt()
* @see Crypt_Base::decrypt()
* @internal This constants are for internal use only
*/
/**
* Encrypt / decrypt using the Counter mode.
@ -100,7 +99,7 @@ define('CRYPT_MODE_STREAM', 5);
/**#@+
* @access private
* @see Crypt_Base::Crypt_Base()
* @internal This constants are for internal use only
* @internal These constants are for internal use only
*/
/**
* Base value for the internal implementation $engine switch
@ -1641,8 +1640,8 @@ class Crypt_Base
$candidateEngines = array(
$this->preferredEngine,
CRYPT_ENGINE_MCRYPT,
CRYPT_ENGINE_OPENSSL
CRYPT_ENGINE_OPENSSL,
CRYPT_ENGINE_MCRYPT
);
foreach ($candidateEngines as $engine) {
if ($this->isValidEngine($engine)) {