How to know if the MASTER_ECU key has been loaded

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

How to know if the MASTER_ECU key has been loaded

864 次查看
warai
Contributor II

I have this code that loads the MASTER_ECU key and flash keys every time the system boots. I don't want to do that. Is there a register where a status bit is set to let me check whether I have all the keys loaded already? Note that I don't erase the keys.

0 项奖励
3 回复数

690 次查看
nevozade
Contributor IV

Hello @lukaszadrapa ,

Is there any way to verify if the KEY_<n>s are using (have value) or empty by checking a register or smth else? (not for MASTER_ECU_KEY, I am asking for KEY_n such as CSE_KEY_4, CSE_KEY_5, .. etc.). I do not desire to learn the content, just want to know if it was loaded before, or not?

Regards,

Nevzat.

标记 (5)
0 项奖励

853 次查看
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

as per your description, it seems that you have the keys included in your application image, am I right? This is not common solution, it inserts significant security risk. Initial configuration of the CSE should be done in a factory, your keys shouldn't be stored in normal flash.

To answer your question - there's no such status bit. The only option I can see is to try to use a key and check if error "key empty" is returned. But as mentioned above, I wouldn't do that in this way.

Regards,

Lukas

0 项奖励

840 次查看
warai
Contributor II

Thanks Lukas!

I will separate the loading of keys to the actual decryption. I am actually using the CSE module to perform decryption of received image.

0 项奖励