Bug [utils]: some rlwe
and mhe
tests always pass due to a bug in utils.MaxSlice
and utils.MinSlice
#457
Labels
bug
Something isn't working
utils.MaxSlice
always return 0 if all values are negativeutils.MinSlice
always return 0 if all values are positiveThis bug also cascades to another bug: the function
rlwe.NoiseGadgetCiphertext
will always return a zero noise becauseBaseTwoDecompositionVectorSize
is zero and thus the last loop is never iterated.rlwe.NoiseGadgetCiphertext
is used to check the correctness of the different evaluation keys in the packagerlwe
andmhe
.A user using this function, and its associated functions (e.g.
rlwe.NoiseRelinearizationKey
) will not be able to detect errors in its implementation, misleading him on the root of the issue.The text was updated successfully, but these errors were encountered: