OS Manuals

/usr/bin/kcapi-dgst

libkcapi (commandline utilities)

From libkcapi-tools 1.5.1-r2 (os), captured 2026-11-05 by running kcapi-dgst --help (exit 1). permalink

Kernel Crypto API Message Digest Crypto Helper

Kernel Crypto API interface library version: libkcapi 1.5.1
Reported numeric version number 1050100

Usage:
	-c --cipher <NAME>	Cipher name to use for crypto operation
	-i --infile <FILE>	File with input data
	-o --outfile <FILE>	File with output data
	-s --salt <SALT>	Salt for PBKDF2
	-p --passwd <PWD>	Password the session key is derived from using
				PBKDF2
	   --passwdfd <FD>	Password file descriptor providing password
	   --pbkdfiter <NUM>	Number of PBKDF2 iterations
	   --pbkdfmac <MAC>	Mac for PBKDF2 (default: hmac(sha256))
	   --keyfd <FD>		Key file descriptor providing password
	   --hex		Digest is returned in hexadecimal notation
	-h --help		This help information
	   --version		Print version
	-v --verbose		Verbose logging, multiple options increase
				verbosity
	-q --quiet		No informational output - quiet operation

Data provided at stdin is hashed
Data output at stdout
Options (15)
OptionDescriptionSource
-c, --cipher --cipherThe NAME argument specifies the digest cipher to be used.help + man
-i, --infile --infileUse the file referenced with FILE as the input data.help + man
-o, --outfile --outfileUse the file referenced with FILE as the destination for the output of the cryptographic operation.help + man
-s --saltSalt for PBKDF2help
-p, --passwd --passwdThe PASSWORD parameter provides the password from which the keyed message digest key is derived.help + man
--passwdfd FDInstead of providing the password via command line, it can be injected into kcapi-dgst using a file descriptor.help + man
--pbkdfiter NUMPerform NUM iterations of the PBKDF2 operation to derive the keyed message digest key.help + man
--pbkdfmac MACUse the keyed message digest referenced with MAC for the PBKDF2 operation.help + man
--keyfd FDTo provide a keyed message digest key that is directly used for the message digest operation, the file descriptor referenced with FD must be used.help + man
--hexThe generated message digest is print out in hexadecimal notation instead of as binary string.help + man
-h, --help --helpDisplay the help text.help + man
--versionDisplay the version number of the kcapi-dgst application.help + man
-v, --verbose --verboseVerbose logging, multiple options increase verbosityhelp + man
-q, --quiet --quietNo informational output - quiet operationhelp + man
--salt SALTWhen performing the PBKDF2 operation to obtain the key for the keyed message digest from the password, the SALT value is used as one input parameter. (in the manual page but not in --help)man

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.