From fdbb9cdf746bbf0c39c34188baa8872471183ff7 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Tue, 13 Sep 2011 11:38:13 -0400 Subject: Add a sha256 hmac function, with tests --- 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 d50d9f906d..80c10296a3 100644 --- a/src/common/crypto.h +++ b/src/common/crypto.h @@ -196,6 +196,9 @@ void crypto_digest_assign(crypto_digest_env_t *into, void crypto_hmac_sha1(char *hmac_out, const char *key, size_t key_len, const char *msg, size_t msg_len); +void crypto_hmac_sha256(char *hmac_out, + const char *key, size_t key_len, + const char *msg, size_t msg_len); /* Key negotiation */ #define DH_TYPE_CIRCUIT 1 -- cgit v1.2.3-54-g00ecf