[Security] Get UID when load keys

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

[Security] Get UID when load keys

Jump to solution
332 Views
Gideon
Contributor III

Dear NXPs:

IC:S32K146

sample:csec_keyconfig_s32k146 in SDK S32DS

Phenomenon:
/* Extracts the UID. */
bool getUID(uint8_t *uid) When I use this function, I step into the inside of the function and when calling
When stat = CSEC_DRV_GetID(challenge, uid, &sreg, mac);, the returned mac values are all 0, but the uid is correct. Since the mac values are all 0, execute the statement stat = CSEC_DRV_VerifyMAC(CSEC_RAM_KEY, verif, 256U, mac , 128U, &verifStatus, 1U);, the verifStatus value is false.
question:
Although the return value of bool getUID(uint8_t *uid) is false, it does not affect subsequent load key processing, but I would like to know why the CSEC_DRV_GetID(challenge, uid, &sreg, mac) interface, mac is all 0?
0 Kudos
Reply
1 Solution
311 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @Gideon 

I guess that this is the problem:

lukaszadrapa_0-1716372932058.png

Regards,

Lukas

View solution in original post

0 Kudos
Reply
1 Reply
312 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @Gideon 

I guess that this is the problem:

lukaszadrapa_0-1716372932058.png

Regards,

Lukas

0 Kudos
Reply