Documentation
¶
Overview ¶
Package sha256sum implements the sha256sum builtin command.
sha256sum computes SHA-256 digests for regular files or standard input and verifies GNU-style or tagged SHA256 checksum manifests. File contents are streamed through a fixed-size buffer. Manifest line length, total manifest bytes, entry count, and operand count are bounded.
Accepted flags:
-c, --check read SHA-256 sums from files or standard input and verify them
--quiet do not print OK for successfully verified files
--status do not print per-file verification results
-h, --help print usage to stdout and exit 0
Index ¶
Constants ¶
View Source
const ( // MaxManifestLineBytes bounds a single checksum line, including its path. MaxManifestLineBytes = 64 * 1024 // MaxManifestBytes bounds all checksum manifests consumed by one command. MaxManifestBytes = 8 * 1024 * 1024 // MaxManifestEntries bounds the number of target files verified per command. MaxManifestEntries = 1024 // MaxOperands bounds direct file and checksum-manifest operands. MaxOperands = 1024 // MaxCheckOutputBytes bounds dynamic per-entry verification output. MaxCheckOutputBytes = 1024 * 1024 )
Variables ¶
View Source
var Cmd = builtins.Command{
Name: "sha256sum",
Description: "compute and check SHA-256 message digests",
MakeFlags: registerFlags,
}
Cmd is the sha256sum builtin command descriptor.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.