diff options
author | Nick Mathewson <nickm@torproject.org> | 2005-10-06 04:33:40 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2005-10-06 04:33:40 +0000 |
commit | ba24193ab51bec6f7c451c622f6476a7ab6adc42 (patch) | |
tree | 6b6cf18501bb696e4a19399c1030bf697b83d053 /src/common/crypto.c | |
parent | e53f1ccbfcb667bda30ce9ee5a42cc3be9efc80a (diff) | |
download | tor-ba24193ab51bec6f7c451c622f6476a7ab6adc42.tar.gz tor-ba24193ab51bec6f7c451c622f6476a7ab6adc42.zip |
Make doxygen marginally happier
svn:r5208
Diffstat (limited to 'src/common/crypto.c')
-rw-r--r-- | src/common/crypto.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common/crypto.c b/src/common/crypto.c index 168abeb722..120d0c1cac 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; }; |