summaryrefslogtreecommitdiffstats
path: root/src/protocols
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2015-01-08 11:55:39 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2015-01-08 11:55:39 +0100
commit05a41fe0ca9aa333b13ab509a1bf2d497e26c273 (patch)
tree1bd381ff793247f903c8c41ecdecbabb5ef93235 /src/protocols
parent555ebfd2c69eae7df7dcd274576ae424c54cd6a4 (diff)
downloadfastd-05a41fe0ca9aa333b13ab509a1bf2d497e26c273.tar
fastd-05a41fe0ca9aa333b13ab509a1bf2d497e26c273.zip
ecc25519-fhmqvc: add doxygen comments to the key check functions
Diffstat (limited to 'src/protocols')
-rw-r--r--src/protocols/ec25519_fhmqvc/handshake.c2
1 files changed, 2 insertions, 0 deletions
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;