diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-10-31 04:56:59 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-10-31 04:56:59 +0000 |
commit | 17266cc44a0a386ec006970317e2d5941141867b (patch) | |
tree | 891f74067d3197acf270328facc1e5e13f794af4 /src/common/crypto.h | |
parent | 7e80640b97bbd97e8bcf5e95366f535a8bd16bfc (diff) | |
download | tor-17266cc44a0a386ec006970317e2d5941141867b.tar.gz tor-17266cc44a0a386ec006970317e2d5941141867b.zip |
r16287@catbus: nickm | 2007-10-31 00:53:53 -0400
HMAC-SHA-1 implementation, with unit tests based on vectors from RVFC2202. Steven's stuff will need this.
svn:r12289
Diffstat (limited to 'src/common/crypto.h')
-rw-r--r-- | src/common/crypto.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/crypto.h b/src/common/crypto.h index 09cbbe704a..610ea460d7 100644 --- a/src/common/crypto.h +++ b/src/common/crypto.h @@ -146,6 +146,9 @@ void crypto_digest_get_digest(crypto_digest_env_t *digest, crypto_digest_env_t *crypto_digest_dup(const crypto_digest_env_t *digest); void crypto_digest_assign(crypto_digest_env_t *into, const crypto_digest_env_t *from); +void crypto_hmac_sha1(char *hmac_out, + const char *key, size_t key_len, + const char *msg, size_t msg_len); /* Key negotiation */ crypto_dh_env_t *crypto_dh_new(void); |