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
[bug] Unit test regression when compiling against OpenSSL 3.0.x #3041
Comments
Possible solution: Bitcoin Core removed this unit test process in bitcoin/bitcoin#11024 - because its purpose is to make sure that our encryption and decryption code is compatible with wallets that used OpenSSL for encryption (pre-1.14 for us). Additionally, we may want to add a bunch of static fixtures that we know work with both implementations (when not broken) and test these instead. |
Also confirmed on Ubuntu 22.04 with Openssl 3.0.2 |
@envisiondata did you want to work on this one? If not, let me know then I push this through because this issue is growing (self-compiled builds on 2/3 recent linux I tried include openssl 3, so the problem is significant because automated builds on these platforms will fail on |
No My Linux box is slow. |
Fixed with #3079 |
Bug Report
Current behavior:
When testing custom builds on Fedora 36, I found that self-compiling any 1.14 source using OpenSSL 3(.0.5) will cause a regression in wallet crypto unit tests, caused by the code that compares our decryption with OpenSSL decryption. Our implementation is providing correct results, OpenSSL 3 is not.
Every decryption test fails with a line like:
The errors do not occur when explicitly selecting openssl 1.1 system libraries, e.g.
openssl1.1-devel.x86_64
on Fedora 36. Or the default OpenSSL on i.e. Fedora 35 (as that is also 1.1)Note: this does not affect production code, only the unit test.
Expected behavior:
Unit tests do not fail based on installed system software, if this software is not used inside the unit.
Steps to reproduce:
Dockerfile:
Dogecoin Core version
Any 1.14.x source
Machine specs
Extra information
gist:fedora36.log
gist:fedora35.log
The text was updated successfully, but these errors were encountered: