diff options
author | George Kadianakis <desnacked@riseup.net> | 2016-09-05 17:21:44 +0200 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-12-14 15:17:57 -0500 |
commit | b9010c8bf5f1231c51cd3c7b134ec8576a8f9de5 (patch) | |
tree | 7272f4769e19e6e6a94f8b805e9f305c82896346 /src/common/crypto.h | |
parent | 0980787f91cfc420f02dead3fea99882ab8c2ada (diff) | |
download | tor-b9010c8bf5f1231c51cd3c7b134ec8576a8f9de5.tar.gz tor-b9010c8bf5f1231c51cd3c7b134ec8576a8f9de5.zip |
prop224 prepwork: Introduce HMAC-SHA3 function.
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 116e0a62fd..32b6531456 100644 --- a/src/common/crypto.h +++ b/src/common/crypto.h @@ -255,6 +255,9 @@ void crypto_digest_assign(crypto_digest_t *into, void crypto_hmac_sha256(char *hmac_out, const char *key, size_t key_len, const char *msg, size_t msg_len); +void crypto_mac_sha3_256(char *mac_out, size_t mac_out_len, + const char *key, size_t key_len, + const char *msg, size_t msg_len); crypto_xof_t *crypto_xof_new(void); void crypto_xof_add_bytes(crypto_xof_t *xof, const uint8_t *data, size_t len); void crypto_xof_squeeze_bytes(crypto_xof_t *xof, uint8_t *out, size_t len); |