Function nrfxlib_sys::nrf_cc3xx_platform_entropy_get [−][src]
pub unsafe extern "C" fn nrf_cc3xx_platform_entropy_get(
buffer: *mut u8,
length: size_t,
olen: *mut size_t
) -> c_int
Expand description
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 @ref nrf_cc3xx_platform_init was run prior to calling it.
buffer
- Pointer to buffer to hold the entropy data.length
- Length of the buffer to fill with entropy data.olen
- Pointer to variable that will hold the length of generated entropy.
Returns 0 on success Returns Any other error code returned from mbedtls_hardware_poll