From 17266cc44a0a386ec006970317e2d5941141867b Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Wed, 31 Oct 2007 04:56:59 +0000 Subject: 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 --- src/common/crypto.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/common/crypto.h') 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); -- cgit v1.2.3-54-g00ecf