Hi team, good day.
Can I get AES-128 CMAC sample code for encryption and decryption for RA6M1 controller.
Thanks in advance
Thanks for reaching out Renesas Engineering Community.
If you will check the block diagram for the RA6E1 you will see that in AES-128 is not included into security for this MCU.
The only examples and application notes that I can provide for you is for RA6M3 and RA6M4 MCUs. For which:
Here are the application notes for RA6M3 and RA6M4 we have available:
App Note: https://www.renesas.com/us/en/document/apn/injecting-plaintext-user-keys-application-project
Sample Code: https://github.com/renesas/ra-fsp-examples/tree/master/application_projects/r11an0473
Maybe and this app note will seem useful to you:
I guess you are mistaken. I am looking for RA6M1 and it supports AES.
Yes, I am sorry you mentioned RA6M1 not RA6E1. In this case you could take a look on the app notes I shared with you for RA6M4 AND RA6M3.
I have already gone through the above mentioned links. It does not explains from scratch. Can I get any simple example to understand each and every functions that are responsible for cryptography.
Please let me provide you also the documentation of the SCE module in FSP which is providing driver for the Secure Crypto Engine on the RA MCUs . Here you will find information for the different functions provided from the module and the different encryptions supported from this module and some basic example codes.
Also I would suggest you to take a look on this application note, which has an overview of the Secure Crypto Engine on the RA MCUs:
And this example is better suited for RA6M1:
Renesas RA Family Establishing and Protecting Device Identity using SCE7 and FAW - Sample Code
Hope it helps.
Thanks for the response. Could you please help me on how to print generated MAC on teraterm or RTT viewer. And how to generate message authentication code of different length for example MAC of 40 bits.