hasufell f0eefe7885 ENC: fix encryption
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.
2014-05-28 19:44:40 +02:00
2014-05-28 19:44:40 +02:00
2014-05-28 01:12:01 +02:00
2014-05-28 01:38:55 +02:00
2014-04-14 23:58:19 +02:00
2014-05-25 02:15:40 +02:00
2014-05-28 01:38:55 +02:00
Description
No description provided
4.9 MiB
Languages
C 94.3%
Makefile 3.8%
Objective-C 1.4%
Shell 0.5%