aboutsummaryrefslogtreecommitdiff
path: root/libcmix/cmix.c
diff options
context:
space:
mode:
Diffstat (limited to 'libcmix/cmix.c')
-rw-r--r--libcmix/cmix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcmix/cmix.c b/libcmix/cmix.c
index 6a39767..4893c6c 100644
--- a/libcmix/cmix.c
+++ b/libcmix/cmix.c
@@ -184,7 +184,7 @@ enum cmix_error multiply_s(struct CMixContext const* ctx, char* r_out_buffer, ch
GroupElement random_s;
GroupElement message_s;
- ctx->api.encrypt(&random_s, &message_s, ctx->s[index], ctx->network_key);
+ ctx->api.encrypt(&random_s, &message_s, ctx->s[ctx->permutation[index]], ctx->network_key);
GroupElement random_pirs = ctx->api.multiply(random_r, random_s, true);
GroupElement message_pirs = ctx->api.multiply(message_r, message_s, true);