How to read CSEc keys

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

How to read CSEc keys

跳至解决方案
1,129 次查看
xiongsl
Contributor I

Hello,

My software needs to support RSA2048, but the SDK doesn't support it yet.

If the key is stored to CSEc, how can I read the key so that the software can complete the digital signature?

Key length is 256 bytes.

0 项奖励
回复
1 解答
1,113 次查看
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @xiongsl 
SDK won't support RSA2048 because there's no such hardware feature on CSEc.
And there's no way to store such key to the CSEc. Nonvolatile keys can't be exported from CSEc. This would violate SHE specification. Only RAM key can be exported if plain key attribute is cleared.
So, the only option I can see in case of S32K1 device is to emulate this function by software (like wolfssl) and store the key in normal flash.
Regards,
Lukas

在原帖中查看解决方案

0 项奖励
回复
5 回复数
1,114 次查看
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @xiongsl 
SDK won't support RSA2048 because there's no such hardware feature on CSEc.
And there's no way to store such key to the CSEc. Nonvolatile keys can't be exported from CSEc. This would violate SHE specification. Only RAM key can be exported if plain key attribute is cleared.
So, the only option I can see in case of S32K1 device is to emulate this function by software (like wolfssl) and store the key in normal flash.
Regards,
Lukas

0 项奖励
回复
1,101 次查看
xiongsl
Contributor I

Can the attributes of KEY_01~KEY_17 be cleared and changed to something like RAM_KEY?

0 项奖励
回复
1,085 次查看
lukaszadrapa
NXP TechSupport
NXP TechSupport

No, such changes can't be done in CSEc.

0 项奖励
回复
1,079 次查看
xiongsl
Contributor I

Okay, thanks for the answer.

0 项奖励
回复
1,103 次查看
xiongsl
Contributor I

Hi @lukaszadrapa 

In other words, only the 16-byte key of RAM_KEY supports reading. KEY_01~KEY_17 does not support reading, so the RSA2048 key can only be stored in FLASH or EEPROM.
Regards,
xiongsl

0 项奖励
回复