Key Catalogs in S32K344

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

Key Catalogs in S32K344

1,379 Views
silvia_zandoli2
Contributor II

Hello, I'm doing a crypto test in Basic Secure Boot. I attach main.c file
At this point 
rsp = HSE_ECC_ComputeSecretAndSetAes(peerPubKey);
if (rsp != HSE_SRV_RSP_OK) while (1);

it goes into while (1) because rsp has error code 0x55A5A399 

Maybe the problem is how I am formatting key catalogs

Tags (2)
0 Kudos
Reply
2 Replies

1,279 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @silvia_zandoli2 

I can't see HSE_ECC_ComputeSecretAndSetAes function in your code. And such function is not present in the HSE framework. 

Regards,

Lukas

0 Kudos
Reply

1,154 Views
silvia_zandoli2
Contributor II

Hello, that function si defined by myself.
I report the definition. The code of the function is in the attached file. Thank you
The HSE_ECC_ComputeSecretAndSetAes function orchestrates the secure key exchange protocol. It first imports the external Peer Public Key into the HSE secure memory. Subsequently, it triggers the ECDH (Elliptic Curve Diffie-Hellman) algorithm to calculate a Shared Secret using the device's internal private key. Finally, it derives a usable 128-bit AES Session Key from this secret, which remains locked inside the HSE for secure data encryption and decryption.

 

0 Kudos
Reply