From 1a51226d84864a303e95228af10becd5aa1879da Mon Sep 17 00:00:00 2001 From: terrafrost Date: Mon, 30 Mar 2015 23:33:52 -0500 Subject: [PATCH] Crypt/Base; prioritize OpenSSL over mcrypt --- phpseclib/Crypt/Base.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/phpseclib/Crypt/Base.php b/phpseclib/Crypt/Base.php index 5bd50862..f1fb1585 100644 --- a/phpseclib/Crypt/Base.php +++ b/phpseclib/Crypt/Base.php @@ -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)) {