Skip to content

Commit 56d6624

Browse files
committed
Test correct alg parameter #179
1 parent 3094c87 commit 56d6624

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/testing/tests/fido2.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1009,8 +1009,8 @@ def test_client_pin(self,):
10091009
key = res[1]
10101010
assert "Is public key" and key[1] == 2
10111011
assert "Is P256" and key[-1] == 1
1012-
if key[3] != -7:
1013-
print("WARNING: algorithm returned is not for ES256 (-7): ", key[3])
1012+
assert "Is ALG_ECDH_ES_HKDF_256" and key[3] == -25
1013+
10141014
assert "Right key" and len(key[-3]) == 32 and isinstance(key[-3], bytes)
10151015

10161016
with Test("Test setting a new pin"):

0 commit comments

Comments
 (0)