S32K3 HSE RSA import KEY for Sig verification

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

S32K3 HSE RSA import KEY for Sig verification

Jump to solution
2,923 Views
Mingming
Contributor I

hi,

 

I'm currently using the S32k3 Crypto Mcal to integrate SW for RSA2048 Sig verification, but the MCAL driver limitation cannot set the RSA key by keyElementSet API, so if there is any demo that can guide to configure it.

MCAL version: SW32K3_RTD_4.4_2.0.3

thanks a lot!

#S32k3

0 Kudos
Reply
1 Solution
2,827 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @Mingming 

Yes, that's correct. The MCAL driver does not support import of RSA keys.
An option is to call such HSE service via Crypto_43_HSE_KeyElementGet() function. See please section "ASR Extension services offered through 'Crypto_43_HSE_KeyElementGet' API" in the RTD_CRYPTO_43_HSE_UM.pdf.
This functionality provides an option to call any HSE service using MCAL function.

I found attached example where RSA keys are imported. This should help to understand how to set HSE descriptor.

Regards,
Lukas

View solution in original post

0 Kudos
Reply
2 Replies
2,828 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @Mingming 

Yes, that's correct. The MCAL driver does not support import of RSA keys.
An option is to call such HSE service via Crypto_43_HSE_KeyElementGet() function. See please section "ASR Extension services offered through 'Crypto_43_HSE_KeyElementGet' API" in the RTD_CRYPTO_43_HSE_UM.pdf.
This functionality provides an option to call any HSE service using MCAL function.

I found attached example where RSA keys are imported. This should help to understand how to set HSE descriptor.

Regards,
Lukas

0 Kudos
Reply
2,813 Views
Mingming
Contributor I

hi @lukaszadrapa ,

thanks a lot for your answer,

BR!

Mingming

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-1995284%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ES32K3%20HSE%20RSA%20import%20KEY%20for%20Sig%20verification%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1995284%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Ehi%2C%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EI'm%20currently%20using%20the%20S32k3%20Crypto%20Mcal%20to%20integrate%20SW%20for%20RSA2048%20Sig%20verification%2C%20but%20the%20MCAL%20driver%20limitation%20cannot%20set%20the%20RSA%20key%20by%20keyElementSet%20API%2C%20so%20if%20there%20is%20any%20demo%20that%20can%20guide%20to%20configure%20it.%3C%2FP%3E%3CP%3EMCAL%20version%3A%26nbsp%3BSW32K3_RTD_4.4_2.0.3%3C%2FP%3E%3CP%3Ethanks%20a%20lot!%3C%2FP%3E%3CP%3E%23S32k3%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1999817%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20S32K3%20HSE%20RSA%20import%20KEY%20for%20Sig%20verification%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1999817%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Ehi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F37795%22%20target%3D%22_blank%22%3E%40lukaszadrapa%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%3CP%3Ethanks%20a%20lot%20for%20your%20answer%2C%3C%2FP%3E%3CP%3EBR!%3C%2FP%3E%3CP%3EMingming%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1998947%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20S32K3%20HSE%20RSA%20import%20KEY%20for%20Sig%20verification%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1998947%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F239379%22%20target%3D%22_blank%22%3E%40Mingming%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYes%2C%20that's%20correct.%20The%20MCAL%20driver%20does%20not%20support%20import%20of%20RSA%20keys.%20%3CBR%20%2F%3EAn%20option%20is%20to%20call%20such%20HSE%20service%20via%20Crypto_43_HSE_KeyElementGet()%20function.%20See%20please%20section%20%22ASR%20Extension%20services%20offered%20through%20'Crypto_43_HSE_KeyElementGet'%20API%22%20in%20the%20RTD_CRYPTO_43_HSE_UM.pdf.%20%3CBR%20%2F%3EThis%20functionality%20provides%20an%20option%20to%20call%20any%20HSE%20service%20using%20MCAL%20function.%3C%2FP%3E%0A%3CP%3EI%20found%20attached%20example%20where%20RSA%20keys%20are%20imported.%20This%20should%20help%20to%20understand%20how%20to%20set%20HSE%20descriptor.%3C%2FP%3E%0A%3CP%3ERegards%2C%3CBR%20%2F%3ELukas%3C%2FP%3E%3C%2FLINGO-BODY%3E