breakup test_fido2

This commit is contained in:
Conor Patrick
2019-03-22 00:45:28 -04:00
parent c4262b0f5b
commit 0a7845459c
2 changed files with 275 additions and 417 deletions

View File

@ -73,6 +73,16 @@ class Tester:
def set_sim(self, b):
self.is_sim = b
def reboot(self,):
if self.is_sim:
print("Sending restart command...")
self.send_magic_reboot()
self.delay(0.25)
else:
print("Please reboot authentictor and hit enter")
input()
self.find_device()
def send_data(self, cmd, data):
if type(data) != type(b""):
data = struct.pack("%dB" % len(data), *[ord(x) for x in data])