Skip to content

Commit

Permalink
Merge pull request #667 from levitte/constify-math
Browse files Browse the repository at this point in the history
Constify math descriptors
  • Loading branch information
sjaeckel authored Nov 9, 2024
2 parents 2dd6690 + 1d07689 commit 5d2b154
Show file tree
Hide file tree
Showing 32 changed files with 478 additions and 444 deletions.
10 changes: 5 additions & 5 deletions demos/tv_gen.c
Original file line number Diff line number Diff line change
Expand Up @@ -678,11 +678,11 @@ static void ecc_gen(void)
fprintf(out, "%s\n", ltc_ecc_curves[x].OID);
mp_set(k, 1);

mp_read_radix(order, (char *)ltc_ecc_curves[x].order, 16);
mp_read_radix(modulus, (char *)ltc_ecc_curves[x].prime, 16);
mp_read_radix(a, (char *)ltc_ecc_curves[x].A, 16);
mp_read_radix(G->x, (char *)ltc_ecc_curves[x].Gx, 16);
mp_read_radix(G->y, (char *)ltc_ecc_curves[x].Gy, 16);
mp_read_radix(order, ltc_ecc_curves[x].order, 16);
mp_read_radix(modulus, ltc_ecc_curves[x].prime, 16);
mp_read_radix(a, ltc_ecc_curves[x].A, 16);
mp_read_radix(G->x, ltc_ecc_curves[x].Gx, 16);
mp_read_radix(G->y, ltc_ecc_curves[x].Gy, 16);
mp_set(G->z, 1);

while (mp_cmp(k, order) == LTC_MP_LT) {
Expand Down
Loading

0 comments on commit 5d2b154

Please sign in to comment.