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

Avoid cache-timing side-channels #7

Merged
merged 1 commit into from
Sep 8, 2024

Conversation

paragonie-security
Copy link
Contributor

@paragonie-security paragonie-security commented Sep 7, 2024

chr() and ord() are not designed to be constant-time.

Integer multiplication is sometimes variable-time.

Avoiding integer division (and modulo operators) also ensures the runtime is independent of the contents of the inputs.

@danielburger1337 danielburger1337 merged commit 06a4403 into danielburger1337:main Sep 8, 2024
5 of 6 checks passed
@paragonie-security paragonie-security deleted the timing-leaks branch September 8, 2024 17:48
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.

2 participants