nrfxlib API 3.3.99
Loading...
Searching...
No Matches

◆ nrf_cc3xx_platform_entropy_get()

int nrf_cc3xx_platform_entropy_get ( uint8_t * buffer,
size_t length,
size_t * olen )

#include <crypto/nrf_cc310_platform/include/nrf_cc3xx_platform_entropy.h>

Function to generate entropy using Arm CryptoCell cc3xx.

This API corresponds to mbedtls_hardware_poll. It provides TRNG using the Arm CryptoCell cc3xx hardware accelerator.

Note
This API is only usable if nrf_cc3xx_platform initialization APIs was run prior to calling it.
Parameters
[out]bufferPointer to buffer to hold the entropy data.
[in]lengthLength of the buffer to fill with entropy data.
[out]olenPointer to variable that will hold the length of generated entropy.
Return values
0on success
Returns
Any other error code returned from mbedtls_hardware_poll