KEYGEN: be more verbose on error

This commit is contained in:
hasufell 2014-06-05 19:13:00 +02:00
parent edf7aaf229
commit cffc6545ae
No known key found for this signature in database
GPG Key ID: 220CD1C5BDEED020

View File

@ -142,7 +142,7 @@ import_public_key(char const * const filename,
/* if the array exceeds one element, then something /* if the array exceeds one element, then something
* went horribly wrong */ * went horribly wrong */
if (*imported[1]) if (*imported[1])
NTRU_ABORT("Failed importing public key!\n"); NTRU_ABORT_DEBUG("Failed importing public key!");
fmpz_poly_set(pub, **imported); fmpz_poly_set(pub, **imported);
@ -173,7 +173,7 @@ import_priv_key(char const * const filename,
/* if the array exceeds one element, then something /* if the array exceeds one element, then something
* went horribly wrong */ * went horribly wrong */
if (*imported[1]) if (*imported[1])
NTRU_ABORT("Failed importing private key!\n"); NTRU_ABORT_DEBUG("Failed importing private key!");
fmpz_poly_set(priv, **imported); fmpz_poly_set(priv, **imported);