KEYGEN: fix priv_inv key

This commit is contained in:
2014-05-25 01:04:09 +02:00
parent 8fd5a6c829
commit 23d95ae992

View File

@@ -50,7 +50,7 @@ bool ntru_create_keypair(
goto cleanup; goto cleanup;
} }
if (!poly_inverse_poly_q(f, Fp, ctx)) { if (!poly_inverse_poly_p(f, Fp, ctx)) {
retval = false; retval = false;
goto cleanup; goto cleanup;
} }