POLY: fix error messages

This commit is contained in:
hasufell 2014-04-15 22:54:11 +02:00
parent df1df23e09
commit cb4d274c58
No known key found for this signature in database
GPG Key ID: 220CD1C5BDEED020

View File

@ -185,11 +185,11 @@ void pb_starmultiply(pb_poly *a,
mp_error_to_string(result)); mp_error_to_string(result));
if ((result = mp_add(&(c->terms[k]), if ((result = mp_add(&(c->terms[k]),
&mp_tmp, &(c->terms[k]))) != MP_OKAY) &mp_tmp, &(c->terms[k]))) != MP_OKAY)
NTRU_ABORT("Error multiplying terms. %s", NTRU_ABORT("Error adding terms. %s",
mp_error_to_string(result)); mp_error_to_string(result));
if ((result = mp_mod(&(c->terms[k]), if ((result = mp_mod(&(c->terms[k]),
&mp_modulus, &(c->terms[k]))) != MP_OKAY) &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_error_to_string(result));
mp_clear(&mp_modulus); mp_clear(&mp_modulus);