From: Tim Otten Date: Mon, 26 Apr 2021 21:05:45 +0000 (-0700) Subject: dev/core#2564 - PhpseclibCipherSuite - Support v1 constants X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=d6b736d42e9ad9c23638269d2909d16769441056;p=civicrm-core.git dev/core#2564 - PhpseclibCipherSuite - Support v1 constants --- diff --git a/Civi/Crypto/PhpseclibCipherSuite.php b/Civi/Crypto/PhpseclibCipherSuite.php index 5bb6c5dc1a..d7fdf09494 100644 --- 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 - $this->ciphers['aes-cbc'] = new \Crypt_AES(\Crypt_AES::CRYPT_MODE_CBC); + $this->ciphers['aes-cbc'] = new \Crypt_AES(CRYPT_MODE_CBC); $this->ciphers['aes-cbc']->setKeyLength(256); - $this->ciphers['aes-ctr'] = new \Crypt_AES(\Crypt_AES::CRYPT_MODE_CTR); + $this->ciphers['aes-ctr'] = new \Crypt_AES(CRYPT_MODE_CBC); $this->ciphers['aes-ctr']->setKeyLength(256); } else {