aboutsummaryrefslogtreecommitdiff
path: root/src/common/crypto_curve25519.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-02-07 16:16:56 -0500
committerNick Mathewson <nickm@torproject.org>2014-02-07 16:16:56 -0500
commitfdf68479b077c2b53fcdffd54e307f1258c81a4b (patch)
tree4f3911f1a5dfdabbb71e916bfabdc5a2559d0263 /src/common/crypto_curve25519.h
parentaa3c8c1397beff01fca186f176cd9fe1fa528aed (diff)
downloadtor-fdf68479b077c2b53fcdffd54e307f1258c81a4b.tar
tor-fdf68479b077c2b53fcdffd54e307f1258c81a4b.tar.gz
Explain CURVE25519_ENABLED: closes 9774
Diffstat (limited to 'src/common/crypto_curve25519.h')
-rw-r--r--src/common/crypto_curve25519.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common/crypto_curve25519.h b/src/common/crypto_curve25519.h
index f9d533ba2..57018ac2f 100644
--- a/src/common/crypto_curve25519.h
+++ b/src/common/crypto_curve25519.h
@@ -31,6 +31,11 @@ typedef struct curve25519_keypair_t {
} curve25519_keypair_t;
#ifdef CURVE25519_ENABLED
+/* These functions require that we actually know how to use curve25519 keys.
+ * The other data structures and functions in this header let us parse them,
+ * store them, and move them around.
+ */
+
int curve25519_public_key_is_ok(const curve25519_public_key_t *);
int curve25519_secret_key_generate(curve25519_secret_key_t *key_out,