aboutsummaryrefslogtreecommitdiff
path: root/src/common/crypto_curve25519.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2013-09-29 13:30:24 -0400
committerNick Mathewson <nickm@torproject.org>2014-09-25 15:08:20 -0400
commit87ba033cd57e57e10a19ca77005c8c740ae70181 (patch)
tree4700d55f3f8dfb68e3502fb19c669d7fe5b66de1 /src/common/crypto_curve25519.h
parentb2acd3580c8c129771cdcc1f0ab2bbfcaffbdefb (diff)
downloadtor-87ba033cd57e57e10a19ca77005c8c740ae70181.tar.gz
tor-87ba033cd57e57e10a19ca77005c8c740ae70181.zip
Add Ed25519 support, wrappers, and tests.
Taken from earlier ed25519 branch based on floodyberry's ed25519-donna. Tweaked so that it applies to ref10 instead.
Diffstat (limited to 'src/common/crypto_curve25519.h')
-rw-r--r--src/common/crypto_curve25519.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/crypto_curve25519.h b/src/common/crypto_curve25519.h
index 57018ac2f5..fece2feb19 100644
--- a/src/common/crypto_curve25519.h
+++ b/src/common/crypto_curve25519.h
@@ -57,6 +57,8 @@ int curve25519_keypair_read_from_file(curve25519_keypair_t *keypair_out,
char **tag_out,
const char *fname);
+int curve25519_rand_seckey_bytes(uint8_t *out, int extra_strong);
+
#ifdef CRYPTO_CURVE25519_PRIVATE
STATIC int curve25519_impl(uint8_t *output, const uint8_t *secret,
const uint8_t *basepoint);