Utility functions for firmware hash calculation.
Convert byte array to hex string.
Calculate SHA-256 hash of a file as a byte array.