STM32 MCUs Security

Ask questions and find answers on STM32 security frameworks and tools, including cryptographic libraries, TrustZone, and the Secure Manager.

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

How to calc CRC16 for Modbus?

My controller is STM32L462. I need to compute CRC16 for Modbus application. There is CRC initialization function:void MX_CRC_Init_CRC16(void) { hcrc.Instance = CRC; hcrc.Init.DefaultPolynomialUse = DEFAULT_POLYNOMIAL_DISABLE; hcrc.Init.DefaultI...

sdianoff by Associate II
  • 3963 Views
  • 2 replies
  • 0 kudos

Resolved! core locked up and read out fails

Hi,My STM32H735G-DK is having issues.When I try to flash a known good firmware, I get the following:command: STM32_Programmer_CLI -c port=SWD freq=4000 mode=UR --erase all -d build/stm32h735.bin 0x08000000 -v --start 0x08000000-----------------------...

Arno1 by Senior
  • 4617 Views
  • 6 replies
  • 2 kudos

Setting AES128-CMAC and STM32G0 on CubeIde

Hi,Im looking for encryp using internal AES peripheral that the STM32G0 has.I need touse "AES128-CMAC" but i dont found the option in HAL libraries to set "hcryp.Init.Algorithm=XXX" and "defgroup CRYP_Algorithm_Mode CRYP Algorithm Mode" library optio...

Dosan by Associate III
  • 803 Views
  • 0 replies
  • 0 kudos

Custom header in SBSFU

Hello,  Is it possible to custom the header of a firmware for SBSFU ? I want to add 2 variables but it's not working. I have authentification failure. But I don't change the size and position in the structure because I used the "reserved" bytes. (the...

Esaab.1 by Associate
  • 837 Views
  • 0 replies
  • 0 kudos

Question on Trust Zone performances

Hi, I’m working on a STM32L552ZEQ.My goal is to generate a pair of RSA keys of 2048 bits using the Trust Zone.Before start using the Trust Zone, I wrote the code to generate the RSA key pair (of 2048 bits) without the Trust Zone, and the average time...

Bad parameters error for AES CBC encryption

I'm using cmox_ecdh for generating shared key for STM32G431KBT6. I tried using single call API from AES_CBC_EncryptDecrypt example and provided Computed_Secret instead of Key in cmox_cipher_encrypt function but I get bad parameters error. I dWith the...

mickey by Associate II
  • 727 Views
  • 0 replies
  • 0 kudos