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