package loader import "crypto/sha256" // SumSHA256 calculates SHA-256 for the provided byte slice and returns // the raw 32-byte digest as a fixed-size array. func SumSHA256(data []byte) [32]byte { return sha256.Sum256(data) } // EqualSHA256 returns true when both SHA-256 digests are identical. func EqualSHA256(a, b [32]byte) bool { return a == b }