mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 10:47:28 +02:00
Merge pull request #2023 from miyazakh/fix_no_hash_raw
fix no_hash_raw for esp32 hw acceleration
This commit is contained in:
@ -1216,7 +1216,7 @@ static int Hmac_UpdateFinal(Hmac* hmac, byte* digest, const byte* in,
|
|||||||
byte dummy[WC_MAX_BLOCK_SIZE] = {0};
|
byte dummy[WC_MAX_BLOCK_SIZE] = {0};
|
||||||
int ret;
|
int ret;
|
||||||
word32 msgSz, blockSz, macSz, padSz, maxSz, realSz;
|
word32 msgSz, blockSz, macSz, padSz, maxSz, realSz;
|
||||||
word32 currSz, offset;
|
word32 currSz, offset = 0;
|
||||||
int msgBlocks, blocks, blockBits;
|
int msgBlocks, blocks, blockBits;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
@ -78,6 +78,9 @@ uint64_t wc_esp32elapsedTime();
|
|||||||
defined(WOLFSSL_SHA512)) && \
|
defined(WOLFSSL_SHA512)) && \
|
||||||
!defined(NO_WOLFSSL_ESP32WROOM32_CRYPT_HASH)
|
!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"
|
#include "rom/sha.h"
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
|
Reference in New Issue
Block a user