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
bceb555e
Commit
bceb555e
authored
Aug 05, 2016
by
Niels Möller
Browse files
hogweed-benchmark: Use uint8_t for curve25519 values.
parent
094ae866
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
bceb555e
2016-08-05 Niels Möller <nisse@lysator.liu.se>
* examples/hogweed-benchmark.c
(bench_rsa_init)
: Use uint8_t for
sexp strings.
* examples/hogweed-benchmark.c: Use uint8_t for
curve25519 values.
(bench_rsa_init): Use uint8_t for
sexp strings.
(bench_dsa_init): Likewise.
* examples/io.c (read_file): Use size_t for sizes, and uint8_t for
...
...
examples/hogweed-benchmark.c
View file @
bceb555e
...
...
@@ -652,15 +652,15 @@ bench_openssl_ecdsa_clear (void *p)
struct
curve25519_ctx
{
char
x
[
CURVE25519_SIZE
];
char
s
[
CURVE25519_SIZE
];
uint8_t
x
[
CURVE25519_SIZE
];
uint8_t
s
[
CURVE25519_SIZE
];
};
static
void
bench_curve25519_mul_g
(
void
*
p
)
{
struct
curve25519_ctx
*
ctx
=
p
;
char
q
[
CURVE25519_SIZE
];
uint8_t
q
[
CURVE25519_SIZE
];
curve25519_mul_g
(
q
,
ctx
->
s
);
}
...
...
@@ -668,7 +668,7 @@ static void
bench_curve25519_mul
(
void
*
p
)
{
struct
curve25519_ctx
*
ctx
=
p
;
char
q
[
CURVE25519_SIZE
];
uint8_t
q
[
CURVE25519_SIZE
];
curve25519_mul
(
q
,
ctx
->
s
,
ctx
->
x
);
}
...
...
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