POLY: fix error messages
This commit is contained in:
parent
df1df23e09
commit
cb4d274c58
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user