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
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);
}
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);
}