Commit 2d0830f8 authored by Niels Möller's avatar Niels Möller

* hmac-md5.c: First working version.

* Makefile.am (libnettle_a_SOURCES): Added hmac.c and hmac-md5.c.
(libnettleinclude_HEADERS): Added hmac.h.

Rev: src/nettle/hmac-md5.c:1.2
parent 3eda2d42
......@@ -29,7 +29,7 @@ void
hmac_md5_set_key(struct hmac_md5_ctx *ctx,
unsigned key_length, const uint8_t *key)
{
HMAC_INIT(&hmac_md5_info, ctx, key_length, key);
HMAC_SET_KEY(ctx, &nettle_md5, key_length, key);
}
void
......@@ -43,5 +43,5 @@ void
hmac_md5_digest(struct hmac_md5_ctx *ctx,
unsigned length, uint8_t *digest)
{
HMAC_DIGEST(&hmac_md5_info, ctx, length, digest);
HMAC_DIGEST(ctx, &nettle_md5, length, digest);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment