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

Broken alg with build static libcrypto #310

Open
DrEvil35 opened this issue Jan 24, 2021 · 1 comment
Open

Broken alg with build static libcrypto #310

DrEvil35 opened this issue Jan 24, 2021 · 1 comment

Comments

@DrEvil35
Copy link

Hello! For my needs, I wrote a small Make that builds libgost from a static libcrypt.a. When using the resulting library, I get an incorrect GOST2012-256 hash.

Source - 012345678901234567890123456789012345678901234567890123456789012
Correct - 9d151eefd8590b89daa6ba6cb74af9275dd051026bb149a452fd84e5e57b5500
Result - 99db9147548b48bdab620b0754d2470325344a0df8f504b63fc980bf6240d786

No problems with linking individual so libs.
gost.tar.gz

@beldmit
Copy link
Contributor

beldmit commented Jan 25, 2021

Binary files gostsum and gost12sum work successfully. I strongly suppose that there is something wrong with endianess in your case

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

No branches or pull requests

2 participants