fixed pointer arithmetical mistakes

This commit is contained in:
Christoph Prüßner 2014-05-03 14:07:12 +02:00
parent 7349c7e8be
commit b4a7870e97

View File

@ -39,11 +39,12 @@
// Require: N , q, p, secret key f , inverse polynomial Fp , and encrypted message e.
int ntru_decrypt(pb_poly *encr_msg, pb_poly *private_key, ntru_context *context, char ** decr_msg){
// toDo q = ?, p = ?, fp = ?
unsigned int q = *context->q;
unsigned int p = *context->p;
unsigned int N = *context->N;
//toDO StarMultiply(f, e, a, N, q)
unsigned int q = context->q;
unsigned int p = context->p;
unsigned int N = context->N;
// StarMultiply(f, e, a, N, q)
pb_poly *a;
pb_starmultiply(private_key, encr_msg, a, context, q);