Skip to content

Commit a08b150

Browse files
Ron EldorRon Eldor
authored andcommitted
Explaining how to opt in modules
Add a section in the CC Readme file explaining how to enable the optional module.
1 parent cd4283e commit a08b150

File tree

1 file changed

+11
-1
lines changed
  • features/cryptocell/FEATURE_CRYPTOCELL310

1 file changed

+11
-1
lines changed

features/cryptocell/FEATURE_CRYPTOCELL310/Readme.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,14 @@ To port your CC 310 driver to Mbed OS on your specific target, do the following:
2525
1. Add your CC setup code:
2626
* Implement `crypto_platform_setup()` and `crypto_platform_terminate()` to enable CC on your platform, in case you have board-specific setup functionality, required for CC setup. You MUST call 'SaSi_LibInit()` and 'SaSi_LibFini()' respectively in these functions.
2727
* Define `crypto_platform_ctx` in `crypto_device_platform.h` in a way that suits your implementation.
28-
28+
29+
## Enabling optional alternative drivers
30+
31+
There are three additional modules that have alternative implementation support, which are not enabled by default.
32+
The reason is to allow backwards compatability, as these modules don't have full functionality, and return `MBEDTLS_ERR_PLATFORM_FEATURE_UNSUPPORTED` for some features.
33+
The modules are:
34+
* `AES` which only supports 128 bit key size, in opposed to previous suipport for all key sizes.
35+
* `CMAC` which only supports AES 128 bit key size, in opposed to previous supporting DES and all key sizes.
36+
* `SHA512` which only supports SHA512, in opposed to previously supporting SHA384 as well.
37+
38+
In order to enable these modules, you should define `MBEDTLS_AES_ALT`, `MBEDTLS_CMAC_ALT` and `MBEDTLS_SHA512_ALT` respectively, either in `mbed_app.json` or in your `MBEDTLS_USER_CONFIG_FILE` to have hardware accelerated module with reduced RAM size, on the expense of full functionality.

0 commit comments

Comments
 (0)