Skip to content

Commit

Permalink
prevent ciphertext override in bootstrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
qantik committed Jun 12, 2024
1 parent 9010ab2 commit 7e7719c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion he/hefloat/bootstrapping/bootstrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ var _ he.Bootstrapper[rlwe.Ciphertext] = (*Evaluator)(nil)

// Bootstrap bootstraps a single ciphertext and returns the bootstrapped ciphertext.
func (eval Evaluator) Bootstrap(ct *rlwe.Ciphertext) (*rlwe.Ciphertext, error) {
cts := []rlwe.Ciphertext{*ct}
cts := []rlwe.Ciphertext{*ct.CopyNew()}
cts, err := eval.BootstrapMany(cts)
if err != nil {
return nil, err
Expand Down

0 comments on commit 7e7719c

Please sign in to comment.