NVME-KEYS-CHECK-K(1) NVMe Manual NVME-KEYS-CHECK-K(1)

# [NAME](#NAME)

nvme-keys-check-kxchap-secret - Check a host KX-HMAC-CHAP secret

# [SYNOPSIS](#SYNOPSIS)

```
nvme [<global-options>] keys check-kxchap-secret [--keydata=<secret> | -d <secret>]


                        [--keyring=<name> | -k <name>]


                        [--keytype=<type> | -t <type>]


                        [--identity=<identity> | -i <identity>]
```

# [DESCRIPTION](#DESCRIPTION)

Checks if the given string is a valid KX-HMAC-CHAP host secret of the form: DHHC-1:00:ia6zGodOr4SEG0Zzaw398rpY0wqipUWj4jWjUh4HWUz6aQ2n: and prints the hash algorithm it records, the secret length, and the CRC.

If *--keydata* is not given the secret is read from stdin, which also allows checking a secret stored in a file, e.g. *nvme keys check-kxchap-secret &lt; keyfile*.

If *--identity* is given the specified keyring is also checked for a secret already stored under that identity (as inserted by [**nvme-keys-import**(1)](/man/os/nvme-cli/nvme-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 secret requires the *kxchap* keyring key type, which is not yet provided by any released Linux kernel; see [**nvme-keys-import**(1)](/man/os/nvme-cli/nvme-keys-import.1) for details.

# [OPTIONS](#OPTIONS)

-d &lt;secret&gt;, --keydata=&lt;secret&gt;

Secret to be checked. If not given, the secret is read from stdin.

-k &lt;name&gt;, --keyring=&lt;name&gt;

Name of the keyring to check for an already loaded secret. Default is *.nvme*.

-t &lt;type&gt;, --keytype=&lt;type&gt;

Key type of the secret to look up. Default is *kxchap*.

-i &lt;identity&gt;, --identity=&lt;identity&gt;

Identity to look up in the keyring to check if the secret is already loaded. If not given, only the secret format is validated.

# [GLOBAL OPTIONS](#GLOBAL_OPTIONS)

The following options are defined at the top-level nvme command and are available to this subcommand:

--dry-run

Print the command that would be executed, but do not actually execute it.

--no-ioctl-probing

Disable probing for 64-bit IOCTL support.

--no-retries

Disable retry logic on transient errors.

-o &lt;fmt&gt;, --output-format=&lt;fmt&gt;

Set the reporting format to *normal*, *tabular, 'json*, or *binary*. Only one output format may be used at a time.

--output-format-version=&lt;version&gt;

Select the output format version. Version *1* uses the original field naming, while version *2* (default) provides more consistent and script-friendly field names. Other versions are rejected.

--quiet

Suppress informational messages. Errors are still reported, and --quiet cancels any --verbose for the library log level.

--set-options=&lt;key=value&gt;\[,&lt;key=value&gt;...]

Set libnvme library options for this invocation. Supported keys are *force-4k*, *mi-probe-enabled*, *test-base-dir* and *test-sysfs-dir*.

--timeout=&lt;ms&gt;

Set the timeout for the command in milliseconds. *infinite* or *-1* waits without a time limit (0xffffffff).

-v, --verbose

Increase the level of detail in the output. May be specified multiple times to further increase verbosity.

These options can also be set as machine-wide defaults in [nvme-cli.conf(5)](/man/os/nvme-cli/nvme-cli.conf.5). A command-line flag always overrides the file.

# [EXAMPLES](#EXAMPLES)

No Examples

# [NVME](#NVME)

Part of the nvme-user suite

10/30/2026 NVMe

---

Document: nvme-keys-check-kxchap-secret(1) from nvme-cli 3.2-r0 (Chainguard OS)
Source: https://github.com/linux-nvme/nvme-cli
