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

ConstChoice improvements #440

Merged
merged 5 commits into from
Dec 17, 2023
Merged

ConstChoice improvements #440

merged 5 commits into from
Dec 17, 2023

Conversation

fjarri
Copy link
Contributor

@fjarri fjarri commented Dec 16, 2023

I thought about adding NonZero::const_new_unchecked() and ConstOption::unwrap_unchecked() for use in tight loops, but using expect doesn't seem to decrease performance.

@fjarri fjarri marked this pull request as ready for review December 16, 2023 05:41
src/const_choice.rs Outdated Show resolved Hide resolved
@tarcieri tarcieri merged commit ad1b29d into RustCrypto:master Dec 17, 2023
16 checks passed
@fjarri fjarri deleted the const-choice branch December 17, 2023 23:25
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.

Make a const equivalent of subtle::CtOption Use wide arithmetic in CtChoice
3 participants