The STM32U5 does not support DES3 or AES 192-bit (only 128/256 bit)

This commit is contained in:
David Garske
2022-06-09 13:22:22 -07:00
committed by Daniele Lacamera
parent 502cbc3847
commit ad3f7e1de2
4 changed files with 6 additions and 3 deletions

View File

@ -142,7 +142,7 @@
/* Hardware Acceleration */
#if defined(STM32_CRYPTO)
#if defined(STM32_CRYPTO) && !defined(STM32_CRYPTO_AES_ONLY)
/*
* STM32F2/F4 hardware DES/3DES support through the standard

View File

@ -79,6 +79,9 @@ enum {
#if defined(STM32_CRYPTO)
#include <wolfssl/wolfcrypt/port/st/stm32.h>
enum {
DES_CBC = 0,
DES_ECB = 1

View File

@ -111,7 +111,7 @@ int wc_Stm32_Hash_Final(STM32_HASH_Context* stmCtx, word32 algo,
#endif
#if defined(WOLFSSL_STM32L4) || defined(WOLFSSL_STM32L5) || \
defined(WOLFSSL_STM32U5)
#ifdef WOLFSSL_STM32L4
#if defined(WOLFSSL_STM32L4) || defined(WOLFSSL_STM32U5)
#define STM32_CRYPTO_AES_ONLY /* crypto engine only supports AES */
#endif
#define CRYP AES

View File

@ -1342,7 +1342,7 @@ extern void uITRON4_free(void *p) ;
#define STM32_CRYPTO
#if defined(WOLFSSL_STM32L4) || defined(WOLFSSL_STM32L5) || \
defined(WOLFSSL_STM32WB)
defined(WOLFSSL_STM32WB) || defined(WOLFSSL_STM32U5)
#define NO_AES_192 /* hardware does not support 192-bit */
#endif
#endif