diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-09-13 11:38:13 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-10-10 23:14:09 -0400 |
commit | fdbb9cdf746bbf0c39c34188baa8872471183ff7 (patch) | |
tree | 9b8d1e5217505f4d19b16e76be59ce8fe87c13aa /src/common/crypto.h | |
parent | c0bbcf138fa4e7d8e1974ed91718025d0dd5cc7a (diff) | |
download | tor-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.h | 3 |
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 |