SHE-key update protocol

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

SHE-key update protocol

ソリューションへジャンプ
7,164件の閲覧回数
ale_di_vi
Contributor I

Hi,

I have a question regarding SHE-key update protocol. I'm using a tool to calculate M1,M2,M3,M4,M5 format of key to be stored in the corresponding SHE slot, by providing the needed input (keyID, unitID, counter, usageflags, AuthID, KEY_AuthID). Given the fact that the MASTER_ECU_KEY is used as authentication key to update all the other SHE-keys, what should be the AuthID and KEY_AuthID value to be provided as input in order to calculate the MASTER_ECU_KEY in M1,...,M5 format?

Seeing the AN5401, it seems that KEY_AuthID shall be all 1's, is it correct? What about AuthID?

0 件の賞賛
返信
1 解決策
7,099件の閲覧回数
lukaszadrapa
NXP TechSupport
NXP TechSupport

I was talking in general, that was just an example. If such attribute is not available for a key, keep value of the attribute as zero.

Regards,

Lukas

元の投稿で解決策を見る

0 件の賞賛
返信
6 返答(返信)
7,136件の閲覧回数
ale_di_vi
Contributor I

Thank you for your response @lukaszadrapa.

Just one more question: what about the attribute_flags? Should I decide the value and the '0' in your screen is just an example or should it be always set to '0'?

0 件の賞賛
返信
7,130件の閲覧回数
lukaszadrapa
NXP TechSupport
NXP TechSupport

The attribute flags should be set as you need.

lukaszadrapa_0-1690282122724.png

For example, if you want to set KEY_USAGE to 1 (that means the key will be used for CMAC generation/verification), the value should be 0b000100 (WRITE_PROT is MSB, VERIFY_ONLY is LSB).

Regards,

Lukas

 

0 件の賞賛
返信
7,118件の閲覧回数
ale_di_vi
Contributor I

Ok, but from Table 1 of AN5401 I also see that the key usage attribute cannot be defined for the MASTER_ECU_KEY and the BOOT_MAC_KEY, as well as the boot protection attribute for the BOOT_MAC_KEY.

ale_di_vi_0-1690289073109.png

So, what value should I put in calculate_M1_to_M5 for these unavailable attributes?

0 件の賞賛
返信
7,100件の閲覧回数
lukaszadrapa
NXP TechSupport
NXP TechSupport

I was talking in general, that was just an example. If such attribute is not available for a key, keep value of the attribute as zero.

Regards,

Lukas

0 件の賞賛
返信
7,090件の閲覧回数
ale_di_vi
Contributor I

Ok, it's all clear now. Thank you

0 件の賞賛
返信
7,142件の閲覧回数
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @ale_di_vi 

I made this compilation from AN5401 which should answer it:

lukaszadrapa_0-1690273356054.png

 

Regards,

Lukas

0 件の賞賛
返信