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

Concat/split and multiply mixed size Uints #253

Merged
merged 5 commits into from
Jun 25, 2023

Conversation

andrewwhitehead
Copy link
Contributor

As a potential replacement for #230

Adds ConcatMixed and SplitMixed traits, and allows any Uint up to U1024 to be arbitrarily decomposed (down to U64). With better support for generic trait properties and methods these traits might be removed later.

Also adds cross-size multiplication, returning a combined-width result.

This does not affect the build time much (about 0.1-0.2s increase for a clean build on my machine).

Signed-off-by: Andrew Whitehead <cywolf@gmail.com>
Signed-off-by: Andrew Whitehead <cywolf@gmail.com>
Signed-off-by: Andrew Whitehead <cywolf@gmail.com>
src/traits.rs Outdated Show resolved Hide resolved
Signed-off-by: Andrew Whitehead <cywolf@gmail.com>
Signed-off-by: Andrew Whitehead <cywolf@gmail.com>
@tarcieri tarcieri merged commit 3c89a6e into RustCrypto:master Jun 25, 2023
@tarcieri tarcieri mentioned this pull request Sep 4, 2023
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