Fixed hmac calculation typo

This commit is contained in:
Cort Buffington 2018-10-12 15:52:03 -05:00
parent 12871c2950
commit f80331cc0f
1 changed files with 1 additions and 1 deletions

View File

@ -219,7 +219,7 @@ class OPENBRIDGE(DatagramProtocol):
if _packet[:4] == 'DMRD': # DMRData -- encapsulated DMR data frame
_data = _packet[:53]
_hash = _packet[53:]
_ckhs = hmac_new(self._config['PASSPHRASE'],_data[53:],sha1).digest()
_ckhs = hmac_new(self._config['PASSPHRASE'],_data,sha1).digest()
if compare_digest(_hash, _ckhs) and _sockaddr == self._config['TARGET_SOCK']:
_peer_id = _data[11:15]