Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Port the cryptocell 310 cmac driver #10947
Add support for CC310 CMAC driver returning
Pull request type
This is a target update, adding hw accelerated CMAC, however, it can also be considered as a breaking change, as it removes support for key sizes other than 128 bit keys, and removes support for DES CMAC.
Fix minor style fixes and typos: 1. Change file name to correct one. 2. Change copyright year. 3. Insert whitespaces before and after paranthesis. 4. Put `*` next to pointer name.
FIx some functionality issues for better visibility: 1. Allocate the context only for 128 bit key 2. Change oreder of freeing the resources.
Add a deinit function that will be called and check inside whether context is initialized. This function is called for freeing the CC context, instead of every time check that it's initizliaed and free it.
I have run the cmac on target test