forked from wolfSSL/wolfssl
Merge pull request #8705 from dgarske/stm32_hash
Fix for STM32 Hash with IRQ enabled
This commit is contained in:
@ -164,8 +164,9 @@ static void wc_Stm32_Hash_RestoreContext(STM32_HASH_Context* ctx, int algo)
|
|||||||
/* init content */
|
/* init content */
|
||||||
|
|
||||||
#if defined(HASH_IMR_DINIE) && defined(HASH_IMR_DCIE)
|
#if defined(HASH_IMR_DINIE) && defined(HASH_IMR_DCIE)
|
||||||
/* enable IRQ's */
|
/* Disable IRQ's - wolfSSL does not use the HASH/RNG IRQ
|
||||||
HASH->IMR |= (HASH_IMR_DINIE | HASH_IMR_DCIE);
|
* If using the HAL hashing API's directly it will re-enable the IRQs */
|
||||||
|
HASH->IMR &= ~(HASH_IMR_DINIE | HASH_IMR_DCIE);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* reset the control register */
|
/* reset the control register */
|
||||||
|
Reference in New Issue
Block a user