From e474bc686b6b32d5ec969dfa670657deec6b2940 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20=C3=96hrstr=C3=B6m?= Date: Sun, 27 Mar 2022 21:59:06 +0200 Subject: [PATCH] Improve message when failed mac implies not decrypted. --- src/wmbus.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wmbus.cc b/src/wmbus.cc index d3ba7c4..ea21630 100644 --- a/src/wmbus.cc +++ b/src/wmbus.cc @@ -1601,7 +1601,7 @@ bool Telegram::potentiallyDecrypt(vector::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) {