-
Notifications
You must be signed in to change notification settings - Fork 12
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
Test FacProof with bad Paillier keys #160
base: master
Are you sure you want to change the base?
Conversation
|
||
// `C^phi mod N^2` may be 0 if `C == N`, which is very unlikely for large `N`. | ||
// Note that `C^phi mod N^2 / N < N`, so we can unwrap when converting to `Uint` | ||
// Note that `C^phi mod N^2 / N < N`, so we can unwrap when converting to `Uint` <–– (DP) This assumes that `gcd(C, N) = 1`, but why is this guaranteed? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure what you mean here, if y = x mod N^2
then y < N^2
, which means y / N < N
. How does GCD factor in?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I honestly no longer remember why I wrote that. Pff. :/
I think the reason the test passes is that the proof conditions are violated. You're sampling a small It is not trivial to make the proof fail while keeping the (the references here are to the '21 version of the paper) |
Maybe all we need to do here is adding a check that I struggle to come up with an attack scenario where the a wrong-size |
No description provided.