From: <hep...@us...> - 2016-11-12 22:09:20
|
Revision: 1349 http://sourceforge.net/p/qterm/code/1349 Author: hephooey Date: 2016-11-12 22:09:18 +0000 (Sat, 12 Nov 2016) Log Message: ----------- Add aes128-ctr for SMTH Modified Paths: -------------- trunk/qterm/src/ssh/kex.cpp trunk/qterm/src/ssh/transport.cpp Modified: trunk/qterm/src/ssh/kex.cpp =================================================================== --- trunk/qterm/src/ssh/kex.cpp 2016-06-20 20:47:35 UTC (rev 1348) +++ trunk/qterm/src/ssh/kex.cpp 2016-11-12 22:09:18 UTC (rev 1349) @@ -36,7 +36,7 @@ { m_kexList << "diffie-hellman-group14-sha1" << "diffie-hellman-group1-sha1"; m_hostKeyList << "ssh-dss"; - m_encList << "aes128-cbc" << "3des-cbc"; + m_encList << "aes128-cbc" << "aes128-ctr" << "3des-cbc"; m_macList << "hmac-sha1" << "hmac-md5"; m_compList << "none"; Modified: trunk/qterm/src/ssh/transport.cpp =================================================================== --- trunk/qterm/src/ssh/transport.cpp 2016-06-20 20:47:35 UTC (rev 1348) +++ trunk/qterm/src/ssh/transport.cpp 2016-11-12 22:09:18 UTC (rev 1349) @@ -79,6 +79,11 @@ m_blockSize = 16; m_secretLen = 16; m_evptype = EVP_aes_128_cbc(); + } else if (algorithm == "aes128-ctr") { + m_ivLen = 16; + m_blockSize = 16; + m_secretLen = 16; + m_evptype = EVP_aes_128_ctr(); } else if (algorithm == "3des-cbc") { m_ivLen = 8; m_blockSize = 8; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |