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:
parent
6f38806a5d
commit
83dd57a488
2 changed files with 5 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -26,6 +26,9 @@
|
|||
****************************************************************************/
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <crypto/md5.h>
|
||||
#include <crypto/sha1.h>
|
||||
#include <crypto/sha2.h>
|
||||
|
||||
typedef struct _HMAC_MD5_CTX
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue