aboutsummaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2012-12-04 15:57:16 -0500
committerNick Mathewson <nickm@torproject.org>2013-01-02 14:11:13 -0500
commit6c883bc6384b3260d791e407b42ffcabb8276beb (patch)
tree17c9476e652e464019c08a21b5f919e719203f9a /src/or
parent25c05cb747eece7d720a3f79c172e83a0e79a3a1 (diff)
downloadtor-6c883bc6384b3260d791e407b42ffcabb8276beb.tar
tor-6c883bc6384b3260d791e407b42ffcabb8276beb.tar.gz
Move curve25519 keypair type to src/common; give it functions
This patch moves curve25519_keypair_t from src/or/onion_ntor.h to src/common/crypto_curve25519.h, and adds new functions to generate, load, and store keypairs.
Diffstat (limited to 'src/or')
-rw-r--r--src/or/onion_ntor.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/or/onion_ntor.h b/src/or/onion_ntor.h
index 03b83da5f..4f305a49e 100644
--- a/src/or/onion_ntor.h
+++ b/src/or/onion_ntor.h
@@ -17,14 +17,6 @@ typedef struct ntor_handshake_state_t ntor_handshake_state_t;
/** Length of an ntor reply, as sent from server to client. */
#define NTOR_REPLY_LEN 64
-/** A paired public and private key for curve25519.
- * XXXX024 move this structure somewhere smarter.
- **/
-typedef struct curve25519_keypair_t {
- curve25519_public_key_t pubkey;
- curve25519_secret_key_t seckey;
-} curve25519_keypair_t;
-
void ntor_handshake_state_free(ntor_handshake_state_t *state);
int onion_skin_ntor_create(const uint8_t *router_id,