BLE_OTAPS_SetEncrytionInfo

C

uint16_t BLE_OTAPS_SetEncrytionInfo(uint8_t * p_iv, uint8_t * p_key);

Description

Set IV value and encryption key of AES-CBC for OTA DFU new image decryption.

Application must call this API before starting BLE OTA procedure if image is encrpyted.

Parameters

ParameterDescription
[in] p_ivPointer to the 16 bytes IV value.
[in] p_keyPointer to the 16 bytes encryption key.

Return values

Return valueDescription
MBA_RES_SUCCESSSuccessfully set IV value and Key.
MBA_RES_BAD_STATEFailure because the BLE OTA is in progress.