ENC: fix indenting level

This commit is contained in:
hasufell 2014-05-19 22:31:36 +02:00
parent d56c920b84
commit fb7a46c363
No known key found for this signature in database
GPG Key ID: 220CD1C5BDEED020

View File

@ -43,23 +43,23 @@ void pb_encrypt(ntru_context *ctx,
pb_poly *pubKey, pb_poly *pubKey,
pb_poly *out) pb_poly *out)
{ {
mp_int *tmpOut; mp_int *tmpOut;
mp_int *tmpMsg; mp_int *tmpMsg;
mp_int mp_int_mod; mp_int mp_int_mod;
init_integer(&mp_int_mod); init_integer(&mp_int_mod);
MP_SET_INT(&mp_int_mod,(unsigned long)ctx->q); 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; tmpOut = out->terms;
tmpMsg = msg->terms; tmpMsg = msg->terms;
for(unsigned int i = 0; i <= ctx->N-1; i++) { for(unsigned int i = 0; i <= ctx->N-1; i++) {
mp_add(tmpOut,tmpMsg,tmpOut); mp_add(tmpOut,tmpMsg,tmpOut);
mp_mod(tmpOut,&mp_int_mod,tmpOut); mp_mod(tmpOut,&mp_int_mod,tmpOut);
tmpOut++; tmpOut++;
tmpMsg++; tmpMsg++;
} }
} }