Skip to content

Conversation

@gstarovo
Copy link
Contributor

The changes expand encoding/decoding of the ECDSA signature in DER format: expanded ECDSA-Sig-Value format and ECDSA-Full-R.
The definition of the formats can be found in document section C.5, page 114.

The changes bring supporting functions like encoding and decoding of boolean according to ASN.1 standard.
Beside that, the changes add parameter and slightly modifies ECDSA signing function for enabling return of the whole point (instead of 'r').
The testing coverage of encoding/decoding with new function is also present.

Also, there are some formatting changes made with black formatter.

@gstarovo
Copy link
Contributor Author

I will provide more coverage for the newly added code, as the results of the checks indicate coverage decline.

@gstarovo gstarovo force-pushed the ecdsa-sig-extend branch 5 times, most recently from 0961801 to e17d333 Compare October 23, 2025 09:39
name, verifying_key, _ = draw(st.sampled_from(keys_and_sigs))
note("Configuration: {0}".format(name))
order = int(verifying_key.curve.order)
generator = verifying_key.curve.generator

Check notice

Code scanning / CodeQL

Unused local variable Note test

Variable generator is not used.
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.

1 participant