Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
GunniBusch committed Nov 7, 2022
1 parent d4cf5f4 commit a83b3fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions BFV/ct.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ def __add__(self, other):

ct1, ct2 = self.ct

size = len(self.bfv.poly_modulo) - 1
size = self.bfv.n - 1

m = np.array([other] + [0] * (size - 1), dtype=np.int64) % self.bfv.t
m = np.array([other] + [0] * (size), dtype=np.int64) % self.bfv.t

d = self.bfv.q // self.bfv.t

Expand Down

0 comments on commit a83b3fc

Please sign in to comment.