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

cpufeatures: add support of armv8.2-a sm3, sm4 (#970) #972

Merged
merged 3 commits into from
Oct 26, 2023

Conversation

zonyitoo
Copy link
Contributor

Only supported on Linux platform with HWCAP_SM3 | HWCAP_SM4.

fix #970 .

Only supported on Linux platform with HWCAP_SM3 | HWCAP_SM4.
@zonyitoo
Copy link
Contributor Author

NOTE: sm4 implies support of SM3 and SM4 according to the discussion in #395 .

$ rustc --target=aarch64-unknown-linux-gnu --print target-features
...
sm4                                - Enable SM3 and SM4 support (FEAT_SM4, FEAT_SM3).
...

@zonyitoo zonyitoo changed the title cpufeatures: add support of armv8.4-a sm3, sm4 (#970) cpufeatures: add support of armv8.2-a sm3, sm4 (#970) Oct 26, 2023
@newpavlov
Copy link
Member

Please also update the AArch64 list in the lib.rs docs.

@newpavlov
Copy link
Member

Thank you!

@newpavlov newpavlov merged commit a0874f5 into RustCrypto:master Oct 26, 2023
11 checks passed
@zonyitoo zonyitoo deleted the feat-cpufeatures-sm4 branch October 26, 2023 17:16
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.

cpufeatures: requesting support for aarch64 target feature sm3, sm4
2 participants