summaryrefslogtreecommitdiff
path: root/src/common/crypto.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2011-09-13 11:38:13 -0400
committerNick Mathewson <nickm@torproject.org>2011-10-10 23:14:09 -0400
commitfdbb9cdf746bbf0c39c34188baa8872471183ff7 (patch)
tree9b8d1e5217505f4d19b16e76be59ce8fe87c13aa /src/common/crypto.h
parentc0bbcf138fa4e7d8e1974ed91718025d0dd5cc7a (diff)
downloadtor-fdbb9cdf746bbf0c39c34188baa8872471183ff7.tar.gz
tor-fdbb9cdf746bbf0c39c34188baa8872471183ff7.zip
Add a sha256 hmac function, with tests
Diffstat (limited to 'src/common/crypto.h')
-rw-r--r--src/common/crypto.h3
1 files changed, 3 insertions, 0 deletions
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