From 1412ba0d1adcc9fedbc5be3a6ee6e5b213e90fc7 Mon Sep 17 00:00:00 2001 From: Alexander Rolfes Date: Mon, 5 May 2014 21:56:44 +0200 Subject: [PATCH] CODE: Fixed missing bracket --- src/ntru_decrypt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ntru_decrypt.c b/src/ntru_decrypt.c index bccb4b4..3d3d128 100644 --- a/src/ntru_decrypt.c +++ b/src/ntru_decrypt.c @@ -64,7 +64,7 @@ pb_poly* ntru_decrypt(pb_poly *encr_msg, pb_poly *priv_key, if(mp_cmp(&(a->terms[i]),&zero) == MP_LT) { mp_add((&a->terms[i]),&mp_q,(&a->terms[i])); } - if(mp_cmp(&(a->terms[i]), &mp_qdiv2) == MP_GT) + if(mp_cmp(&(a->terms[i]), &mp_qdiv2) == MP_GT) { mp_sub((&a->terms[i]),&mp_q,(&a->terms[i])); } }