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

ocb3: use dbl crate #606

Merged
merged 1 commit into from
May 31, 2024
Merged

ocb3: use dbl crate #606

merged 1 commit into from
May 31, 2024

Conversation

tarcieri
Copy link
Member

Replaces the vendored implementation of GF(2^128) doubling (i.e. multiply-by-x) with the dbl crate.

Also moves the remaining functions in the util module into lib.rs.

Replaces the vendored implementation of GF(2^128) doubling (i.e.
multiply-by-x) with the `dbl` crate.

Also moves the remaining functions in the `util` module into lib.rs.
@newpavlov
Copy link
Member

IIRC you argued that we should deprecate the dbl crate and instead prefer the (relatively simple) vendored implementations. Have you changed your mind about this?

@tarcieri
Copy link
Member Author

Hmm, tough call. On the one hand it is a pattern that appears in a lot of places, although right now the polynomial is hardcoded. On the other we don't provide optimized implementations so the implementation is trivial.

@tarcieri
Copy link
Member Author

I think we should go ahead and merge this, and if we decide to retire dbl, vendor the exact implementation in there into the respective crates. Perhaps that needs a tracking issue?

@tarcieri
Copy link
Member Author

I made a tracking issue about potentially retiring dbl: RustCrypto/utils#1077

In the meantime I think we should move forward with this, and rip it out if we decide to rip it out everywhere.

@tarcieri tarcieri merged commit 2e249f8 into master May 31, 2024
91 checks passed
@tarcieri tarcieri deleted the ocb3/use-dbl-crate branch May 31, 2024 16:52
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