Skip to content

firmware: validate antiklepto signatures - #175

Merged
benma merged 1 commit into
BitBoxSwiss:masterfrom
benma-agent:benma-agent/validate-antiklepto-signatures
Aug 24, 2026
Merged

firmware: validate antiklepto signatures#175
benma merged 1 commit into
BitBoxSwiss:masterfrom
benma-agent:benma-agent/validate-antiklepto-signatures

Conversation

@benma-agent

@benma-agent benma-agent commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Use shared compact and recoverable ECDSA validators for direct
signing responses and from inside Anti-Klepto verification. Reject
invalid scalars, high-S encodings, and recovery IDs outside the
secp256k1 range.

Accept recovery IDs 0..3 for all recoverable ECDSA signatures.
Add regression coverage for malformed signatures.

Same change as in BitBoxSwiss/bitbox-api-rs#129

@cedwies cedwies left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice, just one question.

Comment thread api/firmware/secp256k1.go

@cedwies cedwies left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

Use shared compact and recoverable ECDSA validators for direct
signing responses and from inside Anti-Klepto verification. Reject
invalid scalars, high-S encodings, and recovery IDs outside the
secp256k1 range.

Accept recovery IDs 0..3 for all recoverable ECDSA signatures.
Add regression coverage for malformed signatures.
@benma-agent
benma-agent force-pushed the benma-agent/validate-antiklepto-signatures branch from ab7b035 to cdb6fcc Compare August 24, 2026 10:58
@benma
benma merged commit fdcae40 into BitBoxSwiss:master Aug 24, 2026
3 checks passed
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.

3 participants