aboutsummaryrefslogtreecommitdiff
path: root/src/common/crypto.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2005-10-06 04:33:40 +0000
committerNick Mathewson <nickm@torproject.org>2005-10-06 04:33:40 +0000
commitba24193ab51bec6f7c451c622f6476a7ab6adc42 (patch)
tree6b6cf18501bb696e4a19399c1030bf697b83d053 /src/common/crypto.c
parente53f1ccbfcb667bda30ce9ee5a42cc3be9efc80a (diff)
downloadtor-ba24193ab51bec6f7c451c622f6476a7ab6adc42.tar
tor-ba24193ab51bec6f7c451c622f6476a7ab6adc42.tar.gz
Make doxygen marginally happier
svn:r5208
Diffstat (limited to 'src/common/crypto.c')
-rw-r--r--src/common/crypto.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common/crypto.c b/src/common/crypto.c
index 168abeb72..120d0c1ca 100644
--- a/src/common/crypto.c
+++ b/src/common/crypto.c
@@ -91,18 +91,22 @@ static tor_mutex_t **_openssl_mutexes = NULL;
static int _n_openssl_mutexes = -1;
#endif
+/** A public key, or a public/private keypair. */
struct crypto_pk_env_t
{
int refs; /* reference counting so we don't have to copy keys */
RSA *key;
};
+/** Key and stream information for a stream cipher. */
struct crypto_cipher_env_t
{
char key[CIPHER_KEY_LEN];
aes_cnt_cipher_t *cipher;
};
+/** A structure to hold the first half (x, g^x) of a Diffie-Hellman handshake
+ * while we're waiting for the second.*/
struct crypto_dh_env_t {
DH *dh;
};
@@ -1220,6 +1224,7 @@ crypto_digest(char *digest, const char *m, size_t len)
return (SHA1((const unsigned char*)m,len,(unsigned char*)digest) == NULL);
}
+/** Intermediate information about the digest of a stream of data. */
struct crypto_digest_env_t {
SHA_CTX d;
};