KMP utility functions for firmware hash calculation.
Convert byte array to lowercase hex string.
Calculate the MD5 hex digest of raw bytes — used to verify a download against a firmware manifest's md5.
md5
Calculate SHA-256 hash of raw bytes.