Details
-
Bug
-
Resolution: Done
-
P2: Important
-
Qt Creator 4.7.1
-
None
-
I have also used this useful code to connect to Switches and Routers Cisco. I know this is not its purpose but someone else could have the same problem connecting to remote Linux hosts.
Sorry for my bad English.
-
-
4c82dd6d120e07b382a7ac59b2dd0d8212dab955 (qt-creator/qt-creator/4.8)
Description
Before adding CTR support for AES I was able to connect to remote hosts with CBC. Now with the new code (4.7.1) I can connect with CTR mode but connection with CBC mode stopped working.
Bad decrypted length in SshIncomingPacket::calculateLength() as shown in log attached.
A simple workaround I performed was to replace the new code with the old one:
classes SshEncryptionFacility and SshDecryptionFacility:
function makeCipherMode:
switch (mode) {
case CbcMode:
case CtrMode:
return makeCtrCipherMode(cipher, iv, key);
}
After that, both CBC and CTR modes work successfully.