esp_encrypted_img_decrypt_data() function
This function performs decryption on input data. This function must be called only if esp_encrypted_img_decrypt_start() returns successfully. This function must be called in a loop since input data might not contain whole binary at once. This function must be called till it return ESP_OK.
Arguments
ctx
esp_decrypt_handle_t handle
args
pointer to pre_enc_decrypt_arg_t
Return value
- ESP_FAIL On failure - ESP_ERR_INVALID_ARG Invalid arguments - ESP_ERR_NOT_FINISHED Decryption is in process - ESP_OK Success
Notes
args->data_out must be freed after use provided args->data_out_len is greater than 0