pub fn verify_sha256(file: &Path, expected: &str) -> Result<()>Expand description
Verifies the SHA-256 checksum of file against expected.
expected must be a lowercase hex string without any prefix.
ยงErrors
Returns an error if the file cannot be read or the checksum does not match.