Support for detecting SILABS ERF32 Series 2 ECDSA support for P384/P521

This commit is contained in:
David Garske
2025-10-10 11:13:39 -07:00
parent 3534fad3ee
commit 91bf738025
2 changed files with 8 additions and 0 deletions

View File

@@ -943,6 +943,7 @@ _NETOS
_POSIX_C_SOURCE
_SDCC_VERSION_PATCHLEVEL
_SH3
_SILICON_LABS_32B_SERIES_3_CONFIG_301
_SILICON_LABS_SECURITY_FEATURE
_SOCKLEN_T
_SYS_DEVCON_LOCAL_H

View File

@@ -181,7 +181,14 @@ enum {
#elif defined(PLUTON_CRYPTO_ECC)
ECC_MAX_CRYPTO_HW_SIZE = 32,
#elif defined(WOLFSSL_SILABS_SE_ACCEL)
#if defined(_SILICON_LABS_SECURITY_FEATURE) && \
(_SILICON_LABS_SECURITY_FEATURE == \
_SILICON_LABS_SECURITY_FEATURE_VAULT) && \
!defined(_SILICON_LABS_32B_SERIES_3_CONFIG_301)
ECC_MAX_CRYPTO_HW_SIZE = 66, /* up to 521 bit curves */
#else
ECC_MAX_CRYPTO_HW_SIZE = 32,
#endif
#elif defined(WOLFSSL_CRYPTOCELL)
#ifndef CRYPTOCELL_KEY_SIZE
CRYPTOCELL_KEY_SIZE = ECC_MAXSIZE,