fix no_hash_raw for esp32 hw acceleration
This commit is contained in:
parent
656c7951cd
commit
bdc5dd41d1
@ -1216,7 +1216,7 @@ static int Hmac_UpdateFinal(Hmac* hmac, byte* digest, const byte* in,
|
||||
byte dummy[WC_MAX_BLOCK_SIZE] = {0};
|
||||
int ret;
|
||||
word32 msgSz, blockSz, macSz, padSz, maxSz, realSz;
|
||||
word32 currSz, offset;
|
||||
word32 currSz, offset = 0;
|
||||
int msgBlocks, blocks, blockBits;
|
||||
int i;
|
||||
|
||||
|
@ -78,6 +78,9 @@ uint64_t wc_esp32elapsedTime();
|
||||
defined(WOLFSSL_SHA512)) && \
|
||||
!defined(NO_WOLFSSL_ESP32WROOM32_CRYPT_HASH)
|
||||
|
||||
/* RAW hash function APIs are not implemented with esp32 hardware acceleration*/
|
||||
#define WOLFSSL_NO_HASH_RAW
|
||||
|
||||
#include "rom/sha.h"
|
||||
|
||||
typedef enum {
|
||||
|
Loading…
x
Reference in New Issue
Block a user