Converts an array to a printable string. This function is useful for printing SHA-256 digest.
{c}
// Example of using. image_hash will be printed
#define HASH_LEN 32 // SHA-256 digest length
...
char hash_print[HASH_LEN * 2 + 1];
hash_print[HASH_LEN * 2] = 0;
bootloader_sha256_hex_to_str(hash_print, image_hash, HASH_LEN);
ESP_LOGI(TAG, %s", hash_print);