DOCA SHA Offload Engine
Where to start: This is a tool skill for the OpenSSL
ENGINE shipped in the DOCA SOURCE tree under
doca/tools/sha_offload_engine/ and INSTALLED on the host
under ${DOCA_DIR}/tools/doca_sha_offload_engine/ as
libdoca_sha_offload_engine.so. The directory-name shift
(sha_offload_engine in the source layout vs
doca_sha_offload_engine in the install layout) is an
NVIDIA packaging convention, not a bundle inconsistency;
both forms appear below and are the same artifact at
different lifecycle stages — quote whichever the prompt is
about (build-from-source vs runtime-load). 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
TASKS.md 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
CAPABILITIES.md 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 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
instead.
Example questions this skill answers well
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.
- "I have an existing OpenSSL-based pipeline doing SHA;
can I offload the SHA to DOCA without rewriting the
app?" — worked example: "the app uses
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
CAPABILITIES.md ## Capabilities and modes
- the engine-load mechanics in
TASKS.md ## configure.
- "Did the engine actually load? Or did OpenSSL just
fall back to software SHA?" — worked example: "my
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
CAPABILITIES.md ## Observability
(the SHA-224 negative test and the -engine_impl
flag) + the verification flow in
TASKS.md ## test.
- "For what message-size range is the engine offload a
win vs CPU SHA?" — worked example: "my pipeline
hashes 4 KB blocks at a time; is the engine a win
there, or does the round-trip to DOCA SHA cost more
than the CPU hash itself?". Answered by the
message-size-window rule in
CAPABILITIES.md ## Capabilities and modes
- the
openssl speed perf-comparison pattern in
TASKS.md ## test.
- "What SHA algorithms does the engine actually
support — and what happens for the ones it does not?"
— worked example: "my pipeline mixes SHA-1, SHA-256,
SHA-512, and SHA-224 — what does the engine do for
each?". Answered by the algorithm-coverage matrix in
CAPABILITIES.md ## Capabilities and modes.
- "Should I use this engine, or call doca-sha
directly?" — worked example: "I am writing a new
service from scratch; does the engine save me work or
does it add complexity I do not need?". Answered by
the "engine vs library" selection table in
CAPABILITIES.md ## Capabilities and modes.
- "What OpenSSL versions does the engine require, and
what about OpenSSL 3.x's deprecation of the ENGINE
API?" — worked example: "my host has OpenSSL 3.0;
will the engine still load?". Answered by the version
overlay in
CAPABILITIES.md ## Version compatibility
(verified surface: the engine is documented for
OpenSSL 1.1.1f on Ubuntu 20.04 and OpenSSL 3.0.2 on
Ubuntu 22.04 per the shipped readme.md).
Audience
This skill serves external developers and operators who
have an existing OpenSSL-based pipeline doing SHA hashing
and want to offload SHA onto DOCA SHA without rewriting
their application against the doca-sha C API.
Concretely:
- A developer integrating DOCA SHA acceleration into a
service that already uses
EVP_Digest for SHA-1 /
SHA-256 / SHA-512.
- An operator deploying an
openssl dgst / openssl speed based pipeline and wanting to measure the win
from DOCA SHA offload without changing the pipeline's
invocation surface.
- An SRE / performance engineer producing a "this is
the engine-offload win vs CPU SHA on this message-size
mix" artifact to inform a code-change decision (e.g.
"should we adopt the engine as-is, or rewrite to
doca-sha for finer control?").
- An AI agent answering "can I drop DOCA SHA into this
OpenSSL-based app without code changes" honestly —
with the verified algorithm-coverage matrix, the
message-size window, and the verification pattern that
proves the engine actually ran.
It is not for users building a new SHA pipeline from
scratch (route to
../../libs/doca-sha/SKILL.md),
not for users wanting MD5 / SHA-2-224 / SHA-3 /
HMAC-SHA offload (the engine does not implement those —
the verified surface per the engine's source is one-shot
SHA-1, SHA-256, SHA-512 via EVP_Digest), and not a
substitute for the public DOCA SHA programming guide.
Language scope
The DOCA SHA Offload Engine is shipped as a C dynamic
shared object (libdoca_sha_offload_engine.so) built
from doca/tools/sha_offload_engine/{engine/doca_sha_offload_engine.c, lib/doca_sha_offload_lib.{c,h}} via meson. Its
consumer interface is OpenSSL's ENGINE API; any
language that calls OpenSSL (C, C++, Rust via openssl
crate, Python via cryptography and pyca/cryptography's
backend, Node via node:crypto) can therefore use the
engine, provided the language binding either calls
ENGINE_load_dynamic / ENGINE_by_id directly or honors
an OpenSSL engines config that loads it. The skill's
language-neutral contribution is the engine-load mechanics
and the verification pattern; the OpenSSL ENGINE API is
the contract.
When to load this skill
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:
- Wiring the engine into an existing OpenSSL-based
application or
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 verified readme.md).
- Verifying the engine actually engaged for the
hot-path digests (the "is offload real or did OpenSSL
fall back to software" question).
- Characterizing the message-size range over which the
engine is a perf win vs the CPU
sha1 / sha256 /
sha512 paths.
- Deciding between "adopt the engine" (existing
pipeline, minimal change) and "rewrite to doca-sha"
(new pipeline, fine-grained control needed).
Do not load this skill for users building a new
SHA-pipeline from scratch — route to
../../libs/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).
What this skill provides
This is a thin loader. Substantive material lives in
two companion files:
CAPABILITIES.md — what the engine offloads (verified:
one-shot SHA-1, SHA-256, SHA-512 via the OpenSSL
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 engine's
shipped tests cover OpenSSL 1.1.1f and OpenSSL 3.0.2
per the readme.md; 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.
TASKS.md — step-by-step workflows for the in-scope
task verbs: install, configure (PCIe address
selection — the engine defaults to 03:00.0 and
exposes the set_pci_addr ctrl-cmd plus a build-time
override per the shipped test_cmdline_mode/readme.md),
build (the meson flow), modify (refuses source
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.
What this skill deliberately does not ship
This skill is agent guidance, not a samples or
scripts bundle. It deliberately does not contain — and
pull requests should not add:
- Pre-written OpenSSL ENGINE application source code
beyond the verbatim verified block in the shipped
readme.md (the ENGINE_load_dynamic /
ENGINE_by_id / ENGINE_ctrl_cmd_string /
ENGINE_init / ENGINE_set_default_digests sequence,
cross-referenced into TASKS.md ## run).
The shipped readme is the worked example.
- A
samples/, bindings/, or reference/
subtree. This is a thin loader for a shipped
shared-object; substantive material lives in the
shipped readme.md and the doca-sha library docs.
- Performance numbers from agent memory. The
message-size-window where the engine wins is
device-, firmware-, OpenSSL-version-, and
workload-specific. The
openssl speed comparison
pattern in TASKS.md ## test 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.
- Wrappers, parsers, or scripts in any language
that consume the engine's stdout or the
openssl speed output format.
Loading order
- Read this
SKILL.md first to confirm the user's
question is in scope (the user actually has an
existing OpenSSL-based pipeline and wants to offload
to DOCA SHA without code changes; if the user is
building from scratch, route to
../../libs/doca-sha/).
- For what the engine offloads vs falls back, the
engine-vs-library selection rule, the message-size-
window rule, the version overlay, the error taxonomy,
the observability surface (and the prove-offload-
actually-engaged pattern), and the safety overlay,
see CAPABILITIES.md.
- For step-by-step workflows —
install,
configure, build, modify, run, test,
debug, use — see TASKS.md.
Related skills
../../libs/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
../../libs/doca-sha/CAPABILITIES.md#capabilities-and-modes.
doca-version — 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 — 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 — env
preparation, install verification, the libssl-dev
install path, and the NGC DOCA container path.
doca-public-knowledge-map —
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 —
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.
1---2name: doca-sha-offload-engine3description: Use this skill when wiring the DOCA SHA Offload Engine (an OpenSSL ENGINE) into an existing OpenSSL pipeline to offload one-shot SHA-1, SHA-256, or SHA-512 (EVP_Digest) onto DOCA SHA hardware without rewriting against doca-sha. Covers engine load mechanics (`openssl engine dynamic`, `set_pci_addr` ctrl, `-engine_impl`), the SHA-224 negative test that proves offload engaged, the message-size window where offload beats CPU SHA, and engine-vs-library selection. Trigger even when the user does not say "DOCA SHA Offload Engine" or "OpenSSL ENGINE" — typical implicit phrasings: "speed up openssl SHA on BlueField", "offload SHA without code changes", "is openssl using the accelerator or falling back to software", "prove DOCA SHA actually ran", "openssl dgst hashed but I'm not sure it was offloaded". Refuse and route elsewhere for new SHA pipelines (use doca-sha), MD5 / SHA-3 / SHA-224 / HMAC-SHA offload, incremental hashing via chained `EVP_DigestUpdate`, or OpenSSL PROVIDER authoring.4license: Apache-2.05---67# DOCA SHA Offload Engine89**Where to start:** This is a tool skill for the OpenSSL10ENGINE shipped in the DOCA SOURCE tree under11`doca/tools/sha_offload_engine/` and INSTALLED on the host12under `${DOCA_DIR}/tools/doca_sha_offload_engine/` as13`libdoca_sha_offload_engine.so`. The directory-name shift14(`sha_offload_engine` in the source layout vs15`doca_sha_offload_engine` in the install layout) is an16NVIDIA packaging convention, not a bundle inconsistency;17both forms appear below and are the same artifact at18different lifecycle stages — quote whichever the prompt is19about (build-from-source vs runtime-load). It is **not a CLI** —20it is a shared object loaded by an OpenSSL-based21application or by `openssl` itself, that re-routes SHA-1 /22SHA-256 / SHA-512 (one-shot only, via the `EVP_Digest`23interface) onto the DOCA SHA hardware path. Open24[`TASKS.md`](TASKS.md) and start at25[`## configure`](TASKS.md#configure) for the PCIe-address26configuration and the OpenSSL prerequisites; jump to27[`## run`](TASKS.md#run) for the *"load the engine and28prove it actually runs"* flow. Open29[`CAPABILITIES.md`](CAPABILITIES.md) when the question is30*what the engine actually offloads vs falls back to*,31*when the engine is a perf win vs not*, or *how to verify32offload actually engaged*. If DOCA is not installed yet,33route to [`doca-setup`](../../doca-setup/SKILL.md) first.34If the user is building a new SHA pipeline from scratch35(not wrapping an existing OpenSSL-based one), this skill36is the wrong surface — route to37[`../../libs/doca-sha/SKILL.md`](../../libs/doca-sha/SKILL.md)38instead.3940## Example questions this skill answers well4142The CLASSES of `doca-sha-offload-engine` questions this43skill is built to answer, each with one worked example.44The class is the load-bearing piece; the worked example45is one instance.4647- **"I have an existing OpenSSL-based pipeline doing SHA;48 can I offload the SHA to DOCA without rewriting the49 app?"** — worked example: *"the app uses50 `EVP_DigestInit_ex` / `EVP_DigestUpdate` /51 `EVP_DigestFinal_ex` against `EVP_sha256()`; can I52 drop in DOCA-SHA offload via an engine load?"*.53 Answered by the *"when this engine is the right54 surface"* rule in55 [`CAPABILITIES.md ## Capabilities and modes`](CAPABILITIES.md#capabilities-and-modes)56 + the engine-load mechanics in57 [`TASKS.md ## configure`](TASKS.md#configure).58- **"Did the engine actually load? Or did OpenSSL just59 fall back to software SHA?"** — worked example: *"my60 `openssl dgst` invocation completed; how do I know61 DOCA SHA actually did the work and OpenSSL did not62 silently use the software path?"*. Answered by the63 *"prove the engine actually ran"* pattern in64 [`CAPABILITIES.md ## Observability`](CAPABILITIES.md#observability)65 (the SHA-224 negative test and the `-engine_impl`66 flag) + the verification flow in67 [`TASKS.md ## test`](TASKS.md#test).68- **"For what message-size range is the engine offload a69 win vs CPU SHA?"** — worked example: *"my pipeline70 hashes 4 KB blocks at a time; is the engine a win71 there, or does the round-trip to DOCA SHA cost more72 than the CPU hash itself?"*. Answered by the73 message-size-window rule in74 [`CAPABILITIES.md ## Capabilities and modes`](CAPABILITIES.md#capabilities-and-modes)75 + the `openssl speed` perf-comparison pattern in76 [`TASKS.md ## test`](TASKS.md#test).77- **"What SHA algorithms does the engine actually78 support — and what happens for the ones it does not?"**79 — worked example: *"my pipeline mixes SHA-1, SHA-256,80 SHA-512, and SHA-224 — what does the engine do for81 each?"*. Answered by the algorithm-coverage matrix in82 [`CAPABILITIES.md ## Capabilities and modes`](CAPABILITIES.md#capabilities-and-modes).83- **"Should I use this engine, or call doca-sha84 directly?"** — worked example: *"I am writing a new85 service from scratch; does the engine save me work or86 does it add complexity I do not need?"*. Answered by87 the *"engine vs library"* selection table in88 [`CAPABILITIES.md ## Capabilities and modes`](CAPABILITIES.md#capabilities-and-modes).89- **"What OpenSSL versions does the engine require, and90 what about OpenSSL 3.x's deprecation of the ENGINE91 API?"** — worked example: *"my host has OpenSSL 3.0;92 will the engine still load?"*. Answered by the version93 overlay in94 [`CAPABILITIES.md ## Version compatibility`](CAPABILITIES.md#version-compatibility)95 (verified surface: the engine is documented for96 OpenSSL 1.1.1f on Ubuntu 20.04 and OpenSSL 3.0.2 on97 Ubuntu 22.04 per the shipped `readme.md`).9899## Audience100101This skill serves **external developers and operators who102have an existing OpenSSL-based pipeline doing SHA hashing103and want to offload SHA onto DOCA SHA without rewriting104their application against the doca-sha C API**.105Concretely:106107- A developer integrating DOCA SHA acceleration into a108 service that already uses `EVP_Digest` for SHA-1 /109 SHA-256 / SHA-512.110- An operator deploying an `openssl dgst` / `openssl111 speed` based pipeline and wanting to measure the win112 from DOCA SHA offload without changing the pipeline's113 invocation surface.114- An SRE / performance engineer producing a *"this is115 the engine-offload win vs CPU SHA on this message-size116 mix"* artifact to inform a code-change decision (e.g.117 *"should we adopt the engine as-is, or rewrite to118 doca-sha for finer control?"*).119- An AI agent answering *"can I drop DOCA SHA into this120 OpenSSL-based app without code changes"* honestly —121 with the verified algorithm-coverage matrix, the122 message-size window, and the verification pattern that123 proves the engine actually ran.124125It is **not** for users building a new SHA pipeline from126scratch (route to127[`../../libs/doca-sha/SKILL.md`](../../libs/doca-sha/SKILL.md)),128**not** for users wanting MD5 / SHA-2-224 / SHA-3 /129HMAC-SHA offload (the engine does not implement those —130the verified surface per the engine's source is one-shot131SHA-1, SHA-256, SHA-512 via `EVP_Digest`), and **not** a132substitute for the public DOCA SHA programming guide.133134## Language scope135136The DOCA SHA Offload Engine is shipped as a **C dynamic137shared object** (`libdoca_sha_offload_engine.so`) built138from `doca/tools/sha_offload_engine/{engine/doca_sha_offload_engine.c,139lib/doca_sha_offload_lib.{c,h}}` via `meson`. Its140*consumer* interface is OpenSSL's ENGINE API; any141language that calls OpenSSL (C, C++, Rust via `openssl`142crate, Python via `cryptography` and `pyca/cryptography`'s143backend, Node via `node:crypto`) can therefore *use* the144engine, provided the language binding either calls145`ENGINE_load_dynamic` / `ENGINE_by_id` directly or honors146an OpenSSL `engines` config that loads it. The skill's147language-neutral contribution is the engine-load mechanics148and the verification pattern; the OpenSSL ENGINE API is149the contract.150151## When to load this skill152153Load this skill when the user is — or the agent needs to154— deploy the DOCA SHA Offload Engine into an OpenSSL-based155pipeline on a host with DOCA installed and a SHA-capable156device. Concretely:157158- Wiring the engine into an existing OpenSSL-based159 application or `openssl` CLI invocation, with the160 intent of no source-level code changes (or only the161 minimum `ENGINE_load_dynamic` / `ENGINE_by_id` block162 shown in the verified `readme.md`).163- Verifying the engine actually engaged for the164 hot-path digests (the *"is offload real or did OpenSSL165 fall back to software"* question).166- Characterizing the message-size range over which the167 engine is a perf win vs the CPU `sha1` / `sha256` /168 `sha512` paths.169- Deciding between *"adopt the engine"* (existing170 pipeline, minimal change) and *"rewrite to doca-sha"*171 (new pipeline, fine-grained control needed).172173Do **not** load this skill for users building a new174SHA-pipeline from scratch — route to175[`../../libs/doca-sha/SKILL.md`](../../libs/doca-sha/SKILL.md).176Do not load this skill for users wanting algorithms the177engine does not implement (MD5, SHA-3, SHA-224, HMAC-SHA,178streaming/incremental SHA via `EVP_DigestUpdate` chains179that the engine treats as one-shot only).180181## What this skill provides182183This is a **thin loader**. Substantive material lives in184two companion files:185186- `CAPABILITIES.md` — what the engine offloads (verified:187 one-shot SHA-1, SHA-256, SHA-512 via the OpenSSL188 `EVP_Digest` high-level interface), what it does NOT189 offload (anything else — including SHA-224, MD5,190 SHA-3, HMAC-SHA, and any chained191 `EVP_DigestInit_ex` / `EVP_DigestUpdate` /192 `EVP_DigestFinal_ex` pattern that the engine implements193 by buffering and then calling DOCA SHA in one shot at194 `Final`), the engine-vs-library selection rule, the195 message-size-window rule for when offload is a perf196 win, the verified ctrl-cmd surface (`set_pci_addr`),197 the version overlay (OpenSSL ≥ 1.1.1; the engine's198 shipped tests cover OpenSSL 1.1.1f and OpenSSL 3.0.2199 per the `readme.md`; OpenSSL 3.x deprecates the ENGINE200 API but still supports it via the legacy code path),201 the layered error taxonomy, the observability surface202 (the *"prove offload engaged"* pattern using the203 SHA-224 negative test and `-engine_impl`), and the204 safety overlay.205- `TASKS.md` — step-by-step workflows for the in-scope206 task verbs: `install`, `configure` (PCIe address207 selection — the engine defaults to `03:00.0` and208 exposes the `set_pci_addr` ctrl-cmd plus a build-time209 override per the shipped `test_cmdline_mode/readme.md`),210 `build` (the `meson` flow), `modify` (refuses source211 patching; modify the load-time invocation and the212 PCIe address instead), `run` (load the engine via213 `openssl engine dynamic`; the verification pattern;214 the OpenSSL programmatic `ENGINE_load_dynamic` block),215 `test` (the *"prove the engine ran"* SHA-224 negative216 test; the `openssl speed` perf comparison; the217 message-size window characterization), `debug` (walk218 the error taxonomy layer by layer), `use` (the219 engine-vs-library decision for the user's specific220 pipeline), plus a `Deferred task verbs` block.221222The skill assumes a host where DOCA is already installed,223OpenSSL ≥ 1.1.1 is present (`libssl-dev` or equivalent),224and the deploying user can access the selected DOCA SHA PCIe device. Verify225device visibility and run the engine-load smoke as that same user before226integration; if either fails with a permission error, stop and route to227`doca-setup` rather than guessing a group, ACL, or `sudo` policy.228229## What this skill deliberately does not ship230231This skill is **agent guidance**, not a samples or232scripts bundle. It deliberately does not contain — and233pull requests should not add:234235- **Pre-written OpenSSL ENGINE application source code**236 beyond the verbatim verified block in the shipped237 `readme.md` (the `ENGINE_load_dynamic` /238 `ENGINE_by_id` / `ENGINE_ctrl_cmd_string` /239 `ENGINE_init` / `ENGINE_set_default_digests` sequence,240 cross-referenced into [`TASKS.md ## run`](TASKS.md#run)).241 The shipped readme is the worked example.242- **A `samples/`, `bindings/`, or `reference/`243 subtree.** This is a thin loader for a shipped244 shared-object; substantive material lives in the245 shipped `readme.md` and the doca-sha library docs.246- **Performance numbers from agent memory.** The247 message-size-window where the engine wins is248 device-, firmware-, OpenSSL-version-, and249 workload-specific. The `openssl speed` comparison250 pattern in [`TASKS.md ## test`](TASKS.md#test) is the251 way to capture it on the user's actual hardware;252 quoting a number from memory is the cross-platform253 failure mode this skill exists to prevent.254- **Wrappers, parsers, or scripts** in any language255 that consume the engine's stdout or the `openssl256 speed` output format.257258## Loading order2592601. Read this `SKILL.md` first to confirm the user's261 question is in scope (the user actually has an262 existing OpenSSL-based pipeline and wants to offload263 to DOCA SHA *without* code changes; if the user is264 building from scratch, route to265 [`../../libs/doca-sha/`](../../libs/doca-sha/SKILL.md)).2662. **For what the engine offloads vs falls back, the267 engine-vs-library selection rule, the message-size-268 window rule, the version overlay, the error taxonomy,269 the observability surface (and the prove-offload-270 actually-engaged pattern), and the safety overlay,271 see [CAPABILITIES.md](CAPABILITIES.md).**2723. **For step-by-step workflows — `install`,273 `configure`, `build`, `modify`, `run`, `test`,274 `debug`, `use` — see [TASKS.md](TASKS.md).**275276## Related skills277278- [`../../libs/doca-sha/SKILL.md`](../../libs/doca-sha/SKILL.md) —279 the underlying DOCA SHA library. The engine is a280 thin OpenSSL-ENGINE wrapper around doca-sha; when the281 user needs fine-grained control over the SHA task282 surface (partial-hash, custom buffer permissions,283 cap-query for unusual message sizes), the library is284 the right answer. The engine wraps the *one-shot*285 task; the library exposes both one-shot and partial-286 hash per287 [`../../libs/doca-sha/CAPABILITIES.md#capabilities-and-modes`](../../libs/doca-sha/CAPABILITIES.md#capabilities-and-modes).288- [`doca-version`](../../doca-version/SKILL.md) — the289 canonical version-detection chain. The engine has a290 TWO-axis version overlay (DOCA-side and OpenSSL-side);291 the version skill carries the four-way match rule292 this skill layers on top of.293- [`doca-debug`](../../doca-debug/SKILL.md) — the294 cross-cutting debug ladder. The engine surfaces its295 own error taxonomy; when the cause is below DOCA296 (driver, firmware), the taxonomy hands off here.297- [`doca-setup`](../../doca-setup/SKILL.md) — env298 preparation, install verification, the `libssl-dev`299 install path, and the NGC DOCA container path.300- [`doca-public-knowledge-map`](../../doca-public-knowledge-map/SKILL.md) —301 routing to the public DOCA SHA documentation set on302 `docs.nvidia.com/doca/sdk/` and to the OpenSSL303 ENGINE / `openssl-engine` upstream documentation on304 `openssl.org`.305- [`doca-hardware-safety`](../../doca-hardware-safety/SKILL.md) —306 the bundle-wide hardware-safety meta-policy. The307 engine binds to a specific PCIe device; the308 `set_pci_addr` ctrl is the artifact-specific overlay,309 but any host-side change underneath (firmware burn,310 BFB reflash) runs through the meta-policy.