DEC: style fix

This commit is contained in:
hasufell 2014-05-28 20:56:57 +02:00
parent c48dad818e
commit 52c1abe8ee
No known key found for this signature in database
GPG Key ID: 220CD1C5BDEED020

View File

@ -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++;
}