/nvidia-doca-plugin:doca-sha-offload-enginefrom NVIDIA DOCA
Wires the DOCA SHA Offload Engine (OpenSSL ENGINE) into existing OpenSSL pipelines to offload one-shot SHA-1/256/512 onto BlueField-2 hardware without code rewrites. Covers engine loading, PCI address configuration, offload verification via SHA-224 negative test, and message-size performance windows.
Ships in NVIDIA DOCA. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Host checks. Commands here that inspect the user's DOCA host (listing or reading
/opt/mellanox/doca, release files such as/etc/mlnx-releaseor/etc/nvidia/bf-release,/dev/mst) or reach the BlueField (RShim, SSH, BMC) are for that host. Run them yourself only if the user confirms you are on it; otherwise answer from this skill, give the commands for the user to run, and treat values you can't see as unknown.
doca-sha pipeline here.openssl engine dynamic -pre NO_VCHECK:1 -pre SO_PATH:<engine .so> -pre LOAD -vvv -t -c.openssl dgst -sha256 -engine <engine .so> -engine_impl <file>
reports the engine was set.-sha224) must fail with the
engine selected; it must not silently fall back.openssl speed -evp sha256 with and without
the engine (add -async_jobs for parallelism). Report measured numbers
only; never quote numbers from memory.Follow Loading order below. Open the tasks companion for configure / run. Open the capabilities companion for when offload wins and how to verify it. Do not open every companion file.
Where to start: This is a tool skill for the OpenSSL
ENGINE installed by the doca-sha-offload-engine package
under ${DOCA_DIR}/tools/doca_sha_offload_engine/ as
libdoca_sha_offload_engine.so, next to its
engine_readme.md. It is not a CLI —
it is a shared object loaded by an OpenSSL-based
application or by openssl itself, that re-routes SHA-1 /
SHA-256 / SHA-512 (one-shot only, via the EVP_Digest
interface) onto the DOCA SHA hardware path. Open
the tasks companion and start at
## configure for the PCIe-address
configuration and the OpenSSL prerequisites; jump to
## run for the “load the engine and
prove it actually runs” flow. Open
the capabilities companion when the question is
what the engine actually offloads vs falls back to,
when the engine is a perf win vs not, or how to verify
offload actually engaged. If DOCA is not installed yet,
route to doca-setup/SKILL.md first.
If the user is building a new SHA pipeline from scratch
(not wrapping an existing OpenSSL-based one), this skill
is the wrong surface — route to
../../libs/doca-sha/SKILL.md (doca-sha/SKILL.md)
instead.
The CLASSES of doca-sha-offload-engine questions this
skill is built to answer, each with one worked example.
The class is the load-bearing piece; the worked example
is one instance.
EVP_DigestInit_ex / EVP_DigestUpdate /
EVP_DigestFinal_ex against EVP_sha256(); can I
drop in DOCA-SHA offload via an engine load?”.
Answered by the “when this engine is the right
surface” rule in
the capabilities companion
openssl dgst invocation completed; how do I know
DOCA SHA actually did the work and OpenSSL did not
silently use the software path?”. Answered by the
“prove the engine actually ran” pattern in
the capabilities companion
(the SHA-224 negative test and the -engine_impl
flag) + the verification flow in
the tasks companion.openssl speed perf-comparison pattern in
the tasks companion.engine_readme.md).Load this skill when the user is — or the agent needs to — deploy the DOCA SHA Offload Engine into an OpenSSL-based pipeline on a host with DOCA installed and a SHA-capable device. Concretely:
openssl CLI invocation, with the
intent of no source-level code changes (or only the
minimum ENGINE_load_dynamic / ENGINE_by_id block
shown in the shipped engine_readme.md).sha1 / sha256 /
sha512 paths.Do not load this skill for users building a new
SHA-pipeline from scratch — route to
../../libs/doca-sha/SKILL.md (doca-sha/SKILL.md).
Do not load this skill for users wanting algorithms the
engine does not implement (MD5, SHA-3, SHA-224, HMAC-SHA,
streaming/incremental SHA via EVP_DigestUpdate chains
that the engine treats as one-shot only).
This is a thin loader. Substantive material lives in two companion files:
EVP_Digest high-level interface), what it does NOT
offload (anything else — including SHA-224, MD5,
SHA-3, HMAC-SHA, and any chained
EVP_DigestInit_ex / EVP_DigestUpdate /
EVP_DigestFinal_ex pattern that the engine implements
by buffering and then calling DOCA SHA in one shot at
Final), the engine-vs-library selection rule, the
message-size-window rule for when offload is a perf
win, the verified ctrl-cmd surface (set_pci_addr),
the version overlay (OpenSSL ≥ 1.1.1; the shipped
engine_readme.md documents testing on OpenSSL 1.1.1f and 3.0.2; OpenSSL 3.x deprecates the ENGINE
API but still supports it via the legacy code path),
the layered error taxonomy, the observability surface
(the “prove offload engaged” pattern using the
SHA-224 negative test and -engine_impl), and the
safety overlay.install, configure (PCIe address
selection — the engine defaults to 03:00.0 and
exposes the set_pci_addr ctrl-cmd), build (none:
the package ships the engine pre-built), modify (refuses
engine patching; modify the load-time invocation and the
PCIe address instead), run (load the engine via
openssl engine dynamic; the verification pattern;
the OpenSSL programmatic ENGINE_load_dynamic block),
test (the “prove the engine ran” SHA-224 negative
test; the openssl speed perf comparison; the
message-size window characterization), debug (walk
the error taxonomy layer by layer), use (the
engine-vs-library decision for the user's specific
pipeline), plus a Deferred task verbs block.The skill assumes a host where DOCA is already installed,
OpenSSL ≥ 1.1.1 is present (libssl-dev or equivalent),
and the deploying user can access the selected DOCA SHA PCIe device. Verify
device visibility and run the engine-load smoke as that same user before
integration; if either fails with a permission error, stop and route to
doca-setup rather than guessing a group, ACL, or sudo policy.
This skill is agent guidance, not a samples or scripts bundle. It deliberately does not contain — and pull requests should not add:
engine_readme.md (the ENGINE_load_dynamic /
ENGINE_by_id / ENGINE_ctrl_cmd_string /
ENGINE_init / ENGINE_set_default_digests sequence,
cross-referenced into the tasks companion).
The shipped readme is the worked example.samples/, bindings/, or reference/
subtree. This is a thin loader for a shipped
shared-object; substantive material lives in the
shipped engine_readme.md and the doca-sha library docs.openssl speed comparison
pattern in the tasks companion is the
way to capture it on the user's actual hardware;
quoting a number from memory is the cross-platform
failure mode this skill exists to prevent.openssl speed output format.../../libs/doca-sha/ (doca-sha/SKILL.md)).install,
configure, build, modify, run, test,
debug, use — see the tasks companion.../../libs/doca-sha/SKILL.md (doca-sha/SKILL.md) —
the underlying DOCA SHA library. The engine is a
thin OpenSSL-ENGINE wrapper around doca-sha; when the
user needs fine-grained control over the SHA task
surface (partial-hash, custom buffer permissions,
cap-query for unusual message sizes), the library is
the right answer. The engine wraps the one-shot
task; the library exposes both one-shot and partial-
hash per
doca-sha/SKILL.md.doca-version/SKILL.md — the
canonical version-detection chain. The engine has a
TWO-axis version overlay (DOCA-side and OpenSSL-side);
the version skill carries the four-way match rule
this skill layers on top of.doca-debug/SKILL.md — the
cross-cutting debug ladder. The engine surfaces its
own error taxonomy; when the cause is below DOCA
(driver, firmware), the taxonomy hands off here.doca-setup/SKILL.md — env
preparation, install verification, the libssl-dev
install path, and the NGC DOCA container path.doca-public-knowledge-map/SKILL.md —
routing to the public DOCA SHA documentation set on
docs.nvidia.com/doca/sdk/ and to the OpenSSL
ENGINE / openssl-engine upstream documentation on
openssl.org.doca-hardware-safety/SKILL.md —
the bundle-wide hardware-safety meta-policy. The
engine binds to a specific PCIe device; the
set_pci_addr ctrl is the artifact-specific overlay,
but any host-side change underneath (firmware burn,
BFB reflash) runs through the meta-policy.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub nvidia/skills --plugin nvidia-doca-plugin53 skills in this plugin
/doca-aes-gcmUse this skill when the user is doing hands-on DOCA AES-GCM work on a BlueField DPU or ConnectX NIC — configuring `doca_aes_gcm_task_encrypt` / `_task_decrypt`, querying `doca_aes_gcm_cap_*` for per-key-type (only `DOCA_AES_GCM_KEY_128` / `_256` — AES-192 not supported) and per-task support, sizing plaintext against the max-buf cap, setting source / destination mmap permissions, validating with a NIST GCMVS or RFC 5288 vector, or debugging DOCA_ERROR_* including the security-critical tag-verification-failed outcome on decrypt. Trigger even when the user does not explicitly mention "DOCA AES-GCM" or "AEAD" — typical implicit phrasings: "decrypt completion IO_FAILED", "auth tag isn't verifying", "NOT_PERMITTED on my encrypt buffer", "is AES-192-GCM on this BlueField" (no), or "encrypted record came back tampered". Refuse and route elsewhere for non-GCM AES modes (CBC / CTR / XTS — CPU OpenSSL), key management (KMS / HSM / rotation), SHA (doca-sha), or general AEAD background.
/doca-argpUse this skill for hands-on DOCA Arg Parser CLI work on a shipped sample or new DOCA-using app — adding / removing / renaming flags; wiring `doca_argp_init` → register params → `doca_argp_start` → `doca_argp_destroy` in order; picking a parameter type from the full public enum (`DOCA_ARGP_TYPE_STRING`, `_INT`, `_BOOLEAN`, `_DEVICE`, `_DEVICE_REP`, `_DOUBLE` — six values, not three); preserving the built-in DOCA flags (`-h` `-v` `-l` `--sdk-log-level` `--log-filter` `-j`/`--json`, NOT `--json-config`); `--device` is per-program; or debugging `DOCA_ERROR_BAD_STATE` / `INVALID_VALUE` / `NOT_SUPPORTED` / `IO_FAILED` from `doca_argp_*`. Trigger on implicit phrasings: "add a custom flag to a DOCA sample", "should I use getopt here", "BAD_STATE registering a new param", "my JSON config key is rejected", or "my sample's --json is ignored". Refuse and route elsewhere for variadic-flag / subcommand / shell-completion features, DOCA Core context, or DOCA Log internals.
Other plugins' skills for the same job