RSA usage examples

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

RSA usage examples

622 Views
niccolentini
Contributor I

I'm working on a s32k344 board and I'm trying to develop a digital signature verification routine that uses RSA. The aim is to import the RSA public key from outside and use it to verify the signature over a file loaded in flash.
Is there any example code that shows how to import RSA key and perform  RSA crypto operations?
Thanks

0 Kudos
Reply
2 Replies

600 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @niccolentini 

See please attached example. 

Environment:

S32K344 with HSE FW 0_2_40_0
S32DS 3.5
RTD 4.0.0 HF01
EB 29.0

Regards,

Lukas

0 Kudos
Reply

194 Views
Saimon
Contributor I

Good morning, I have a similar problem with K32L2B31VLH0A. I would like to validate a signature with 2048-byte RSA or with ECDS, which should require fewer resources for the same result. My problem is insufficient RAM, or at least that's what the NXP mbed TLS library returns. Are there any working examples on this microcontroller, or is 32 KB of RAM not enough? I have four products with this microcontroller and I need to understand if I need to replace the microcontroller or if there are possible solutions. What I need is to be able to validate a signed firmware upgrade.

0 Kudos
Reply