Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Maamoun TK
nettle
Commits
358eabb1
Commit
358eabb1
authored
Jan 26, 2020
by
Niels Möller
Browse files
ChangeLog entries
parent
e436ec48
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
358eabb1
2020-01-26 Niels Möller <nisse@lysator.liu.se>
* ecc-internal.h (struct ecc_curve): Delete g, the curve
generator, since it was used only by tests. Update all curve
instances.
* eccdata.c (output_curve): Delete output of ecc_g.
(output_point): Delete name argument, and update callers.
* testsuite/testutils.c (ecc_ref): Table of reference points moved
out of test_ecc_mul_a. Add generator to the list of points.
(test_ecc_mul_a): Use ecc_ref table also for the n == 1 case.
(test_ecc_ga, test_ecc_get_g, test_ecc_get_ga): New functions,
using the tabulated generator.
* testsuite/ecc-add-test.c: Use test_ecc_get_g, instead of
accessing ecc->g.
* testsuite/ecc-dup-test.c: Likewise.
* testsuite/ecc-mul-a-test.c: Use test_ecc_get_ga and test_ecc_ga.
Delete special case for n == 1.
* testsuite/ecc-mul-g-test.c: Use test_ecc_ga.
2020-01-25 Niels Möller <nisse@lysator.liu.se>
* examples/hogweed-benchmark.c (bench_curve_init): Pass correct
...
...
testsuite/testutils.h
View file @
358eabb1
...
...
@@ -295,7 +295,7 @@ test_ecc_mul_h (unsigned curve, unsigned n, const mp_limb_t *p);
void
test_ecc_ga
(
unsigned
curve
,
const
mp_limb_t
*
p
);
/* Gets the curve generator, with coordinate
d
in redc form, if
/* Gets the curve generator, with coordinate
s
in redc form, if
appropriate, and with an appended z = 1 coordinate. */
void
test_ecc_get_g
(
unsigned
curve
,
mp_limb_t
*
rp
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment