FIPSHMAC(8)

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

πŸ’… FIPSHMAC(8) β€” like, the fipshmac manual page, bestie ✨

okay so you opened the fipshmac page β€” welcome, this is the one that makes FIPS-140-2 validation checksum files. yes, that FIPS. no cap, it's giving "serious crypto paperwork" energy, but we're gonna get through it together 🫢


🌸 NAME 🌸

fipshmac β€” create FIPS-140-2 validation checksum files πŸ’–


✨ SYNTAX ✨

fipshmac [-d <directory>] file1 [file2 ...]

πŸ¦‹ DESCRIPTION πŸ¦‹

So basically, fipshmac creates FIPS-140-2 checksum files for literally all the filenames you hand it. Every single one. It's an overachiever like that πŸ’…

Now here's the naming tea β˜• β€” if you don't pass the -d option, the checksum files get written straight into the same directory as the file being checksummed. And the name? It prepends a . and appends .hmac to the original file name. Cute little makeover, no notes.

pause for the important distinction β€” when you do specify a directory with the -d option, the . does not get prepended, and the files are stored into that directory. so like, different vibe, different filename. don't mix them up πŸ™ˆ

If you invoke it correctly, fipshmac will print absolutely nothing to standard output or standard error. silent. stealth mode. a mystery. πŸ”₯ Otherwise it prints an error message to stderr, so if you see words, something went sideways.

And then there's the -s option, which lets you specify the suffix of the hmac file names. The default value .hmac is used when this option isn't specified. so yeah, .hmac unless you say otherwise πŸŽ€


⭐ RETURN CODES ⭐

fipscheck can return the following return codes β€” memorize these, they're the receipts 🧾

  • 0 β€” OK ✨
  • 2 β€” Missing filename 😭
  • 3 β€” Cannot open the checksum file for writing πŸ’€
  • 4 β€” Cannot read the file to be checksummed, or the checksum computation failed πŸ™ˆ
  • 5 β€” Memory allocation error 🫠
  • 6,7 β€” Cannot write to the checksum file 🌧️

πŸ” SEE ALSO πŸ”

go poke at these next, bestie:


πŸ‘‘ AUTHOR πŸ‘‘

Tomas Mraz <tmraz@redhat.com>.

Man page by Paul Wouters <pwouters@redhat.com>


Copyright 2008, 2012 Red Hat, Inc. All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

legal text stays legal text, babe β€” I'm not paraphrasing that one πŸ’…

and that's the whole page!! mwah, go make some checksums πŸŒˆπŸ’–βœ¨

fipscheck Β· April 11, 2012 β€” this page was brought to you by fipshmac (8), signing off πŸŽ€πŸ¦‹β­

πŸ“¦ where this page comes from