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

Fix using sha2_asm on aarch64. #207

Merged
merged 1 commit into from
Nov 23, 2020
Merged

Conversation

lxiange
Copy link
Contributor

@lxiange lxiange commented Nov 23, 2020

The code doesn't compile before.
Can use cargo test --features asm to verify (on an aarch64 machine).
Tested on AWS Graviton2 server.

Btw, the current GitHub Action testing scripts failed to cover this case. Because GitHub Actions are hosted on x86 machines.
If want to test on different architectures, maybe we need to setup QEMU to emulate.

The code doesn't compile before.
Can use `cargo test --features asm` to verify.
Tested on AWS Graviton2 server.
@tarcieri
Copy link
Member

Note: we have pretty extensive cross-based testing on the asm-hashes repo, including aarch64:

https://github.com/RustCrypto/asm-hashes/blob/master/.github/workflows/sha2.yml

@lxiange
Copy link
Contributor Author

lxiange commented Nov 23, 2020

Note: we have pretty extensive cross-based testing on the asm-hashes repo, including aarch64:

https://github.com/RustCrypto/asm-hashes/blob/master/.github/workflows/sha2.yml

Got it, that's cool!

@tarcieri tarcieri merged commit 78f00c5 into RustCrypto:master Nov 23, 2020
@tarcieri
Copy link
Member

Thanks! We should definitely add cross-based testing to anything that uses asm-hashes

tarcieri added a commit that referenced this pull request Nov 25, 2020
Per #207 it seems we aren't doing enough testing, particularly for the
`asm` feature on various platforms.

This commit adds much more extensive testing for the `sha2` crate in
particular, since it's one of the most important.
tarcieri added a commit that referenced this pull request Nov 25, 2020
Per #207 it seems we aren't doing enough testing, particularly for the
`asm` feature on various platforms.

This commit adds much more extensive testing for the `sha2` crate in
particular, since it's one of the most important.
tarcieri added a commit that referenced this pull request Nov 25, 2020
Per #207 it seems we aren't doing enough testing, particularly for the
`asm` feature on various platforms.

This commit adds much more extensive testing for the `sha2` crate in
particular, since it's one of the most important.
tarcieri added a commit that referenced this pull request Nov 25, 2020
Per #207 it seems we aren't doing enough testing, particularly for the
`asm` feature on various platforms.

This commit adds much more extensive testing for the `sha2` crate in
particular, since it's one of the most important.
tarcieri added a commit that referenced this pull request Nov 25, 2020
Per #207 it seems we aren't doing enough testing, particularly for the
`asm` feature on various platforms.

This commit adds much more extensive testing for the `sha2` crate in
particular, since it's one of the most important.
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.

2 participants