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/state.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/state.c')
-rw-r--r-- | src/protocols/ec25519_fhmqvc/state.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/protocols/ec25519_fhmqvc/state.c b/src/protocols/ec25519_fhmqvc/state.c index 7f3b847..f20b381 100644 --- a/src/protocols/ec25519_fhmqvc/state.c +++ b/src/protocols/ec25519_fhmqvc/state.c @@ -38,7 +38,7 @@ static void init_protocol_state(void) { } static void new_handshake_key(keypair_t *key) { - fastd_random_bytes(key->secret.p, 32, false); + fastd_random_bytes(key->secret.p, SECRETKEYBYTES, false); ecc_25519_gf_sanitize_secret(&key->secret, &key->secret); ecc_25519_work_t work; |