projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #24106 from eileenmcnaughton/offline
[civicrm-core.git]
/
Civi
/
Crypto
/
PhpseclibCipherSuite.php
diff --git
a/Civi/Crypto/PhpseclibCipherSuite.php
b/Civi/Crypto/PhpseclibCipherSuite.php
index 61683307540bee970a45ef26c4c89c5f419c3cca..d7fdf09494f169941cb7e46cd437999d17436453 100644
(file)
--- a/
Civi/Crypto/PhpseclibCipherSuite.php
+++ b/
Civi/Crypto/PhpseclibCipherSuite.php
@@
-48,9
+48,9
@@
class PhpseclibCipherSuite implements CipherSuiteInterface {
}
elseif (class_exists('Crypt_AES')) {
// phpseclib v1
}
elseif (class_exists('Crypt_AES')) {
// phpseclib v1
- $this->ciphers['aes-cbc'] = new \Crypt_AES(
\Crypt_AES::
MODE_CBC);
+ $this->ciphers['aes-cbc'] = new \Crypt_AES(
CRYPT_
MODE_CBC);
$this->ciphers['aes-cbc']->setKeyLength(256);
$this->ciphers['aes-cbc']->setKeyLength(256);
- $this->ciphers['aes-ctr'] = new \Crypt_AES(
\Crypt_AES::MODE_CTR
);
+ $this->ciphers['aes-ctr'] = new \Crypt_AES(
CRYPT_MODE_CBC
);
$this->ciphers['aes-ctr']->setKeyLength(256);
}
else {
$this->ciphers['aes-ctr']->setKeyLength(256);
}
else {