CC310 entropy driver¶
You can use the CC3xx entropy driver (entropy_cc310) to generate random data using the Arm CryptoCell CC310 hardware. This hardware is available on the nRF52840 and nRF9160 devices.
When used on nRF52840, the entropy_cc3xx driver gathers entropy by using the CC310 hardware through the nrf_cc3xx_platform library.
When used on nRF9160, the driver behavior depends on whether it is used in a secure or non-secure application:
When used on nRF5340, the driver behavior depends on whether it is used in a secure or non-secure application:
When used in a secure application, or when the Secure Partition Manager (SPM) is not used, the entropy_cc3xx driver gathers entropy by using the CC3xx hardware through the nrf_cc3xx_platform library.
When used in a non-secure application, the driver gathers entropy through the Secure Services library.
API documentation¶
<NCS>/zephyr/include/drivers/entropy.h
drivers/entropy_cc310/entropy_cc310.c
The entropy_cc3xx driver implements the Zephyr Entropy API.