From f8f7634c840f73b25c6ef816751f18e836bf132a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoph=20Pr=C3=BC=C3=9Fner?= Date: Mon, 12 May 2014 13:49:00 +0200 Subject: [PATCH] DEC ntru_decrypt now uses pb_normalize --- src/ntru_decrypt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ntru_decrypt.c b/src/ntru_decrypt.c index 3d3d128..5eba7a9 100644 --- a/src/ntru_decrypt.c +++ b/src/ntru_decrypt.c @@ -73,5 +73,7 @@ pb_poly* ntru_decrypt(pb_poly *encr_msg, pb_poly *priv_key, pb_starmultiply(a, priv_key_inv, d, context, p); + pb_normalize(d,-1,1,context); + return d; }