s32k148 CSE ASE-CMAC

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

s32k148 CSE ASE-CMAC

Jump to solution
1,342 Views
Shivanand
Contributor II

Hello  Nxp community,

Im trying to use CSE module in s32k148 , i found an example project which is using RAM Key for encryption and Decryption using ASE ECB , so im trying to develop secure bootloader using ASE CMAC is the RTD version 32K1_RTD_2_0_0 compatible to use  CMAC beacuse i found the RTD incomplete. And also is there any example project to use CMAC?

0 Kudos
Reply
1 Solution
1,298 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @Shivanand 

 

I’m not aware of any other examples written in RTD 2.0.0 besides those found in this folder:

..\PlatformSDK_S32K1_S32M24\RTD\Crypto_TS_T40D2M20I0R0\examples\

 

If you want to use CMAC and NVM keys, just use following API:

Csec_Ip_LoadKey

Csec_Ip_GenerateMac

Csec_Ip_VerifyMac

Csec_Ip_GenerateMacAddrMode

Csec_Ip_VerifyMacAddrMode

 

Notice that Csec_Ip_LoadKey function requires the key in M1-M5 format.

 

You can take a look at this application note to see how to calculate M1-M5 values:

https://www.nxp.com/webapp/Download?colCode=AN5401&location=null

https://www.nxp.com/webapp/Download?colCode=AN5401SW&location=null

 

There’s also set of examples which can help to understand how CSEc works.

 

Regards,

Lukas

View solution in original post

0 Kudos
Reply
2 Replies
1,299 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @Shivanand 

 

I’m not aware of any other examples written in RTD 2.0.0 besides those found in this folder:

..\PlatformSDK_S32K1_S32M24\RTD\Crypto_TS_T40D2M20I0R0\examples\

 

If you want to use CMAC and NVM keys, just use following API:

Csec_Ip_LoadKey

Csec_Ip_GenerateMac

Csec_Ip_VerifyMac

Csec_Ip_GenerateMacAddrMode

Csec_Ip_VerifyMacAddrMode

 

Notice that Csec_Ip_LoadKey function requires the key in M1-M5 format.

 

You can take a look at this application note to see how to calculate M1-M5 values:

https://www.nxp.com/webapp/Download?colCode=AN5401&location=null

https://www.nxp.com/webapp/Download?colCode=AN5401SW&location=null

 

There’s also set of examples which can help to understand how CSEc works.

 

Regards,

Lukas

0 Kudos
Reply
1,189 Views
Shivanand
Contributor II

There’s also set of examples which can help to understand how CSEc works.

@lukaszadrapa  Can you help me find teh examples?

0 Kudos
Reply