From dd76e6ce4e47f7e24d24e1ba773719ab8a7494a9 Mon Sep 17 00:00:00 2001 From: Simon Date: Wed, 3 Aug 2022 23:30:35 +0100 Subject: [PATCH] fix hmac --- hblink.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hblink.py b/hblink.py index 88af84a..9b6d41f 100755 --- a/hblink.py +++ b/hblink.py @@ -748,9 +748,9 @@ class OPENBRIDGE(DatagramProtocol): if _packet[:4] == BCTO: if self._config['VER'] > 5: - _hash = _packet[13:] + _hash = _packet[14:] _h = blake2b(key=self._config['PASSPHRASE'], digest_size=16) - _h.update(_packet[:13]) + _h.update(_packet[:14]) _hash2 = _h.digest() _src = _packet[4:8] _dst = _packet[8:12]