diff options
Diffstat (limited to 'tests/keys/__init__.py')
-rw-r--r-- | tests/keys/__init__.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/keys/__init__.py b/tests/keys/__init__.py index 347be0d..c54ac3f 100644 --- a/tests/keys/__init__.py +++ b/tests/keys/__init__.py @@ -43,12 +43,14 @@ if has_crypto: keyobj = json.load(infile) return ec.EllipticCurvePrivateNumbers( - private_value=decode_value(keyobj['d']), - public_numbers=load_ec_pub_key_p_521().public_numbers() + private_value=decode_value(keyobj["d"]), + public_numbers=load_ec_pub_key_p_521().public_numbers(), ) def load_ec_pub_key_p_521(): - with open(os.path.join(BASE_PATH, 'jwk_ec_pub_P-521.json'), 'r') as infile: + with open( + os.path.join(BASE_PATH, "jwk_ec_pub_P-521.json"), "r" + ) as infile: keyobj = json.load(infile) return ec.EllipticCurvePublicNumbers( |