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

SHA512_rng() asserts GMP_NUMB_BITS==64 #13

Open
tromer opened this issue Oct 3, 2015 · 0 comments
Open

SHA512_rng() asserts GMP_NUMB_BITS==64 #13

tromer opened this issue Oct 3, 2015 · 0 comments
Assignees

Comments

@tromer
Copy link
Member

tromer commented Oct 3, 2015

SHA512_rng() in rng.tcc contains this assert:

assert(GMP_NUMB_BITS == 64); // current Python code cannot handle larger values, so testing here for some assumptions.

This breaks some of the executables on 32-bit platforms (e.g., the src/zk_proof_systems/pcd/r1cs_pcd/r1cs_mp_ppzkpcd/tests/test_r1cs_mp_ppzkpcd test).

Can the assert be relaxed to <= 64?

Also, let's clarify the comment -- which Python code is it talking about, when we're deep in C++ land?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants