From 23d95ae992c908d4aa212211d2e799de126dadac Mon Sep 17 00:00:00 2001 From: hasufell Date: Sun, 25 May 2014 01:04:09 +0200 Subject: [PATCH] KEYGEN: fix priv_inv key --- src/keypair.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/keypair.c b/src/keypair.c index 7c2c25b..5b72911 100644 --- a/src/keypair.c +++ b/src/keypair.c @@ -50,7 +50,7 @@ bool ntru_create_keypair( goto cleanup; } - if (!poly_inverse_poly_q(f, Fp, ctx)) { + if (!poly_inverse_poly_p(f, Fp, ctx)) { retval = false; goto cleanup; }