Skip to content

Concat/split and multiply mixed size Uints#253

Merged
tarcieri merged 5 commits intoRustCrypto:masterfrom
andrewwhitehead:concat-mixed
Jun 25, 2023
Merged

Concat/split and multiply mixed size Uints#253
tarcieri merged 5 commits intoRustCrypto:masterfrom
andrewwhitehead:concat-mixed

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>
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