crypto/hmac: Fix typo in function implementation names

"hmac" was mistyped as "hmca", breaking linking to some prototype
functions. Also, a couple of includes were missing.

Signed-off-by: Niccolò Maggioni <nicco.maggioni+nuttx@gmail.com>
This commit is contained in:
Niccolò Maggioni
2025-08-11 14:20:56 +02:00
committed by Xiang Xiao
parent 6f38806a5d
commit 83dd57a488
2 changed files with 5 additions and 2 deletions

View File

@@ -39,7 +39,7 @@
* Public Functions * 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, FAR const uint8_t *key,
u_int key_len) u_int key_len)
{ {
@@ -141,7 +141,7 @@ void hmac_sha1_update(FAR HMAC_SHA1_CTX *ctx,
sha1update(&ctx->ctx, data, len); 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]; uint8_t k_opad[SHA1_BLOCK_LENGTH];
int i; int i;

View File

@@ -26,6 +26,9 @@
****************************************************************************/ ****************************************************************************/
#include <sys/types.h> #include <sys/types.h>
#include <crypto/md5.h>
#include <crypto/sha1.h>
#include <crypto/sha2.h>
typedef struct _HMAC_MD5_CTX typedef struct _HMAC_MD5_CTX
{ {