Skip to content
Snippets Groups Projects
Commit d0623576 authored by Seamus Lee's avatar Seamus Lee
Browse files

#2564 Fix class constants for when using phpseclib v1

parent a56ec16f
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_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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment