Commit bceb555e authored by Niels Möller's avatar Niels Möller

hogweed-benchmark: Use uint8_t for curve25519 values.

parent 094ae866
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
......
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment