We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, I've noticed that constructing secret negative integers does not work as expected when the bit length is below 32. Here is an example:
void fun(){ Integer y = Integer(32, -1, ALICE); cout << y.reveal<int>() << endl; // prints -1 Integer x = Integer(16, -1, ALICE); cout << x.reveal<int>() << endl; // prints 65535 } int main(int argc, char** argv) { int port, party; parse_party_and_port(argv, &party, &port); NetIO * io = new NetIO(party==ALICE ? nullptr : "127.0.0.1", port); setup_semi_honest(io, party); fun(); delete io; }
With 16 bits, the result is (2^16) - 1. Are bit lengths below 32 not supported?
(2^16) - 1
Thank you for looking into this!
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi, I've noticed that constructing secret negative integers does not work as expected when the bit length is below 32.
Here is an example:
With 16 bits, the result is
(2^16) - 1
.Are bit lengths below 32 not supported?
Thank you for looking into this!
The text was updated successfully, but these errors were encountered: