diff --git a/cpufeatures/src/aarch64.rs b/cpufeatures/src/aarch64.rs index 4248a754..58695532 100644 --- a/cpufeatures/src/aarch64.rs +++ b/cpufeatures/src/aarch64.rs @@ -107,6 +107,12 @@ macro_rules! check { ("aes") => { true }; + ("dit") => { + // https://developer.apple.com/documentation/xcode/writing-arm64-code-for-apple-platforms#Enable-DIT-for-constant-time-cryptographic-operations + unsafe { + $crate::aarch64::sysctlbyname(b"hw.optional.arm.FEAT_DIT\0") + } + }; ("sha2") => { true };