Skip to content

Fix comparison logic for ECDSA public keys#290

Merged
kislyuk merged 1 commit into
XML-Security:mainfrom
MatthiasValvekens:bugfix/ec-public-key-compare
Feb 18, 2026
Merged

Fix comparison logic for ECDSA public keys#290
kislyuk merged 1 commit into
XML-Security:mainfrom
MatthiasValvekens:bugfix/ec-public-key-compare

Conversation

@MatthiasValvekens
Copy link
Copy Markdown
Contributor

The key comparison logic for ECDSA keys contains an error in the curve type comparison, causing it to report a mismatch even if the keys are the same. This PR fixes said error, and adds tests exercising the ECDSA branch of this logic.

@MatthiasValvekens MatthiasValvekens force-pushed the bugfix/ec-public-key-compare branch from 5606eb8 to e59bdec Compare February 18, 2026 00:34
MatthiasValvekens added a commit to MatthiasValvekens/pyHanko that referenced this pull request Feb 18, 2026
Generate test TLs without KeyValue to work around a validation
bug introduced in v4.3.0 (see XML-Security/signxml#290).
@kislyuk kislyuk merged commit 7dd7718 into XML-Security:main Feb 18, 2026
2 of 26 checks passed
@kislyuk
Copy link
Copy Markdown
Member

kislyuk commented Feb 18, 2026

Thanks for finding and fixing this!

@kislyuk
Copy link
Copy Markdown
Member

kislyuk commented Feb 18, 2026

Released in v4.3.1.

JanSoderback pushed a commit to JanSoderback/signxml that referenced this pull request Feb 18, 2026
The key comparison logic for ECDSA keys contains an error in the curve
type comparison, causing it to report a mismatch even if the keys are
the same. This PR fixes said error, and adds tests exercising the ECDSA
branch of this logic.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants