From e8296fbc9f88154830a68a0a7d53aa38f93cbd66 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Thu, 24 Apr 2014 03:33:09 +0200 Subject: ec25519-fhmqvc: use PUBLICKEYBYTES and SECRETKEYBYTES defines more --- src/protocols/ec25519_fhmqvc/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/protocols/ec25519_fhmqvc/util.c') diff --git a/src/protocols/ec25519_fhmqvc/util.c b/src/protocols/ec25519_fhmqvc/util.c index 5bd23b3..8d11eeb 100644 --- a/src/protocols/ec25519_fhmqvc/util.c +++ b/src/protocols/ec25519_fhmqvc/util.c @@ -41,7 +41,7 @@ void fastd_protocol_ec25519_fhmqvc_generate_key(void) { if (!conf.machine_readable) pr_info("Reading 32 bytes from /dev/random..."); - fastd_random_bytes(secret_key.p, 32, true); + fastd_random_bytes(secret_key.p, SECRETKEYBYTES, true); ecc_25519_gf_sanitize_secret(&secret_key, &secret_key); ecc_25519_work_t work; -- cgit v1.2.3