summaryrefslogtreecommitdiff
path: root/src/or/or.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2005-12-08 17:38:32 +0000
committerNick Mathewson <nickm@torproject.org>2005-12-08 17:38:32 +0000
commite9b66ec906895753fc8374c634c8b708933c2762 (patch)
treeca5557f31ce9fbb052a3b0319fc771d197f00231 /src/or/or.h
parent25303172b815789ce3ee1bde0ed765a4b61ffa74 (diff)
downloadtor-e9b66ec906895753fc8374c634c8b708933c2762.tar.gz
tor-e9b66ec906895753fc8374c634c8b708933c2762.zip
Document CREATE_FAST better in the code. Move our key expansion algorithm into a separate function in crypto.c
svn:r5530
Diffstat (limited to 'src/or/or.h')
-rw-r--r--src/or/or.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/or/or.h b/src/or/or.h
index bd00f1a575..b3a78f74dc 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -924,6 +924,11 @@ typedef struct crypt_path_t {
/** Current state of Diffie-Hellman key negotiation with the OR at this
* step. */
crypto_dh_env_t *dh_handshake_state;
+ /** Current state of 'fast' (non-PK) key negotiation with the OR at this
+ * step. Used to save CPU when TLS is already providing all the
+ * authentication, secrecy, and integrity we need, and we're already
+ * distinguishable from an OR.
+ */
char fast_handshake_state[DIGEST_LEN];
/** Negotiated key material shared with the OR at this step. */
char handshake_digest[DIGEST_LEN];/* KH in tor-spec.txt */