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 for DIT detection on Apple silicon #1100

Merged
merged 1 commit into from
Aug 24, 2024

Conversation

tarcieri
Copy link
Member

Adds support for detecting Data Independent Timing (DIT) support which is available on Apple silicon (e.g. M1/M2/M3).

This uses the hw.optional.arm.FEAT_DIT sysctl for detection.

For more information, see:

https://developer.apple.com/documentation/xcode/writing-arm64-code-for-apple-platforms#Enable-DIT-for-constant-time-cryptographic-operations

Adds support for detecting Data Independent Timing (DIT) support which
is available on Apple silicon (e.g. M1/M2/M3).

This uses the `hw.optional.arm.FEAT_DIT` sysctl for detection.

For more information, see:

https://developer.apple.com/documentation/xcode/writing-arm64-code-for-apple-platforms#Enable-DIT-for-constant-time-cryptographic-operations
@tarcieri tarcieri requested a review from newpavlov August 24, 2024 17:24
@tarcieri
Copy link
Member Author

Note: I locally verified this was able to detect DIT on an M1

@tarcieri tarcieri merged commit 1ad4078 into master Aug 24, 2024
11 checks passed
@tarcieri tarcieri deleted the cpufeatures/apple-dit-support branch August 24, 2024 17:28
@tarcieri tarcieri mentioned this pull request Sep 6, 2024
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.

1 participant