-
Notifications
You must be signed in to change notification settings - Fork 134
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
crypto-bigint: add modulo operations to UInt
#561
Conversation
bc9c95a
to
77a60c5
Compare
6774279
to
1256d09
Compare
1256d09
to
63e6751
Compare
Added some trait wrappers in 2b37f48. A couple notes:
Ideally we can eventually replace that with |
Implements - `add_mod` - `sub_mod` - `neg_mod` for `UInt<1..=4>` manually
Switches to a fully generic implementation, splits out tests macros, and fixes builds on 32-bit targets.
Currently failing
2b37f48
to
54a3c47
Compare
@dignifiedquire I tried to write a proptest for https://github.com/RustCrypto/utils/pull/561/checks?check_run_id=3196567313 However the code looks correct to me, so I'm not sure if there's something wrong with the test itself or the code. |
Not working
bcbba92
to
f6f545f
Compare
UInt
Continuing on @dignifiedquire's work from #510, this PR attempts to simplify the implementation.
Aspirationally, the goal is to add equivalence tests with a known-good implementation.Proptests againstnum-bigint
added.