ENC: fix indenting level
This commit is contained in:
parent
d56c920b84
commit
fb7a46c363
@ -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++;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user