Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for STM32G4 #7997

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Support for STM32G4 #7997

wants to merge 2 commits into from

Conversation

dgarske
Copy link
Contributor

@dgarske dgarske commented Sep 19, 2024

Description

Support for STM32G4. ZD 18675

Synchronized the examples/configs/user_settings_stm32.h file with the IDE/STM32Cube/default_conf.ftl.

@lealem47 : For next pack release added the following new options:

  • WOLF_CONF_IO: Network stack: 1=User IO (custom), 2=LWIP (posix), 3=LWIP (native
  • WOLF_CONF_RESUMPTION: 0=No session cache, 1=Session cache / Session Tickets
  • WOLF_CONF_TPM: Enable TPM support (Crypto Callbacks, Public MP and AES CFB)
  • WOLF_CONF_PK: TLS Key Callbacks
  • WOLF_CONF_AESGCM: AES GCM (1=GCM_SMALL, 2=GCM_TABLE_4BIT

Testing

Built successfully in STM32CubeIDE for STM32G491xx, but do not have hardware to test on.
Tested build with RTC, RNG, LPUART1 and ARM ASM.

Checklist

  • added tests
  • updated/added doxygen
  • updated appropriate READMEs
  • Updated manual and documentation

@dgarske dgarske self-assigned this Sep 19, 2024
/* GCM Method: GCM_SMALL, GCM_WORD32, GCM_TABLE or GCM_TABLE_4BIT */
/* GCM_TABLE is about 4K larger and 3x faster for GHASH */
#define GCM_SMALL
#define HAVE_AES_DECRYPT
#if WOLF_CONF_AESGCM == 2
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This won't be hit since WOLF_CONF_AESGCM == 1 was checked above

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants