mirror of
https://github.com/apache/nuttx.git
synced 2025-12-11 21:20:26 +08:00
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:
committed by
Xiang Xiao
parent
6f38806a5d
commit
83dd57a488
@@ -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;
|
||||||
|
|||||||
@@ -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
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user