From 896cbf52ad0704bda01a74ebe4d31035a7c07f42 Mon Sep 17 00:00:00 2001 From: kaihs <> Date: Sun, 18 Aug 2019 14:50:47 +0000 Subject: [PATCH] 36_WMBus: initial support for mode 7 encryption, mostly untested git-svn-id: https://svn.fhem.de/fhem/trunk@20012 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/CHANGED | 2 ++ fhem/FHEM/36_WMBUS.pm | 49 ++++++++++++++++++++++++++----------------- 2 files changed, 32 insertions(+), 19 deletions(-) diff --git a/fhem/CHANGED b/fhem/CHANGED index be5bb3ea3..d8ed52345 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -1,5 +1,7 @@ # Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # Do not insert empty lines here, update check depends on it. + - feature: 36_WMBUS: initial support for mode 7 encryption (mostly untested) + Digest::CMAC must be installed - feature: 72_XiaomiDevice: added S1 vacuum states - bugfix: 73_AutoShuttersControl: fix bug forum #966778 - change: 49_SSCam: commandref revised diff --git a/fhem/FHEM/36_WMBUS.pm b/fhem/FHEM/36_WMBUS.pm index 4037fdb50..d80d736e2 100644 --- a/fhem/FHEM/36_WMBUS.pm +++ b/fhem/FHEM/36_WMBUS.pm @@ -480,37 +480,37 @@ WMBUS_Attr(@) every minute.
WMBus messages can be optionally encrypted. In that case the matching AESkey must be specified with attr AESkey. Otherwise the decryption - will fail and no relevant data will be available. + will fail and no relevant data will be available. The module can decrypt messages encrypted according to security profile A or B (mode 5 and 7).

Prerequisites
- This module requires the perl modules Digest::CRC, Crypt::Mode::CBC and Crypt::Mode::CTR (Crypt modules only if encrypted messages should be processed).
+ This module requires the perl modules Digest::CRC, Crypt::Mode::CBC, Crypt::Mode::CTR and Digest::CMAC (last three only if encrypted messages should be processed).
On a debian based system these can be installed with
sudo apt-get install libdigest-crc-perl
- sudo cpan -i Crypt::Mode::CBC Crypt::Mode:CTR + sudo cpan -i Crypt::Mode::CBC Crypt::Mode:CTR Digest::CMAC


Define