Skip to content

Commit

Permalink
Fix compatibility with cryptography 42
Browse files Browse the repository at this point in the history
  • Loading branch information
sosthene-nitrokey committed Apr 17, 2024
1 parent 49387f0 commit 740442b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pynitrokey/trussed/bootloader/lpc55_upload/crypto/keys.py
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,7 @@ def _get_ec_curve_object(name: EccCurve) -> ec.EllipticCurve:
for key_object in ec._CURVE_TYPES:
if key_object.lower() == name.lower():
# pylint: disable=protected-access
return ec._CURVE_TYPES[key_object]()
return ec._CURVE_TYPES[key_object]

raise SPSDKValueError(f"The EC curve with name '{name}' is not supported.")

Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,14 @@ dependencies = [
"certifi >= 14.5.14",
"cffi",
"click >=8.0, <=8.1.3",
"cryptography >=41.0.4,<44",
"cryptography >=42.0.4,<44",
"ecdsa",
"fido2 >=1.1.2,<2",
"intelhex",
"nkdfu",
"python-dateutil ~= 2.7.0",
"pyusb",
"requests",
# "spsdk >=2.0,<2.2",
"tqdm",
"tlv8",
"typing_extensions ~= 4.3.0",
Expand All @@ -44,6 +43,7 @@ dependencies = [
"nethsm >= 1.0.0,<2",
"asn1tools >= 0.166.0",
"pyyaml >= 6.0.1",
"types-PyYAML>= 6.0.1",
]
dynamic = ["version", "description"]

Expand Down

0 comments on commit 740442b

Please sign in to comment.