mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-16 18:25:13 +00:00
Crypt/Base; prioritize OpenSSL over mcrypt
This commit is contained in:
parent
6bd4e6018e
commit
1a51226d84
@ -56,7 +56,6 @@
|
|||||||
* @access public
|
* @access public
|
||||||
* @see Crypt_Base::encrypt()
|
* @see Crypt_Base::encrypt()
|
||||||
* @see Crypt_Base::decrypt()
|
* @see Crypt_Base::decrypt()
|
||||||
* @internal This constants are for internal use only
|
|
||||||
*/
|
*/
|
||||||
/**
|
/**
|
||||||
* Encrypt / decrypt using the Counter mode.
|
* Encrypt / decrypt using the Counter mode.
|
||||||
@ -100,7 +99,7 @@ define('CRYPT_MODE_STREAM', 5);
|
|||||||
/**#@+
|
/**#@+
|
||||||
* @access private
|
* @access private
|
||||||
* @see Crypt_Base::Crypt_Base()
|
* @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
|
* Base value for the internal implementation $engine switch
|
||||||
@ -1641,8 +1640,8 @@ class Crypt_Base
|
|||||||
|
|
||||||
$candidateEngines = array(
|
$candidateEngines = array(
|
||||||
$this->preferredEngine,
|
$this->preferredEngine,
|
||||||
CRYPT_ENGINE_MCRYPT,
|
CRYPT_ENGINE_OPENSSL,
|
||||||
CRYPT_ENGINE_OPENSSL
|
CRYPT_ENGINE_MCRYPT
|
||||||
);
|
);
|
||||||
foreach ($candidateEngines as $engine) {
|
foreach ($candidateEngines as $engine) {
|
||||||
if ($this->isValidEngine($engine)) {
|
if ($this->isValidEngine($engine)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user