secure secret provisioning (SSP) documentation error ?
Hi,
In both SSP documents:
1) AN5510 - Overview of the secure secret provisioning (SSP) on STM32MP1 Series
2) AN5054 - Secure programming using STM32CubeProgrammer
It is written that "SSP" & "HSM" tabs expect:
""" Encryption key and nonce files: The encryption key and nonce file can be selected by entering their paths (absolute or relative), or by selection with the Open button. Notice that sizes must be respected (16 bytes for the key and 12 bytes for nonce). """
But when I try to do this process ("SSP" tab, still waiting for STHSMv2 to arrive)
I get "Size of ssp_nonce.bin is expected to be 16 bytes"
both in GUI & in CLI modes -- latest tool version (2.10)
note1: when I provide a 16 byte nonce, it works
note2: There are a couple of locations in AN5510 where it is written that nonce is 16 bytes or 128 bit, the rest say it is 12 bytes.
Is this an error with the STM32 Trusted Package Creator tool or with the Documentation ??
Side question,
how does one create AES128GCM key + nonce ? can't find any help in google
currently I just use openssl command for aes128cbc key gen, and use the "IV" as nonce
Is this ok ?
Thanks,
Michael
