mirror of
https://github.com/tuneinsight/lattigo.git
synced 2025-09-13 03:27:14 +00:00
[ckks] fixed Trace
This commit is contained in:
@@ -52,6 +52,7 @@ func (eval *evaluator) Trace(ctIn *Ciphertext, logSlotsStart, logSlotsEnd int, c
|
||||
}
|
||||
|
||||
for i := logSlotsStart; i < logSlotsEnd; i++ {
|
||||
<<<<<<< dev_bfv_poly
|
||||
<<<<<<< dev_bfv_poly
|
||||
eval.permuteNTT(ctOut, eval.params.GaloisElementForColumnRotationBy(1<<i), eval.buffCt)
|
||||
ctBuff := &Ciphertext{Ciphertext: eval.buffCt.Ciphertext, Scale: ctOut.Scale}
|
||||
@@ -59,8 +60,11 @@ func (eval *evaluator) Trace(ctIn *Ciphertext, logSlotsStart, logSlotsEnd int, c
|
||||
eval.Add(ctOut, ctBuff, ctOut)
|
||||
=======
|
||||
eval.Automorphism(ctOut.Ciphertext, eval.params.GaloisElementForColumnRotationBy(1<<i), eval.ctxpool.Ciphertext)
|
||||
=======
|
||||
>>>>>>> [ckks] fixed Trace
|
||||
ctPool := &Ciphertext{Ciphertext: eval.ctxpool.Ciphertext, Scale: ctOut.Scale}
|
||||
ctPool.Value = ctPool.Value[:2]
|
||||
eval.Automorphism(ctOut.Ciphertext, eval.params.GaloisElementForColumnRotationBy(1<<i), ctPool.Ciphertext)
|
||||
eval.Add(ctOut, ctPool, ctOut)
|
||||
>>>>>>> [rlwe]: complete refactoring
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user