Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dmitry Baryshkov
nettle
Commits
95652d25
Commit
95652d25
authored
Jul 11, 2014
by
Niels Möller
Browse files
Made test_ecc_point non-static in testutils.c.
parent
17165610
Changes
3
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
95652d25
2014-07-11 Niels Möller <nisse@lysator.liu.se>
* testsuite/testutils.c (test_ecc_point): Made non-static.
* testsuite/testutils.h (struct ecc_ref_point): Moved here, from
testutils.h.
(test_ecc_point): Declare it.
* ecc-dup-eh.c (ecc_dup_eh, ecc_dup_eh_itch): New file, new functions.
* ecc-eh-to-a.c (ecc_eh_to_a, ecc_eh_to_a_itch): New file, new
functions.
...
...
testsuite/testutils.c
View file @
95652d25
...
...
@@ -1276,12 +1276,6 @@ test_mpn (const char *ref, const mp_limb_t *xp, mp_size_t n)
return
res
;
}
struct
ecc_ref_point
{
const
char
*
x
;
const
char
*
y
;
};
void
write_mpn
(
FILE
*
f
,
int
base
,
const
mp_limb_t
*
xp
,
mp_size_t
n
)
{
...
...
@@ -1289,7 +1283,7 @@ write_mpn (FILE *f, int base, const mp_limb_t *xp, mp_size_t n)
mpz_out_str
(
f
,
base
,
mpz_roinit_n
(
t
,
xp
,
n
));
}
static
void
void
test_ecc_point
(
const
struct
ecc_curve
*
ecc
,
const
struct
ecc_ref_point
*
ref
,
const
mp_limb_t
*
p
)
...
...
testsuite/testutils.h
View file @
95652d25
...
...
@@ -224,6 +224,17 @@ test_dsa_key(const struct dsa_params *params,
extern
const
struct
ecc_curve
*
const
ecc_curves
[];
struct
ecc_ref_point
{
const
char
*
x
;
const
char
*
y
;
};
void
test_ecc_point
(
const
struct
ecc_curve
*
ecc
,
const
struct
ecc_ref_point
*
ref
,
const
mp_limb_t
*
p
);
void
test_ecc_mul_a
(
unsigned
curve
,
unsigned
n
,
const
mp_limb_t
*
p
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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