Class Sha256
java.lang.Object
com.marksayson.deletionchecker.checksum.Sha256
SHA-256 digest, used for the dataset manifest's checksum.
The manifest is small and read once, so a cryptographic hash's per-byte cost does not matter,
and the manifest is the trust anchor pinning every entity-type file's expected CRC32C
(see Crc32c) — worth the stronger guarantee. It still provides corruption detection, not
artifact authenticity.
-
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]of(byte[] data) Returns the SHA-256 digest ofdata.
-
Method Details
-
of
public static byte[] of(byte[] data) Returns the SHA-256 digest ofdata.- Parameters:
data- the bytes to digest- Returns:
- the 32-byte digest
-