From f5a723399dfc3969bdb712b22616721ec740f818 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sun, 25 Oct 2015 18:20:56 +0100 Subject: Update libuecc dependency to v6 and remove use of deprecated API --- src/protocols/ec25519_fhmqvc/handshake.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/protocols/ec25519_fhmqvc/handshake.c') diff --git a/src/protocols/ec25519_fhmqvc/handshake.c b/src/protocols/ec25519_fhmqvc/handshake.c index ee26892..0609355 100644 --- a/src/protocols/ec25519_fhmqvc/handshake.c +++ b/src/protocols/ec25519_fhmqvc/handshake.c @@ -198,7 +198,7 @@ static bool make_shared_handshake_key(bool initiator, const keypair_t *handshake const aligned_int256_t *A, *B, *X, *Y; ecc_25519_work_t work, workXY; - if (!ecc_25519_load_packed(&workXY, &peer_handshake_key->int256)) + if (!ecc_25519_load_packed_legacy(&workXY, &peer_handshake_key->int256)) return false; if (ecc_25519_is_identity(&workXY)) @@ -261,7 +261,7 @@ static bool make_shared_handshake_key(bool initiator, const keypair_t *handshake if (ecc_25519_is_identity(&work)) return false; - ecc_25519_store_packed(&sigma->int256, &work); + ecc_25519_store_packed_legacy(&sigma->int256, &work); if (shared_handshake_key) derive_key(shared_handshake_key, 1, zero_salt, "", A, B, X, Y, sigma); @@ -561,7 +561,7 @@ static fastd_peer_t * add_dynamic(fastd_socket_t *sock, const fastd_peer_address fastd_protocol_key_t peer_key; memcpy(&peer_key.key, key, PUBLICKEYBYTES); - if (!ecc_25519_load_packed(&peer_key.unpacked, &peer_key.key.int256) + if (!ecc_25519_load_packed_legacy(&peer_key.unpacked, &peer_key.key.int256) || ecc_25519_is_identity(&peer_key.unpacked)) { pr_debug("ignoring handshake from %I (invalid key)", addr); return NULL; -- cgit v1.2.3