-
Notifications
You must be signed in to change notification settings - Fork 50
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
fix android build of pqcrypto-internals #74
Conversation
Could you maybe point me to the error text that Clang gives for |
Here's an excerpt:
|
Ah I see now, building without SHA3 support should lead to a broken binary due to https://github.com/rustpq/pqcrypto/blob/main/pqcrypto-internals/cfiles/keccak2x/feat.S being functionally empty. This is not what we want. But it appears that the assembler syntax is somehow incompatible with the Android toolchain, so we need to fix that somehow. |
Thanks for fixing the underlying problem and releasing it! |
The problem should have been that if the runtime detection finds SHA3 hardware support, it switches over to the assembly implementation instead of the portable C implementation. That code was commented out (though I'm not sure why it was linking in the first place). |
Fix the android build. Clang does not like the sha3 feature to be present in the arch flag when compiling for android.
The android build broke with e3b6f66
See this error.
Here's a quick fix, that does the job for us: See: tutao/tutanota#8424
However, I am not sure which other targets require a similar fix.
What do you think @thomwiggers @charlag ?