KEYGEN: be more verbose on error
This commit is contained in:
parent
edf7aaf229
commit
cffc6545ae
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user