table of contents
| NVME-KEYS-CHECK-K(1) | NVMe Manual | NVME-KEYS-CHECK-K(1) |
NAME¶
nvme-keys-check-kxchap - Check a host KX-HMAC-CHAP key
SYNOPSIS¶
nvme [<global-options>] keys check-kxchap [--keydata=<key> | -d <key>]
[--keyring=<name> | -k <name>]
[--keytype=<type> | -t <type>]
[--identity=<identity> | -i <identity>]
DESCRIPTION¶
Checks if the key is a valid KX-HMAC-CHAP host key of the form: DHHC-1:00:ia6zGodOr4SEG0Zzaw398rpY0wqipUWj4jWjUh4HWUz6aQ2n: and prints the resulting HMAC algorithm, key length, and CRC.
If --keydata is not given the key is read from stdin, which also allows checking a key stored in a file, e.g. nvme keys check-kxchap < keyfile.
If --identity is given the specified keyring is also checked for a key already stored under that identity (as inserted by linknvme-keys-import[1]); the result (not loaded, loaded and matching, or loaded but different) is reported. This command never modifies the keyring.
Looking up a key requires the kxchap keyring key type, which is not yet provided by any released Linux kernel; see linknvme-keys-import[1] for details.
OPTIONS¶
-d <key>, --keydata=<key>
-k <name>, --keyring=<name>
-t <type>, --keytype=<type>
-i <identity>, --identity=<identity>
GLOBAL OPTIONS¶
The following options are defined at the top-level nvme command and are available to this subcommand:
--dry-run
--no-ioctl-probing
--no-retries
-o <fmt>, --output-format=<fmt>
--output-format-version=<version>
--timeout=<ms>
-v, --verbose
These options can also be set as machine-wide defaults in nvme-cli.conf(5). A command-line flag always overrides the file.
EXAMPLES¶
No Examples
NVME¶
Part of the nvme-user suite
| 07/31/2026 | NVMe |