sha512hmac(8)

πŸ“¦ version 0.9.14, in opensuse-leap 16.0

πŸ’… 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 🀫
  • -d cfgdir β€” Specify the configuration directory to be used by the NSS library. the default location is /etc/pki/nssdb πŸ—‚οΈ
  • -h algorithm β€” 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 be sha512. specify help or 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 of sha1sum and related tools. matching bestie energy πŸ’«
  • -k filename β€” 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 πŸ”
  • -K text β€” 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 πŸ’€
  • -t bits β€” 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 through prelink -y before 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