forked from wolfSSL/wolfssl
fix WOLFSSL_SHA_CTX for OpenSSL w/Espressif HW hash
This commit is contained in:
@@ -42,6 +42,8 @@ typedef struct WOLFSSL_SHA_CTX {
|
|||||||
#if defined(STM32_HASH)
|
#if defined(STM32_HASH)
|
||||||
void* holder[(112 + WC_ASYNC_DEV_SIZE + sizeof(STM32_HASH_Context)) /
|
void* holder[(112 + WC_ASYNC_DEV_SIZE + sizeof(STM32_HASH_Context)) /
|
||||||
sizeof(void*)];
|
sizeof(void*)];
|
||||||
|
#elif defined(WOLFSSL_ESPWROOM32) && !defined(NO_WOLFSSL_ESP32WROOM32_CRYPT_HASH)
|
||||||
|
void* holder[(112 + WC_ASYNC_DEV_SIZE + sizeof(WC_ESP32SHA)) / sizeof(void*)];
|
||||||
#elif defined(WOLFSSL_IMXRT1170_CAAM)
|
#elif defined(WOLFSSL_IMXRT1170_CAAM)
|
||||||
void* holder[(112 + WC_ASYNC_DEV_SIZE + sizeof(caam_hash_ctx_t) +
|
void* holder[(112 + WC_ASYNC_DEV_SIZE + sizeof(caam_hash_ctx_t) +
|
||||||
sizeof(caam_handle_t)) / sizeof(void*)];
|
sizeof(caam_handle_t)) / sizeof(void*)];
|
||||||
@@ -334,4 +336,3 @@ WOLFSSL_API int wolfSSL_SHA512_256_Transform(WOLFSSL_SHA512_CTX* sha512,
|
|||||||
|
|
||||||
|
|
||||||
#endif /* WOLFSSL_SHA_H_ */
|
#endif /* WOLFSSL_SHA_H_ */
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user