Skip to content
Snippets Groups Projects
Unverified Commit 666400d6 authored by Seamus Lee's avatar Seamus Lee Committed by GitHub
Browse files

Merge pull request #20148 from seamuslee001/dev_core_2564

#2564 Fix class constants for when using phpseclib v1
parents 93fba012 d6b736d4
Branches
Tags
No related merge requests found
......@@ -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_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_MODE_CBC);
$this->ciphers['aes-ctr']->setKeyLength(256);
}
else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment