-
Notifications
You must be signed in to change notification settings - Fork 172
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
[drlwe]: CKS/PCKS does not properly resizes the level of the output ciphertext to the one of the input ciphertext #279
Comments
@macknight Can you produce a small and self-contained Regardless, we plan to discontinue the
|
@Pro7ech And I've updated my post with the zip file including the main.go (I put the file here: example/dckks/psi/main.go for run), would you try that for testing? you could toggle in evalPhase function with one of the two options. BR |
@macknight I've found the issue, it doesn't come from the evaluation phase, it comes from the level of the ciphertext that you allocate during the pcks phase. You should allocate a ciphertext of the level of the input ciphertext. However, this mistake should have been caught by the protocol. I'll add checks to ensure that you'd get an appropriate error if the levels do not match. To fix your code change it to
|
@Pro7ech |
Hi,
Would you please have a look at below code, it's almost using example/dbfv/psi/main.go, I only changed a little in evalPhase function and add some print code in main. Youc could see evalPhase function.
When I use power function to calculate x -> x^2, the result is wrong.
But when I use mul&relinearize to calculate x -> x^2, the result is correct.
I don't understand why it's wrong when using power function.
BR
The text was updated successfully, but these errors were encountered: