From 52c1abe8eea0d9522a3fe05d3f2722138ae9754a Mon Sep 17 00:00:00 2001 From: hasufell Date: Wed, 28 May 2014 20:56:57 +0200 Subject: [PATCH] DEC: style fix --- src/decrypt.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/decrypt.c b/src/decrypt.c index 3b67ba1..39814c8 100644 --- a/src/decrypt.c +++ b/src/decrypt.c @@ -84,8 +84,12 @@ ntru_decrypt_string( poly_array = base64_to_poly_arr(encr_msg, ctx); while (*poly_array[i]) { - ntru_decrypt_poly(*poly_array[i], priv_key, priv_key_inv, - *poly_array[i], ctx); + if (!ntru_decrypt_poly(*poly_array[i], + priv_key, + priv_key_inv, + *poly_array[i], + ctx)) + NTRU_ABORT("failed encrypting string!\n"); i++; }