KCAPI-HASHER(1)

πŸ“¦
version 1.5.1 Β· 3 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, nixpkgs unstable

πŸ¦‹ KCAPI-HASHER(1) β€” General Commands Manual πŸ¦‹

okay so bestie, welcome to kcapi-hasher β€” the command-line girlie for the Linux kernel crypto API, and she is lowkey iconic πŸ’…

🌸 NAME 🌸

kcapi-hasher β€” Kernel Crypto API Message Digest Check Helper. That's the whole name, periodt πŸŽ€

✨ SYNOPSIS ✨

kcapi-hasher [-n BASENAME] [OPTION]... -S|-L

kcapi-hasher [-n BASENAME] [OPTION]... -c FILE [-T FILE]

kcapi-hasher [-n BASENAME] [OPTION]... FILE...

πŸ’… DESCRIPTION πŸ’…

The kcapi-hasher application gives you a tool to compute and check the message digest β€” plus keyed message digest ciphers β€” of the Linux kernel crypto API, straight from the command line ✨

The command line arguments, inputs and outputs closely mimick those of other similar utilities. I.e. sha1sum(1), sha512sum(1), and etc. fr fr 🫢

This is a multi-call binary, and the algorithm can be selected by symlinking this application under the desired name. Separately, the application name can be overriden directly with the name option, or the desired hash can be selected with the hash option. main character energy πŸ”₯

The input data can be provided either via STDIN or via a file that is referenced with a command line option. easy peasy πŸ“

πŸŽ€ OPTIONS πŸŽ€

  • -n, --name NAME β€” Force a given application NAME from the supported list of: sha1sum, sha224sum, sha256sum, sha384sum, sha512sum, sm3sum, sha3sum, md5sum, fipscheck, fipshmac, sha1hmac, sha224hmac, sha256hmac, sha384hmac, sha512hmac, sm3hmac.
  • -h, --hash HASH β€” Use the given HASH algorithm from the supported list of: sha1, sha224, sha256, sha384, sha512, sm3, sha3-224, sha3-256, sha3-384, sha3-512.
  • -S, --self-sum β€” Print checksum of this binary and exit.
  • -L, --self-sum-lib β€” Print checksum of the libkcapi library and exit.
  • -c, --check FILE β€” Verify hash sums from FILE.
  • -T, --target FILE β€” Override filenames found in hash sums file; use with -c.
  • -u, --unkeyed β€” Force unkeyed hash.
  • -t, --truncate N β€” Use hash truncated to N bits.
  • -q, --status β€” Suppress verification output.
  • --quiet β€” Suppress only success messages.
  • -k, --key-file FILE β€” Use HMAC key from the given FILE.
  • -K, --key KEY β€” Use KEY as the HMAC key.
  • --tag β€” Create a BSD-style checksum.
  • -d β€” Check directory for fipshmac; otherwise ignored.
  • -b, -P β€” Compatibility hmaccalc options; ignored.
  • -z β€” NUL line termination.
  • -h, --help β€” Display the help text. yes, -h is doing double duty up in here 😭
  • --version β€” Display the version number of the kcapi-hasher application.

πŸ”₯ SEE ALSO πŸ”₯

kcapi-dgst(1) kcapi-enc(1) kcapi-rng(1)


xoxo, your General Commands Manual girlie for KCAPI-HASHER(1), dated 2023-07-04 β€” bye bestie! πŸ’…πŸ’–

πŸ“¦ where this page comes from