S32K CSEC M1 to M3

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

S32K CSEC M1 to M3

2,618 次查看
wanglijun
Contributor II

Hello,

When calculating the M1 to M3, there is a parameter "key updated counter".

If the key update counter is wrong, can the key be loaded successfully?

0 项奖励
回复
5 回复数

2,607 次查看
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

the answer is no. This behavior is required by SHE specification, it adds protection against replay attacks.

Regards,

Lukas

 

0 项奖励
回复

2,602 次查看
wanglijun
Contributor II
Hello, Do you mean the input parameter key update counter must be equal to the actual key updated counter, if the 2 value is not equal, the key update not successfully, right?
0 项奖励
回复

2,597 次查看
lukaszadrapa
NXP TechSupport
NXP TechSupport

No, new counter needs to be incremented (+1). Initial value of the counter is 0 (this is given by SHE, considering new device or device reset to factory state). When you are going to load the key first time, you use counter = 1. When you are going to update the key second time, use counter = 2 and so on. If you do not follow this rule, the key won't be updated.

Regards,

Lukas

 

0 项奖励
回复

2,594 次查看
wanglijun
Contributor II
Hello, Thank you for the reply. Can you share that how to prevent replay attach by the counter? Thank you!
0 项奖励
回复

2,589 次查看
lukaszadrapa
NXP TechSupport
NXP TechSupport

There's nothing to share, implementation of the counter itself is the protection.

Regards,

Lukas

 

0 项奖励
回复