DEC: use a central lift after we are done

This commit is contained in:
hasufell 2014-05-25 01:04:30 +02:00
parent 23d95ae992
commit dda90cabcf
No known key found for this signature in database
GPG Key ID: 220CD1C5BDEED020

View File

@ -53,4 +53,5 @@ void ntru_decrypt_poly(
poly_starmultiply(priv_key, encr_msg, a, ctx, ctx->q);
fmpz_poly_mod(a, ctx->q);
poly_starmultiply(a, priv_key_inv, out, ctx, ctx->p);
fmpz_poly_mod(out, ctx->p);
}