Revert "For HBP, we can use a sha1 digest- 2"

This reverts commit 6a3acf0d08.
crc16
Simon 4 years ago
parent 42591a5288
commit bd1eba0464

@ -40,7 +40,7 @@ import re
import copy
from setproctitle import setproctitle
#from crccheck.crc import Crc32
from hashlib import hashlib.sha1
from hashlib import sha1
# Twisted is pretty important, so I keep it separate
from twisted.internet.protocol import Factory, Protocol
@ -2066,7 +2066,7 @@ class routerHBP(HBSYSTEM):
_bits = _data[15]
#_pkt_crc = Crc32.calc(_data[4:53])
_pkt_crc = hashlib.sha1(_data).digest()
_pkt_crc = sha1(_data).digest()
_nine = bytes_3(9)

Loading…
Cancel
Save

Powered by TurnKey Linux.