CSECc_MCAL

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

CSECc_MCAL

1,362 Views
严雷
Contributor I

In the development of S32K information security MCAL, I encountered two parameters of CrytoKeyElementFormat, CRYPTO_KE_FORMAT_BIN_OCTET and CRYPTO_KE_FORMAT_BIN_SHEKEYS, and wanted to ask what is the difference between them. 

屏幕截图 2023-06-11 105058.jpg

0 Kudos
Reply
1 Reply

1,267 Views
DanNguyenDuy
NXP Employee
NXP Employee

Hi @严雷 ,

This is my answer:

- CRYPTO_KE_FORMAT_BIN_OCTET: format for keys have octal number format - 0x (mostly in use).
For example:
static uint8 aKeyPlain[32] =
{
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x01, 0x03, 0x53, 0x48, 0x45, 0x00, 0x80, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xb0,
};
- CRYPTO_KE_FORMAT_BIN_SHEKEYS: format for keys have SHE key format (least of use).

Best regards,

Dan

0 Kudos
Reply