POLY: fix error messages

This commit is contained in:
hasufell 2014-04-15 22:54:11 +02:00 committed by malte
parent 2d2ccfbf3f
commit c4f6ad4504

View File

@ -185,11 +185,11 @@ void pb_starmultiply(pb_poly *a,
mp_error_to_string(result));
if ((result = mp_add(&(c->terms[k]),
&mp_tmp, &(c->terms[k]))) != MP_OKAY)
NTRU_ABORT("Error multiplying terms. %s",
NTRU_ABORT("Error adding terms. %s",
mp_error_to_string(result));
if ((result = mp_mod(&(c->terms[k]),
&mp_modulus, &(c->terms[k]))) != MP_OKAY)
NTRU_ABORT("Error multiplying terms. %s",
NTRU_ABORT("Error redrucing term by modulo. %s",
mp_error_to_string(result));
mp_clear(&mp_modulus);