Add BigInteger support for EC arithmetic - #14
Merged
Conversation
Restructure all EC arithmetic functions to work with both int and BigInteger moduli. This enables compilation for 256-bit primes. Key changes: - to_montgomery/to_standard: accept Python int p_int directly - inpl_rsub: accept Python int p_int, extract concrete modulus from aux_data - kaliski_mod_inv: p is static Python int, _mk_bi only for QuantumModulus - q_ec_add_inpl: extract concrete modulus via _p_int for classical ops - Add _p_int() and _bi() helpers for BigInteger/int interop - Add BigInteger test cases (k=1,2,3) using boolean_simulation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add BigInteger support for the elliptic-curve arithmetic integration.
Included in this PR
Notes
This PR is opened from the current committed branch state only.
Local uncommitted work was intentionally left out.