diff --git a/tests/pico-fido/test_020_register.py b/tests/pico-fido/test_020_register.py index bbb2dd1..78377d8 100644 --- a/tests/pico-fido/test_020_register.py +++ b/tests/pico-fido/test_020_register.py @@ -20,6 +20,8 @@ from fido2.client import CtapError from fido2.cose import ES256, ES384, ES512 +import fido2.features +fido2.features.webauthn_json_mapping.enabled = False from utils import ES256K import pytest diff --git a/tests/pico-fido/test_035_hmac_secret.py b/tests/pico-fido/test_035_hmac_secret.py index 8a2d619..ed2861c 100644 --- a/tests/pico-fido/test_035_hmac_secret.py +++ b/tests/pico-fido/test_035_hmac_secret.py @@ -69,12 +69,12 @@ def test_hmac_secret_entropy(device, MCHmacSecret, hmac, salts #print(shannon_entropy(auth.authenticator_data.extensions['hmac-secret'])) if len(salts) == 1: - assert shannon_entropy(auth.authenticator_data.extensions['hmac-secret']) > 4.6 - assert shannon_entropy(ext["hmacGetSecret"]['output1']) > 4.6 + assert shannon_entropy(auth.authenticator_data.extensions['hmac-secret']) > 4.5 + assert shannon_entropy(ext["hmacGetSecret"]['output1']) > 4.5 if len(salts) == 2: assert shannon_entropy(auth.authenticator_data.extensions['hmac-secret']) > 5.4 - assert shannon_entropy(ext["hmacGetSecret"]['output1']) > 4.6 - assert shannon_entropy(ext["hmacGetSecret"]['output2']) > 4.6 + assert shannon_entropy(ext["hmacGetSecret"]['output1']) > 4.5 + assert shannon_entropy(ext["hmacGetSecret"]['output2']) > 4.5 def get_output(device, MCHmacSecret, hmac, salts): hout = {'salt1':salts[0]}