From c42d8382ddf3710082059f2501293d79a5e440d9 Mon Sep 17 00:00:00 2001 From: terrafrost Date: Thu, 2 Apr 2015 07:01:37 -0500 Subject: [PATCH] Crypt/Base: CRYPT_MODE -> self::MODE --- phpseclib/Crypt/Base.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/phpseclib/Crypt/Base.php b/phpseclib/Crypt/Base.php index 12cd023c..04309d81 100644 --- a/phpseclib/Crypt/Base.php +++ b/phpseclib/Crypt/Base.php @@ -1374,15 +1374,15 @@ abstract class Base function _openssl_translate_mode() { switch ($this->mode) { - case CRYPT_MODE_ECB: + case self::MODE_ECB: return 'ecb'; - case CRYPT_MODE_CBC: + case self::MODE_CBC: return 'cbc'; - case CRYPT_MODE_CTR: + case self::MODE_CTR: return 'ctr'; - case CRYPT_MODE_CFB: + case self::MODE_CFB: return 'cfb'; - case CRYPT_MODE_OFB: + case self::MODE_OFB: return 'ofb'; } }