Skip to content

Conversation

sigmike
Copy link
Contributor

@sigmike sigmike commented May 4, 2016

Proposal to fix the current fork between 32 and 64 bits systems.

Signature lengths stored on more than 4 bytes are accepted by OpenSSL 64
bits but rejected by OpenSSL 32 bits. The previous fix
(9b40cd5) prevented that on the whole
signature length but not on the R and S lengths. This patch normalizes
all the lengths by parsing and rewriting the whole structure.
@sandakersmann
Copy link
Contributor

@rat4 What do you think about this?

@sandakersmann
Copy link
Contributor

I have compiled with this patch and everything seems to run as normal on Linux Mint 64-bit.

@sandakersmann
Copy link
Contributor

Would be great if someone on Windows 32-bit or Linux 32-bit could compile and test.

@sunnyking sunnyking merged commit f11aad0 into master May 5, 2016
@sunnyking
Copy link
Member

Looks great! Thanks Mike for the quick fix :)

@sandakersmann
Copy link
Contributor

@glv2 Can you push this to peerunity master as well? Would also be great if you could make another release :)

@sigmike sigmike mentioned this pull request May 5, 2016
hrobeers pushed a commit that referenced this pull request Jun 21, 2017
@backpacker69 backpacker69 deleted the signature_fix2 branch February 4, 2019 14:04
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