openthread_sys

Function otPlatCryptoAesEncrypt

Source
pub unsafe extern "C" fn otPlatCryptoAesEncrypt(
    aContext: *mut otCryptoContext,
    aInput: *const u8,
    aOutput: *mut u8,
) -> otError
Expand description

Encrypt the given data.

@param[in] aContext Context for AES operation. @param[in] aInput Pointer to the input buffer. @param[in] aOutput Pointer to the output buffer.

@retval OT_ERROR_NONE Successfully encrypted @p aInput. @retval OT_ERROR_FAILED Failed to encrypt @p aInput. @retval OT_ERROR_INVALID_ARGS @p aContext or @p aKey or @p aOutput were NULL