From dda90cabcf11f3dccf9660e2c93e5c168f51c5ca Mon Sep 17 00:00:00 2001 From: hasufell Date: Sun, 25 May 2014 01:04:30 +0200 Subject: [PATCH] DEC: use a central lift after we are done --- src/decrypt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/decrypt.c b/src/decrypt.c index 13845d1..60f6700 100644 --- a/src/decrypt.c +++ b/src/decrypt.c @@ -53,4 +53,5 @@ void ntru_decrypt_poly( poly_starmultiply(priv_key, encr_msg, a, ctx, ctx->q); fmpz_poly_mod(a, ctx->q); poly_starmultiply(a, priv_key_inv, out, ctx, ctx->p); + fmpz_poly_mod(out, ctx->p); }