I just published a port of bsdiff/bspatch as a reusable component for esp-idf - we are using it in a project for compressed ota firmware deltas and I thought people may be interested in reusing it: https://github.com/Blockstream/esp32_bsdiff
I got inspired by detools which was ported in this project https://github.com/ESP32-Musings/esp32_compressed_delta_ota_update
The changes to bsdiff and bspatch are the following:
- no bz2, compression is handled out of bound (we use [tinfl_decompress from miniz in the ROM](https://github.com/espressif/esp-idf/blob/master/components/esp_ro