Fixed hmac calculation typo
This commit is contained in:
parent
12871c2950
commit
f80331cc0f
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue