From fb7a46c363983997be70562e21b2530af2223cc9 Mon Sep 17 00:00:00 2001 From: hasufell Date: Mon, 19 May 2014 22:31:36 +0200 Subject: [PATCH] ENC: fix indenting level --- src/pqc_encrypt.c | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/pqc_encrypt.c b/src/pqc_encrypt.c index 05c1a82..c8fd750 100644 --- a/src/pqc_encrypt.c +++ b/src/pqc_encrypt.c @@ -43,23 +43,23 @@ void pb_encrypt(ntru_context *ctx, pb_poly *pubKey, pb_poly *out) { - mp_int *tmpOut; - mp_int *tmpMsg; - mp_int mp_int_mod; + mp_int *tmpOut; + mp_int *tmpMsg; + mp_int mp_int_mod; - init_integer(&mp_int_mod); - MP_SET_INT(&mp_int_mod,(unsigned long)ctx->q); + init_integer(&mp_int_mod); + MP_SET_INT(&mp_int_mod,(unsigned long)ctx->q); - pb_starmultiply(pubKey, rnd, out, ctx, ctx->q); + pb_starmultiply(pubKey, rnd, out, ctx, ctx->q); - tmpOut = out->terms; - tmpMsg = msg->terms; + tmpOut = out->terms; + tmpMsg = msg->terms; - for(unsigned int i = 0; i <= ctx->N-1; i++) { - mp_add(tmpOut,tmpMsg,tmpOut); - mp_mod(tmpOut,&mp_int_mod,tmpOut); + for(unsigned int i = 0; i <= ctx->N-1; i++) { + mp_add(tmpOut,tmpMsg,tmpOut); + mp_mod(tmpOut,&mp_int_mod,tmpOut); - tmpOut++; - tmpMsg++; - } + tmpOut++; + tmpMsg++; + } }