Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bugfix: fixed trailing null byte bug for biguint/bytes conversions #224

Merged
merged 1 commit into from
Mar 27, 2024

Conversation

JosePisco
Copy link
Contributor

EC keys with a trailing null byte were being wrongfully processed during BigUint-bytes conversions resulting in loss of information on the private key and different encryption values.

This was due to a wrong implementation of the method converting big-endian encoded BigUint to u32 words.
This PR aims at fixing this bug.

Took the opportunity to remove irrelevant #[cfg].

Copy link
Contributor

@Manuthor Manuthor left a comment

Choose a reason for hiding this comment

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

thanks a lot for this

@Manuthor Manuthor merged commit a77a932 into develop Mar 27, 2024
33 checks passed
@Manuthor Manuthor deleted the cryptogen-bugfix branch March 27, 2024 13:30
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