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

impl ConditionallyNegatable for BoxedUint #795

Merged
merged 3 commits into from
Mar 18, 2025

Conversation

dvdplm
Copy link
Contributor

@dvdplm dvdplm commented Mar 14, 2025

Add an equivalent to subtle's ConditionallyNegate trait without the Copy requirement.

@tarcieri
Copy link
Member

I'm not seeing a Copy bound on subtle::ConditionallyNegatable?

https://docs.rs/subtle/latest/subtle/trait.ConditionallyNegatable.html

@dvdplm
Copy link
Contributor Author

dvdplm commented Mar 15, 2025 via email

@tarcieri
Copy link
Member

@dvdplm that's to leverage the blanket impl though. You should still be able to impl ConditionallyNegatable directly without issue

@dvdplm dvdplm changed the title Add a ConstatTimeNegatable trait Add a ConstantTimeNegatable trait Mar 18, 2025
@dvdplm dvdplm changed the title Add a ConstantTimeNegatable trait impl ConditionallyNegatable for BoxedUint Mar 18, 2025
@dvdplm
Copy link
Contributor Author

dvdplm commented Mar 18, 2025

Ah, I see what you mean now! Better now?

@@ -926,7 +926,7 @@ pub trait Monty:
/// Allows one to perform inplace multiplication without allocations
/// (important for the `BoxedUint` case).
///
/// NOTE: You will be operating with Montgomery represntations directly,
/// NOTE: You will be operating with Montgomery representations directly,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bleh, we should set up typos-action

@tarcieri tarcieri changed the title impl ConditionallyNegatable for BoxedUint impl ConditionallyNegatable for BoxedUint Mar 18, 2025
@tarcieri tarcieri merged commit 21ebb49 into RustCrypto:master Mar 18, 2025
18 checks passed
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