summaryrefslogtreecommitdiffstats
path: root/src/protocols/ec25519_fhmqvc/handshake.h
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2013-10-31 05:41:00 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2013-10-31 05:41:00 +0100
commitf6c37dc0eac486f409f56e3de49a58a7bb5a9195 (patch)
tree8345271536217f3f4408d2735979e3cbf8b258ef /src/protocols/ec25519_fhmqvc/handshake.h
parent448abc56cda93e6d424e042b245cb712b6d14938 (diff)
downloadfastd-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/handshake.h')
-rw-r--r--src/protocols/ec25519_fhmqvc/handshake.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/protocols/ec25519_fhmqvc/handshake.h b/src/protocols/ec25519_fhmqvc/handshake.h
index 835b041..2929b2b 100644
--- a/src/protocols/ec25519_fhmqvc/handshake.h
+++ b/src/protocols/ec25519_fhmqvc/handshake.h
@@ -35,11 +35,7 @@ typedef struct handshake_key {
struct timespec preferred_till;
struct timespec valid_till;
- /* keypair used as initiator */
- keypair_t key1;
-
- /* keypair used as responder */
- keypair_t key2;
+ keypair_t key;
} handshake_key_t;
struct fastd_protocol_state {