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
| Parameter | Description |
|---|---|
| [in] p_iv | Pointer to the 16 bytes IV value. |
| [in] p_key | Pointer to the 16 bytes encryption key. |
Return values
| Return value | Description |
|---|---|
| MBA_RES_SUCCESS | Successfully set IV value and Key. |
| MBA_RES_BAD_STATE | Failure because the BLE OTA is in progress. |
