[Security] Get UID when load keys

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

[Security] Get UID when load keys

跳至解决方案
382 次查看
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 项奖励
回复
1 解答
361 次查看
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @Gideon 

I guess that this is the problem:

lukaszadrapa_0-1716372932058.png

Regards,

Lukas

在原帖中查看解决方案

0 项奖励
回复
1 回复
362 次查看
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @Gideon 

I guess that this is the problem:

lukaszadrapa_0-1716372932058.png

Regards,

Lukas

0 项奖励
回复