mirror of
https://github.com/polhenarejos/pico-fido.git
synced 2025-12-16 16:08:21 +08:00
Fix oath aid test.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
@@ -466,7 +466,7 @@ def ccid_card():
|
||||
|
||||
@pytest.fixture(scope="class")
|
||||
def select_oath(ccid_card):
|
||||
aid = [0xa0, 0x00, 0x00, 0x05, 0x27, 0x21, 0x01, 0x01]
|
||||
aid = [0xa0, 0x00, 0x00, 0x05, 0x27, 0x21, 0x01]
|
||||
resp = send_apdu(ccid_card, 0xA4, 0x04, 0x00, aid)
|
||||
return ccid_card
|
||||
|
||||
|
||||
@@ -123,7 +123,7 @@ def test_auth(reset_oath):
|
||||
resp = list_apdu(reset_oath)
|
||||
assert([e.value.sw1, e.value.sw2] == [0x69, 0x82])
|
||||
|
||||
aid = [0xa0, 0x00, 0x00, 0x05, 0x27, 0x21, 0x01, 0x01]
|
||||
aid = [0xa0, 0x00, 0x00, 0x05, 0x27, 0x21, 0x01]
|
||||
resp = send_apdu(reset_oath, 0xA4, 0x04, 0x00, aid)
|
||||
assert(resp[15] == TAG_CHALLENGE)
|
||||
assert(resp[16] == 8)
|
||||
|
||||
Reference in New Issue
Block a user