-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Negate operation of FV scheme #3759
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3759 +/- ##
==========================================
- Coverage 94.81% 94.76% -0.06%
==========================================
Files 185 186 +1
Lines 18337 18476 +139
==========================================
+ Hits 17387 17508 +121
- Misses 950 968 +18
|
for i in range(len(result)): | ||
for j in range(len(result[i])): | ||
for k in range(len(result[i][j])): | ||
result[i][j][k] = negate_mod(ct.data[i][j][k], self.coeff_modulus[j]) |
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.
Can coeff_modulus[j] get out of bounds?
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
is iterating on encrypted_size of ciphertext and j
is iterating on coeff_modulus used in ciphertext, So till the ciphertext is from same encryption environment (I mean same parameters used) then it should not get out of bound.
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.
LGTM!
Description
closes #3701
Implemented negation operation of the FV scheme.
Accepts Ciphertext and returns negated value Ciphertext.
Affected Dependencies
None
How has this been tested?
Checklist