use 0x7f as upper counter byte

This commit is contained in:
Conor Patrick
2019-03-04 02:36:47 -05:00
parent 4982b13f64
commit 195dc2a8ae
2 changed files with 3 additions and 3 deletions

View File

@@ -448,7 +448,7 @@ class Tester:
if lastc:
assert (auth.counter - lastc) < 10
lastc = auth.counter
if lastc > 0x100000:
if lastc > 0x80000000:
print("WARNING: counter is unusually high: %04x" % lastc)
assert 0