diff --git a/src/ntru_decrypt.c b/src/ntru_decrypt.c index abd55df..5594f3e 100644 --- a/src/ntru_decrypt.c +++ b/src/ntru_decrypt.c @@ -45,8 +45,7 @@ pb_poly* ntru_decrypt(pb_poly *encr_msg, pb_poly *private_key, pb_poly *Fp, ntru // StarMultiply(f, e, a, N, q) pb_poly *a = build_polynom(NULL, N, context); pb_starmultiply(private_key, encr_msg, a, context, q); - printf("%s\n", "Nach dem StarMultiply: "); - draw_polynom(a); + mp_int mp_q; mp_int mp_qdiv2; mp_int zero; @@ -70,6 +69,9 @@ pb_poly* ntru_decrypt(pb_poly *encr_msg, pb_poly *private_key, pb_poly *Fp, ntru } } + printf("%s\np:%d", "Nach dem StarMultiply: ", p); + draw_polynom(a); + pb_poly *d = build_polynom(NULL, N, context); // StarMultiply(a, Fp , d, N, p)