diff options
author | Nick Mathewson <nickm@torproject.org> | 2013-09-29 13:30:24 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-09-25 15:08:20 -0400 |
commit | 87ba033cd57e57e10a19ca77005c8c740ae70181 (patch) | |
tree | 4700d55f3f8dfb68e3502fb19c669d7fe5b66de1 /src/common/crypto_curve25519.h | |
parent | b2acd3580c8c129771cdcc1f0ab2bbfcaffbdefb (diff) | |
download | tor-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.h | 2 |
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); |