From d062357645622f0a9bd0255f37122f862822fc11 Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Mon, 26 Apr 2021 17:56:55 +1000 Subject: [PATCH] dev/core#2564 Fix class constants for when using phpseclib v1 --- Civi/Crypto/PhpseclibCipherSuite.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Civi/Crypto/PhpseclibCipherSuite.php b/Civi/Crypto/PhpseclibCipherSuite.php index 6168330754..5bb6c5dc1a 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::MODE_CBC); + $this->ciphers['aes-cbc'] = new \Crypt_AES(\Crypt_AES::CRYPT_MODE_CBC); $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_AES::CRYPT_MODE_CTR); $this->ciphers['aes-ctr']->setKeyLength(256); } else { -- 2.25.1