summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2016-08-05 11:00:30 +0200
committerNiels Möller <nisse@lysator.liu.se>2016-08-05 11:00:30 +0200
commitbceb555e3fda64ce752c24d0545695108df557a8 (patch)
tree389cebe6626d2f52c9d368d93c9e2b2d0d7a99a3 /examples
parent094ae866e7ef04103bbe1803e29967ba00fe9c9a (diff)
downloadnettle-bceb555e3fda64ce752c24d0545695108df557a8.tar.gz
hogweed-benchmark: Use uint8_t for curve25519 values.
Diffstat (limited to 'examples')
-rw-r--r--examples/hogweed-benchmark.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/hogweed-benchmark.c b/examples/hogweed-benchmark.c
index 05020670..45b3528c 100644
--- a/examples/hogweed-benchmark.c
+++ b/examples/hogweed-benchmark.c
@@ -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);
}