forked from wolfSSL/wolfssl
Fix for KCAPI HMAC forcing use of software for HKDF.
This commit is contained in:
@ -57,6 +57,7 @@
|
|||||||
#ifdef WOLFSSL_KCAPI_HMAC
|
#ifdef WOLFSSL_KCAPI_HMAC
|
||||||
#include <wolfssl/wolfcrypt/port/kcapi/kcapi_hmac.h>
|
#include <wolfssl/wolfcrypt/port/kcapi/kcapi_hmac.h>
|
||||||
|
|
||||||
|
/* map the _Software calls used by kcapi_hmac.c */
|
||||||
#define wc_HmacSetKey wc_HmacSetKey_Software
|
#define wc_HmacSetKey wc_HmacSetKey_Software
|
||||||
#define wc_HmacUpdate wc_HmacUpdate_Software
|
#define wc_HmacUpdate wc_HmacUpdate_Software
|
||||||
#define wc_HmacFinal wc_HmacFinal_Software
|
#define wc_HmacFinal wc_HmacFinal_Software
|
||||||
@ -994,6 +995,11 @@ int wc_HmacFinal(Hmac* hmac, byte* hash)
|
|||||||
#ifdef WOLFSSL_KCAPI_HMAC
|
#ifdef WOLFSSL_KCAPI_HMAC
|
||||||
/* implemented in wolfcrypt/src/port/kcapi/kcapi_hmac.c */
|
/* implemented in wolfcrypt/src/port/kcapi/kcapi_hmac.c */
|
||||||
|
|
||||||
|
/* unmap the _Software calls used by kcapi_hmac.c */
|
||||||
|
#undef wc_HmacSetKey
|
||||||
|
#undef wc_HmacUpdate
|
||||||
|
#undef wc_HmacFinal
|
||||||
|
|
||||||
#else
|
#else
|
||||||
/* Initialize Hmac for use with async device */
|
/* Initialize Hmac for use with async device */
|
||||||
int wc_HmacInit(Hmac* hmac, void* heap, int devId)
|
int wc_HmacInit(Hmac* hmac, void* heap, int devId)
|
||||||
|
Reference in New Issue
Block a user