KCAPI-HASHER(1) General Commands Manual KCAPI-HASHER(1)

kcapi-hasher - Kernel Crypto API Message Digest Check Helper

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

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

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

The kcapi-hasher application provides tool to compute and check the message digest as well as keyed message digest ciphers of the Linux kernel crypto API 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.

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

The input data can be provided either via STDIN or via a file that is referenced with a command line option.

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.
Use given HASH algorithm from the supported list of: sha1, sha224, sha256, sha384, sha512, sm3, sha3-224, sha3-256, sha3-384, sha3-512.
Print checksum of this binary and exit
Print checksum of the libkcapi library and exit
Verify hash sums from file
Force unkeyed hash
Use hash truncated to N bits
Suppress verification output
Suppress only success messages
Use HMAC key from given file
Use KEY as the HMAC key
Create a BSD-style checksum
Check directory for fipshmac; otherwise ignored
Compatibility hmaccalc options; ignored
NUL line termination
Display the help text.
Display the version number of the kcapi-hasher application.

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

2023-07-04