Skip to content

Commit

Permalink
fixup! Remove ecdsa dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
robin-nitrokey committed Oct 24, 2024
1 parent f75aa43 commit 26e38eb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/nitrokey/trussed/_bootloader/nrf52.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ class SignatureKey:
def public_key(self) -> ec.EllipticCurvePublicKey:
public_key = serialization.load_der_public_key(bytes.fromhex(self.der))
assert isinstance(public_key, ec.EllipticCurvePublicKey)
assert isinstance(public_key.curve, ec.SECP256R1)
return public_key

def verify(self, signature: bytes, message: bytes) -> bool:
Expand Down

0 comments on commit 26e38eb

Please sign in to comment.