2025-12-20 1:12 AM - last edited on 2025-12-20 1:28 AM by Andrew Neil
Hello,
I'm facing an issue in CubeMX with the AES IV in CTR Mode
The IV is not saved in the IOC file and is discarded from the generated code, replaced with a full 0 value.
The AES content inside the IOC file:
AES.Algorithm=CRYP_AES_CTR
AES.DataType=CRYP_DATATYPE_8B
AES.DataWidthUnit=CRYP_DATAWIDTHUNIT_BYTE
AES.IPParameters=KeySize,DataType,DataWidthUnit,pKey,Algorithm
AES.KeySize=CRYP_KEYSIZE_256B
AES.pKey=-------- -------- -------- -------- -------- -------- -------- --------
MCU: STM32F423VHT
CubeMX: Latest version 6.16.1
AES Settings
Algorithm
Data encryption type AES CTR
Parameters
Data type 8b(byte swapping)
KeySize 256b
Encryption/Decryption key -------- -------- -------- -------- -------- -------- -------- --------
Initialization vector E467824C 805348FF 4CE1DF70 566ED4A9
Data width unit Byte
Key and IV configuration skip Always
2025-12-20 3:53 AM
Hello,
thanks for the change :)
You're right, the previous title was a rubbish.