cancel
Showing results for 
Search instead for 
Did you mean: 

AES in CTR Mode: IV not saved to IOC file

zeboss49
Associate III

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

 

1 REPLY 1
zeboss49
Associate III

Hello,

thanks for the change :)
You're right, the previous title was a rubbish.