mirror of
https://github.com/danog/phpseclib.git
synced 2024-12-02 17:52:59 +01:00
Crypt/Base: CRYPT_MODE -> self::MODE
This commit is contained in:
parent
c274370ed9
commit
c42d8382dd
@ -1374,15 +1374,15 @@ abstract class Base
|
|||||||
function _openssl_translate_mode()
|
function _openssl_translate_mode()
|
||||||
{
|
{
|
||||||
switch ($this->mode) {
|
switch ($this->mode) {
|
||||||
case CRYPT_MODE_ECB:
|
case self::MODE_ECB:
|
||||||
return 'ecb';
|
return 'ecb';
|
||||||
case CRYPT_MODE_CBC:
|
case self::MODE_CBC:
|
||||||
return 'cbc';
|
return 'cbc';
|
||||||
case CRYPT_MODE_CTR:
|
case self::MODE_CTR:
|
||||||
return 'ctr';
|
return 'ctr';
|
||||||
case CRYPT_MODE_CFB:
|
case self::MODE_CFB:
|
||||||
return 'cfb';
|
return 'cfb';
|
||||||
case CRYPT_MODE_OFB:
|
case self::MODE_OFB:
|
||||||
return 'ofb';
|
return 'ofb';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user