Skip to content

cpufeatures: add support for DIT detection on Apple silicon#1100

Merged
tarcieri merged 1 commit intomasterfrom
cpufeatures/apple-dit-support
Aug 24, 2024
Merged

cpufeatures: add support for DIT detection on Apple silicon#1100
tarcieri merged 1 commit intomasterfrom
cpufeatures/apple-dit-support

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
@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