From 56d6624e4ea1ad98c99805298abf80e14c020115 Mon Sep 17 00:00:00 2001 From: Conor Patrick Date: Mon, 22 Apr 2019 16:26:26 -0400 Subject: [PATCH] Test correct alg parameter #179 --- tools/testing/tests/fido2.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testing/tests/fido2.py b/tools/testing/tests/fido2.py index fc27cfd..70f0e84 100644 --- a/tools/testing/tests/fido2.py +++ b/tools/testing/tests/fido2.py @@ -1009,8 +1009,8 @@ class FIDO2Tests(Tester): key = res[1] assert "Is public key" and key[1] == 2 assert "Is P256" and key[-1] == 1 - if key[3] != -7: - print("WARNING: algorithm returned is not for ES256 (-7): ", key[3]) + assert "Is ALG_ECDH_ES_HKDF_256" and key[3] == -25 + assert "Right key" and len(key[-3]) == 32 and isinstance(key[-3], bytes) with Test("Test setting a new pin"):