Commit Graph

5 Commits (b4d31ae8631f44aa138dc940918755bb670d7409)

Author SHA1 Message Date
Ron Eldor a1c5fcd9f7 Add a deinit function
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.
2019-07-24 15:23:46 +03:00
Ron Eldor f492ce8405 Handle CC context correct
Initiate the CC context in the starts function and in the reset.
In the reset function, free aes context before.
Free the context in the finish function and reset function.
2019-07-23 16:05:27 +03:00
Ron Eldor a5aac1e4b6 Fix functionality issues
FIx some functionality issues for better visibility:
1. Allocate the context only for 128 bit key
2. Change oreder of freeing the resources.
2019-07-08 18:12:47 +03:00
Ron Eldor f5956ce90b Style fixes
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.
2019-07-08 18:10:48 +03:00
Ron Eldor 641c518c4e Port the cryptocell 310 cmac driver
Add support for CC310 CMAC driver returning
`MBEDTLS_ERR_PLATFORM_FEATURE_UNSUPPORTED` for key size other than 128 bits,
and for crypto algorithms other than AES( e.g. DES).
2019-07-02 18:50:28 +03:00