Fix for STM32 AES only (L4) AES Decrypt Direct (ECB).

This commit is contained in:
David Garske
2020-05-20 11:23:14 -07:00
parent de4d2e6436
commit 363b9528af

View File

@ -392,7 +392,7 @@
return ret;
#ifdef STM32_CRYPTO_AES_ONLY
hcryp.Init.OperatingMode = CRYP_ALGOMODE_DECRYPT;
hcryp.Init.OperatingMode = CRYP_ALGOMODE_KEYDERIVATION_DECRYPT;
hcryp.Init.ChainingMode = CRYP_CHAINMODE_AES_ECB;
hcryp.Init.KeyWriteFlag = CRYP_KEY_WRITE_ENABLE;
#elif defined(STM32_HAL_V2)