diff --git a/crypto/hmac.c b/crypto/hmac.c index d5f9a603bbc..57e95e6f2b4 100644 --- a/crypto/hmac.c +++ b/crypto/hmac.c @@ -39,7 +39,7 @@ * Public Functions ****************************************************************************/ -void hmca_md5_init(FAR HMAC_MD5_CTX *ctx, +void hmac_md5_init(FAR HMAC_MD5_CTX *ctx, FAR const uint8_t *key, u_int key_len) { @@ -141,7 +141,7 @@ void hmac_sha1_update(FAR HMAC_SHA1_CTX *ctx, sha1update(&ctx->ctx, data, len); } -void hmca_sha1_final(FAR uint8_t *digest, FAR HMAC_SHA1_CTX *ctx) +void hmac_sha1_final(FAR uint8_t *digest, FAR HMAC_SHA1_CTX *ctx) { uint8_t k_opad[SHA1_BLOCK_LENGTH]; int i; diff --git a/include/crypto/hmac.h b/include/crypto/hmac.h index 517516c6cc7..4a6d8b9aeca 100644 --- a/include/crypto/hmac.h +++ b/include/crypto/hmac.h @@ -26,6 +26,9 @@ ****************************************************************************/ #include +#include +#include +#include typedef struct _HMAC_MD5_CTX {