-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Bignum: Implement fixed width modular negation #6021
Comments
Rather than 2 x sub + 1 x add-if, could we do something like this?
|
@tom-cosgrove-arm I think that's correct, and maybe marginally more efficient (because there's no carry to propagate, so the per-limb calculations can be pipelined more), but I don't think that's worth the extra complexity. |
@tom-cosgrove-arm I was wondering if there is a need for a constantime zero check method reglardless of the specific applicaton. It could be usefull if many inputs for |
This is going to be needed for |
Prerequisites: #6017
Implement and test
mbedtls_mpi_mod_raw_neg()
. The implementation should follow the prototype:https://github.com/hanno-arm/mbedtls/blob/ecp_prototype/library/bignum_core.c#L436-L447
This function should take the modulus as a modulus struct instead of a raw pointer.
The text was updated successfully, but these errors were encountered: