How to read CSEc keys

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

How to read CSEc keys

ソリューションへジャンプ
3,508件の閲覧回数
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 解決策
3,492件の閲覧回数
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 返答(返信)
3,493件の閲覧回数
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 件の賞賛
返信
3,480件の閲覧回数
xiongsl
Contributor I

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

0 件の賞賛
返信
3,464件の閲覧回数
lukaszadrapa
NXP TechSupport
NXP TechSupport

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

0 件の賞賛
返信
3,458件の閲覧回数
xiongsl
Contributor I

Okay, thanks for the answer.

0 件の賞賛
返信
3,482件の閲覧回数
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 件の賞賛
返信