[Security] Get UID when load keys

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

[Security] Get UID when load keys

ソリューションへジャンプ
334件の閲覧回数
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 解決策
313件の閲覧回数
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @Gideon 

I guess that this is the problem:

lukaszadrapa_0-1716372932058.png

Regards,

Lukas

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
314件の閲覧回数
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @Gideon 

I guess that this is the problem:

lukaszadrapa_0-1716372932058.png

Regards,

Lukas

0 件の賞賛
返信