calculateSha256Bytes

Calculate SHA-256 hash of a file as a byte array.

Return

32-byte SHA-256 hash

Parameters

file

Firmware file to hash