From 05a41fe0ca9aa333b13ab509a1bf2d497e26c273 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Thu, 8 Jan 2015 11:55:39 +0100 Subject: ecc25519-fhmqvc: add doxygen comments to the key check functions --- src/protocols/ec25519_fhmqvc/handshake.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/protocols/ec25519_fhmqvc/handshake.c b/src/protocols/ec25519_fhmqvc/handshake.c index 4e519fa..5d3e57e 100644 --- a/src/protocols/ec25519_fhmqvc/handshake.c +++ b/src/protocols/ec25519_fhmqvc/handshake.c @@ -204,6 +204,7 @@ static inline bool secure_handshake(const fastd_handshake_t *handshake) { } +/** Checks if an ecc25519 work structure represents a valid curve point */ static bool check_key(const ecc_25519_work_t *key) { ecc_25519_work_t work; @@ -217,6 +218,7 @@ static bool check_key(const ecc_25519_work_t *key) { return true; } +/** Checks if public key is a valid curve point */ bool fastd_protocol_ec25519_fhmqvc_check_key(const ecc_int256_t *key) { ecc_25519_work_t work; -- cgit v1.2.3