Skip to content

Commit

Permalink
Security bug in homomorphic encryption parameter generation.
Browse files Browse the repository at this point in the history
  • Loading branch information
mkskeller committed Apr 22, 2022
1 parent 49ff3f8 commit a858e5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FHE/NoiseBounds.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ void SemiHomomorphicNoiseBounds::produce_epsilon_constants()
{
tp *= t;
double lgtp = log(tp) / log(2.0);
if (C[i] < 0 && lgtp < FHE_epsilon)
if (C[i] < 0 && lgtp < -FHE_epsilon)
{
C[i] = pow(x, i);
}
Expand Down

0 comments on commit a858e5b

Please sign in to comment.