hasufell
f0eefe7885
In some very rare cases such as the polynom 1, -1, -1, 1, 1, -1, -1, 1, -1, -1, 1 the encryption->decryption cycle caused an incorrect result. This wasn't reproducible for all polynomials, just for some. Implementing the algorithm manually instead of using the shortcut through fmpz_poly_add(out, out, tmp_poly_msg); fmpz_poly_mod_unsigned(out, ctx->q); seems to have solved the issue. Still unknown what happened there. |
||
---|---|---|
external/flint-2.4.3 | ||
src | ||
.gitignore | ||
common.mk | ||
COPYING | ||
Doxyfile | ||
Makefile |