diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-10-31 05:41:00 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-10-31 05:41:00 +0100 |
commit | f6c37dc0eac486f409f56e3de49a58a7bb5a9195 (patch) | |
tree | 8345271536217f3f4408d2735979e3cbf8b258ef /src/protocols/ec25519_fhmqvc/state.c | |
parent | 448abc56cda93e6d424e042b245cb712b6d14938 (diff) | |
download | fastd-f6c37dc0eac486f409f56e3de49a58a7bb5a9195.tar fastd-f6c37dc0eac486f409f56e3de49a58a7bb5a9195.zip |
ec25519-fhmqvc: don't use separate keypairs as initiator and responder
This reverts commit 81a329682b2035dc56f7c6c21815bac590f34b52. As many handshake
parameters depend on the handshake direction, crossed handshakes will generate
completely different keys anyways.
Diffstat (limited to 'src/protocols/ec25519_fhmqvc/state.c')
-rw-r--r-- | src/protocols/ec25519_fhmqvc/state.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/protocols/ec25519_fhmqvc/state.c b/src/protocols/ec25519_fhmqvc/state.c index fb00503..3affc44 100644 --- a/src/protocols/ec25519_fhmqvc/state.c +++ b/src/protocols/ec25519_fhmqvc/state.c @@ -55,8 +55,7 @@ void fastd_protocol_ec25519_fhmqvc_maintenance(fastd_context_t *ctx) { ctx->protocol_state->handshake_key.serial++; - new_handshake_key(ctx, &ctx->protocol_state->handshake_key.key1); - new_handshake_key(ctx, &ctx->protocol_state->handshake_key.key2); + new_handshake_key(ctx, &ctx->protocol_state->handshake_key.key); ctx->protocol_state->handshake_key.preferred_till = ctx->now; ctx->protocol_state->handshake_key.preferred_till.tv_sec += 15; |