-
Notifications
You must be signed in to change notification settings - Fork 26
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
sha1: Apple M1 build failures #28
Comments
I wonder if we could cross-compile to |
I'm currently trying to install Any update on this or any way I could help make progress? |
@lonnylot for now the |
Note that overall I think the best way forward here on the M1 is to use stdarch to leverage the ARMv8 Cryptography Extensions, although unfortunately due to a recent regression the necessary intrinsics are no longer exposed |
The related issue is now this one and a PR is in the making to clean it up. I am hoping that this will provide the required intrinsics to eventually get fast SHA1 on M1's. |
FWIW, here is the assembly generated by a Rust wrapper for the ARMv8 Cryptography Extensions: https://godbolt.org/z/P8oje3EfK See also my comment here: |
I opened a tracking issue for |
Given that the intrinsic solution is still a little out there, could we add a second aarch64 implementation for M1 here? |
Yeah, that's why I provided the assembly output above, unless someone knows of something better for this purpose. |
As discovered on #27, the
aarch64
assembly for thesha1
and(edit: SHA-256 support added in #35) crates does not compile on macOS/M1:sha2
The text was updated successfully, but these errors were encountered: