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

Make use of Data-Independent Timing (DIT) on Arm #139

Open
tgross35 opened this issue Aug 23, 2024 · 3 comments
Open

Make use of Data-Independent Timing (DIT) on Arm #139

tgross35 opened this issue Aug 23, 2024 · 3 comments

Comments

@tgross35
Copy link

aarch64 supports data-independent timing https://developer.arm.com/documentation/ddi0595/2020-12/AArch64-Registers/DIT--Data-Independent-Timing, which is also available on Apple silicon https://developer.apple.com/documentation/xcode/writing-arm64-code-for-apple-platforms#Enable-DIT-for-constant-time-cryptographic-operations. Would it be advantageous to make use of the feature in this crate?

@tarcieri
Copy link
Contributor

FWIW I wrote a very barebones wrapper for it here: RustCrypto/utils#1102

@tgross35
Copy link
Author

@tarcieri
Copy link
Contributor

The aarch64-dit crate is now available: https://docs.rs/aarch64-dit

Though subtle could make use of it (and it supports nested usages) the real benefit would probably be the outer code which leverages subtle using it.

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

No branches or pull requests

2 participants