From 83dd57a488cedf7d185f0018efd3345fe5c552c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niccol=C3=B2=20Maggioni?= Date: Mon, 11 Aug 2025 14:20:56 +0200 Subject: [PATCH] crypto/hmac: Fix typo in function implementation names MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit "hmac" was mistyped as "hmca", breaking linking to some prototype functions. Also, a couple of includes were missing. Signed-off-by: Niccolò Maggioni --- crypto/hmac.c | 4 ++-- include/crypto/hmac.h | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) 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 {