Skip to content

Commit

Permalink
[circuits]: fixed bug in getting galois elements from linear transfor…
Browse files Browse the repository at this point in the history
…mation
  • Loading branch information
Pro7ech committed Sep 20, 2023
1 parent ccabd7e commit 1be3963
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion circuits/linear_transformation.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ type LinearTransformation struct {

// GaloisElements returns the list of Galois elements needed for the evaluation of the linear transformation.
func (lt LinearTransformation) GaloisElements(params rlwe.ParameterProvider) (galEls []uint64) {
return GaloisElementsForLinearTransformation(params, utils.GetKeys(lt.Vec), lt.LogDimensions.Cols, lt.LogBabyStepGianStepRatio)
return GaloisElementsForLinearTransformation(params, utils.GetKeys(lt.Vec), 1<<lt.LogDimensions.Cols, lt.LogBabyStepGianStepRatio)
}

// NewLinearTransformation allocates a new LinearTransformation with zero values according to the parameters specified by the LinearTranfromationParameters.
Expand Down

0 comments on commit 1be3963

Please sign in to comment.