Skip to content

Commit

Permalink
Update verifier.py for public_key overwrite (#245)
Browse files Browse the repository at this point in the history
  • Loading branch information
msetina authored Mar 17, 2024
1 parent 72256dc commit 9fd22ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions signxml/verifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -503,8 +503,8 @@ def _check_key_value_matches_cert_public_key(self, key_value, public_key, signat
):
ec_key_value = self._find(key_value, "dsig11:ECKeyValue")
named_curve = self._find(ec_key_value, "dsig11:NamedCurve")
public_key = self._find(ec_key_value, "dsig11:PublicKey")
key_data = b64decode(public_key.text)[1:]
pub_key = self._find(ec_key_value, "dsig11:PublicKey")
key_data = b64decode(pub_key.text)[1:]
x = bytes_to_long(key_data[: len(key_data) // 2])
y = bytes_to_long(key_data[len(key_data) // 2 :])
curve_class = self.known_ecdsa_curves[named_curve.get("URI")]
Expand Down

0 comments on commit 9fd22ff

Please sign in to comment.