Function openthread_sys::otPlatCryptoAesInit

source ยท
pub unsafe extern "C" fn otPlatCryptoAesInit(
    aContext: *mut otCryptoContext,
) -> otError
Expand description

Initialise the AES operation.

@param[in] aContext Context for AES operation.

@retval OT_ERROR_NONE Successfully Initialised AES operation. @retval OT_ERROR_FAILED Failed to Initialise AES operation. @retval OT_ERROR_INVALID_ARGS @p aContext was NULL @retval OT_ERROR_NO_BUFS Cannot allocate the context.

@note The platform driver shall point the context to the correct object such as psa_key_id or mbedtls_aes_context_t.