sha512hmac(8)
π sha512hmac β compute and check HMAC values
okay bestie, so the manual page you're looking at is sha512hmac(8) β System Administrator's Manual energy, but make it group chat. let's go π«Ά
πΈ NAME
sha512hmac β compute and check HMAC values β¨
π SYNOPSIS
sha512hmac [OPTIONS] [-u | -k keyfile | -K key] [-c file [-q] | file
[...] ]
π DESCRIPTION
So the sha512hmac command can compute and/or verify HMAC and unkeyed checksum values for the contents of files. literally its whole job π
and like β variations such as sha384hmac, sha256hmac, and sha1hmac all operate similarly, except that they use different digest algorithms. same vibe, different hash. periodt β¨
π¦ SELF-TEST
As a safety measure (iconic behavior honestly), the tool will always attempt to verify a previously-computed HMAC over itself with the contents of a second file before processing any other files. that second file is sha512hmac.hmac for sha512hmac, and a similarly-named file for each variation π
and if the second file either cannot be read or does not match the computed value, it exits with an error. no cap, it does not play about this one π
β OPTIONS
-cβ Check that the HMAC values and names listed in the specified file(s) are correct for the files which are available. the format of the files should match the output which the tool produces when computing the values: a hex-encoded HMAC value and then a filename, separated by whitespace. iykyk π-qβ Suppress any output when checking values. quiet queen behavior π€«-dcfgdir β Specify the configuration directory to be used by the NSS library. the default location is/etc/pki/nssdbποΈ-halgorithm β Generate the HMAC value using a non-default hashing algorithm. the default is determined by the name used to invoke the tool (sha1hmac,sha256hmac, etc.). if no default can be derived this way, the default setting will besha512. specifyhelpor another invalid value to obtain a list of recognized algorithms π-uβ Generate an unkeyed checksum instead of an HMAC. the output produced by the tool should then be comparable to that ofsha1sumand related tools. matching bestie energy π«-kfilename β Use the contents of the specified file as the secret key used in computing the HMAC values. if no key file or text is specified, a hard-coded default value is used. this option should always be used. fr fr, always π-Ktext β Use the text of the argument as the secret key used in computing the HMAC values. if no key file or text is specified, a hard-coded default value is used π-bβ Process file contents in binary mode, marking output as such by prefixing filenames with*. this option is not expected to have any other meaningful effect. lowkey it's just the asterisk π-tbits β Truncate HMAC values to a given length when computing or verifying them βοΈ-Sβ Generate an HMAC over the tool itself and output it on standard out. this is a bootstrapping option which is not expected to be used π§-Pβ Attempt to pass all input files throughprelink -ybefore processing their contents. the tool always attempts to do so when computing or performing a self-check π
π₯ EXAMPLES
Example output from sha1hmac, for files on the developer's system:
e64db5e8a9b8a40091e5302fa4de0bfc6c5d19d0 /etc/passwd
e7d93a2c70ec4d7720c6f2b033c1e5ea19f2d677 /etc/group
d732d6df77114ea6b81a43d64655f86b1e5ee925 /etc/services
ad92162bef979054a75d1f3510e6b05902bec641 /etc/hosts
look at those hashes. gorgeous. no notes π β¨
π SEE ALSO
fipshmac(1), fipscheck(1), prelink(8)
π BUGS
Probably, but let's hope not. π if you find any, please either report them in the bug database at http://bugzilla.redhat.com/ against the hmaccalc component, or in the trac instance at https://fedorahosted.org/hmaccalc/. do it for the culture π«Ά
π AUTHOR
Nalin Dahyabhai <nalin@redhat.com>
so yeah, that's the whole page. be nice to it, use -k, and don't skip the self-test β she's checking herself for a reason π
and that's a wrap, bestie β this lil artifact is from hmaccalc 0.9.14, dated 2009/03/19, and it's the sha512hmac(8) page, signing off πΈβ¨π
π¦ where this page comes from
- opensuse-leap 16.0: hmaccalc 0.9.14-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: hmaccalc 0.9.14-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: hmaccalc 0.9.14-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: hmaccalc 0.9.14-160000.2.2 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms