From 1a69fb943053ba460cc11e43bd71cf728934d1f1 Mon Sep 17 00:00:00 2001 From: David Garske Date: Tue, 7 Nov 2017 09:10:12 -0800 Subject: [PATCH] Fix accidental removal of wc_Sha hashHandle for STM32 w/CubeMX. This was removed during merge of 6707be2 on 10/11/17. Thanks `liubing` for the report. --- wolfssl/wolfcrypt/sha.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wolfssl/wolfcrypt/sha.h b/wolfssl/wolfcrypt/sha.h index 0831e056b..97ce2e63c 100644 --- a/wolfssl/wolfcrypt/sha.h +++ b/wolfssl/wolfcrypt/sha.h @@ -91,6 +91,9 @@ typedef struct wc_Sha { #ifdef WOLFSSL_PIC32MZ_HASH hashUpdCache cache; /* cache for updates */ #endif + #if defined(STM32_HASH) && defined(WOLFSSL_STM32_CUBEMX) + HASH_HandleTypeDef hashHandle; + #endif #ifdef WOLFSSL_ASYNC_CRYPT WC_ASYNC_DEV asyncDev; #endif /* WOLFSSL_ASYNC_CRYPT */