diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-04-24 03:33:09 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-04-24 03:33:09 +0200 |
commit | e8296fbc9f88154830a68a0a7d53aa38f93cbd66 (patch) | |
tree | 9484285e61f9b68073295f025f885939772e66dd /src/protocols/ec25519_fhmqvc/util.c | |
parent | 4872dd03e73aac434d735782417e40ca33336dac (diff) | |
download | fastd-e8296fbc9f88154830a68a0a7d53aa38f93cbd66.tar fastd-e8296fbc9f88154830a68a0a7d53aa38f93cbd66.zip |
ec25519-fhmqvc: use PUBLICKEYBYTES and SECRETKEYBYTES defines more
Diffstat (limited to 'src/protocols/ec25519_fhmqvc/util.c')
-rw-r--r-- | src/protocols/ec25519_fhmqvc/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |