Improve message when failed mac implies not decrypted.

pull/505/head
Fredrik Öhrström 2022-03-27 21:59:06 +02:00
rodzic fb729d5f35
commit e474bc686b
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -1601,7 +1601,7 @@ bool Telegram::potentiallyDecrypt(vector<uchar>::iterator &pos)
}
string info = bin2hex(pos, frame.end(), frame.end()-pos);
info += " mac fails";
info += " encrypted mac failed";
addExplanationAndIncrementPos(pos, frame.end()-pos, KindOfData::CONTENT, Understanding::ENCRYPTED, info.c_str());
if (meter_keys->confidentiality_key.size() > 0)
{