Update user key without knowing MasterKey

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

Update user key without knowing MasterKey

740 Views
RedOne
Contributor III

I see in all of functions that should change user keys by updating them or erasing them one parameter is mandatory - value of a MasterKey. My question is - is it possible to update userKey without using value of master key, only using a ID of the masterKey or somekind of pointer that goes to MasterKey in memory without exposing it in code?

If possible, could this be in Crypto mcal way?

Tags (4)
0 Kudos
3 Replies

704 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi Denis,

user key can be updated with a knowledge of MASTER_ECU_KEY or current KEY. But it is not necessary to expose the keys in flash / code. Typical approach is to calculate M1 - M5 values offline (using MASTER_ECU_KEY or current KEY) and then send the values M1-M5 somehow to the microcontroller.

Regards,

Lukas

0 Kudos

702 Views
RedOne
Contributor III

Is there an examples of this "somehow" method?

0 Kudos

693 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

When you are going to update the keys, such request usually comes from outside world - via CAN, LIN, UART... So, some master system should send M1-M5 values to the microcontroller. This is application dependent, I do not have such example.

Regards,

Lukas

0 Kudos