Skip to content

Commit

Permalink
Minor adjustment.
Browse files Browse the repository at this point in the history
  • Loading branch information
dfaranha committed Feb 11, 2024
1 parent 4ca67cd commit 8f81875
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/cp/relic_cp_pcdel.c
Original file line number Diff line number Diff line change
Expand Up @@ -552,8 +552,7 @@ int cp_ampub_ask(bn_t c, g1_t v1, g2_t w2, const g1_t p, const g2_t q,
/* Generate random c, U1, r, U2. */
pc_get_ord(n);
/* Sample random c. */
//bn_rand_frb(c, &(core_get()->par), n, RAND_DIST);
bn_rand(c, RLC_POS, RAND_DIST);
bn_rand_frb(c, &(core_get()->par), n, RAND_DIST);
/* Compute V1 = [r](P - U1). */
g1_sub(v1, p, u1);
g1_mul(v1, v1, r);
Expand Down

0 comments on commit 8f81875

Please sign in to comment.