Skip to content
Snippets Groups Projects
Commit d6b736d4 authored by totten's avatar totten
Browse files

#2564 - PhpseclibCipherSuite - Support v1 constants

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