summaryrefslogtreecommitdiff
path: root/hmac.h
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2010-03-27 21:49:29 +0100
committerNiels Möller <nisse@lysator.liu.se>2010-03-27 21:49:29 +0100
commit16302e13c2eb1ce58daff94f4df562530487ab18 (patch)
treef8aac034cce0096c3547fa40a87d7aa554bd3304 /hmac.h
parent2f7417de6f7e30694dc7d3a411f7132a1473a4b6 (diff)
downloadnettle-16302e13c2eb1ce58daff94f4df562530487ab18.tar.gz
* Makefile.in (nettle_SOURCES): Added hmac-sha224.c and hmac-sha384.c.
* hmac.h: Added declarations of hmac-sha224 and hmac-sha384. * hmac-sha224.c: New file. Rev: nettle/ChangeLog:1.65 Rev: nettle/Makefile.in:1.21 Rev: nettle/hmac-sha224.c:1.1 Rev: nettle/hmac.h:1.4
Diffstat (limited to 'hmac.h')
-rw-r--r--hmac.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/hmac.h b/hmac.h
index a413de75..0142e6e3 100644
--- a/hmac.h
+++ b/hmac.h
@@ -45,9 +45,13 @@ extern "C" {
#define hmac_sha1_set_key nettle_hmac_sha1_set_key
#define hmac_sha1_update nettle_hmac_sha1_update
#define hmac_sha1_digest nettle_hmac_sha1_digest
+#define hmac_sha224_set_key nettle_hmac_sha224_set_key
+#define hmac_sha224_digest nettle_hmac_sha224_digest
#define hmac_sha256_set_key nettle_hmac_sha256_set_key
#define hmac_sha256_update nettle_hmac_sha256_update
#define hmac_sha256_digest nettle_hmac_sha256_digest
+#define hmac_sha384_set_key nettle_hmac_sha384_set_key
+#define hmac_sha384_digest nettle_hmac_sha384_digest
#define hmac_sha512_set_key nettle_hmac_sha512_set_key
#define hmac_sha512_update nettle_hmac_sha512_update
#define hmac_sha512_digest nettle_hmac_sha512_digest
@@ -129,6 +133,19 @@ void
hmac_sha256_digest(struct hmac_sha256_ctx *ctx,
unsigned length, uint8_t *digest);
+/* hmac-sha224 */
+#define hmac_sha224_ctx hmac_sha256_ctx
+
+void
+hmac_sha224_set_key(struct hmac_sha224_ctx *ctx,
+ unsigned key_length, const uint8_t *key);
+
+#define hmac_sha224_update nettle_hmac_sha256_update
+
+void
+hmac_sha224_digest(struct hmac_sha224_ctx *ctx,
+ unsigned length, uint8_t *digest);
+
/* hmac-sha512 */
struct hmac_sha512_ctx HMAC_CTX(struct sha512_ctx);
@@ -151,7 +168,7 @@ void
hmac_sha384_set_key(struct hmac_sha512_ctx *ctx,
unsigned key_length, const uint8_t *key);
-#define hmac_sha384_update hmac_sha512_update
+#define hmac_sha384_update nettle_hmac_sha512_update
void
hmac_sha384_digest(struct hmac_sha512_ctx *ctx,