fix no_hash_raw for esp32 hw acceleration

This commit is contained in:
Hideki Miyazaki 2019-01-09 16:56:47 +09:00
parent 656c7951cd
commit bdc5dd41d1
2 changed files with 4 additions and 1 deletions
src
wolfssl/wolfcrypt/port/Espressif

@ -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 {