Skip to content

Commit

Permalink
fixup! group: Add constant-time secp256k1_ge_set_all_gej
Browse files Browse the repository at this point in the history
  • Loading branch information
real-or-random committed Oct 8, 2024
1 parent b4d6028 commit f85b20f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/group.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,12 @@ static void secp256k1_ge_set_gej(secp256k1_ge *r, secp256k1_gej *a);
/** Set a group element equal to another which is given in jacobian coordinates. */
static void secp256k1_ge_set_gej_var(secp256k1_ge *r, secp256k1_gej *a);

/** Set a batch of group elements equal to the inputs given in jacobian coordinates (affine). Constant time. */
/** Set group elements r[0..len] (affine) equal to group elements a[0..len] (jacobian).
* None of the group elements in a[0..len] may be infinity. */
static void secp256k1_ge_set_all_gej(secp256k1_ge *r, const secp256k1_gej *a, size_t len);

/** Set a batch of group elements equal to the inputs given in jacobian coordinates. */
/** Set group elements r[0..len] (affine) equal to group elements a[0..len] (jacobian).
* None of the group elements in a[0..len] may be infinity. Constant time. */
static void secp256k1_ge_set_all_gej_var(secp256k1_ge *r, const secp256k1_gej *a, size_t len);

/** Bring a batch of inputs to the same global z "denominator", based on ratios between
Expand Down

0 comments on commit f85b20f

Please sign in to comment.