PKCS #11
https://docs.oasis-open.org/pkcs11/pkcs11-spec/v3.1/cs01/pkcs11-spec-v3.1-cs01.pdf
The publisher of the pinned text is named in Sources. With this skill the agent applies that text: when using a cryptographic token interface.
Follow the workflow below step by step. Every rule here comes from a source in Sources. Quoted requirements are sentences taken from the pinned text. When a rule and the pinned source disagree, the source wins; when the source has a newer revision than the pin, follow the refresh steps.
Inputs (fill in, or ask before starting)
- Role: producer or consumer of this specification.
- Target version: PKCS #11 3.1 (default). See
references/versions.md.
- Revision: the pinned revision in Sources, unless the user names another.
- Sources: when refreshing this skill, re-read every URL in Sources and check the publisher index for a newer revision or version line.
Invariants
- document. "Key words: The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [ RFC2119 ] and [ RFC8174 ] when, and only when, they appear in all capitals, as shown here."
- 2 Platform-. "This means that when writing C or C++ code, certain preprocessor directives MUST be issued before including a Cryptoki header file."
- 2.1 Structure packing. "Cryptoki structures are packed to occupy as little space as is possible.� Cryptoki structures SHALL be packed with 1-byte alignment."
- 2.2 Pointer-related macros. "Because different platforms and compilers have different ways of dealing with different types of pointers, the following 6 macros SHALL be set outside the scope of Cryptoki: � CK_PTR CK_PTR is the �indirection string� a given platform and compiler uses to make a pointer to an object.� It is used in the following fashion: typedef CK_BYTE CK_PTR CK_BYTE_PTR; � CK_DECLARE_FUNCTION…"
- 3. "When including either of these header files, a source file MUST specify the preprocessor directives indicated in Section 2."
- 3.1 General information. "���������������������������������������� flags ������ bit flags reserved for future versions.� MUST be zero for this version ���������������������� libraryDescription ������ character-string description of the library.� MUST be padded with the blank character (� �).� Should not be null-terminated."
- 3.2 Slot and token types. "������������������������� manufacturerID ������ ID of the slot manufacturer.� MUST be padded with the blank character (� �).� MUST NOT be null-terminated."
- 3.2 Slot and token types. "label, assigned during token initialization.� MUST be padded with the blank character (� �).� MUST NOT be null-terminated."
Workflow
- Pick the version. Use the current line unless a named consumer needs a supported one. Do not author a legacy line. Emit a preview only when its posture is build and the user asked for that draft.
->
references/versions.md
✓ The target version is recorded, and it is not a legacy line.
- Apply the pinned requirements. Walk the quotes in
references/requirements.md and implement each one that applies to the role.
-> references/requirements.md
✓ Each applicable quote is either implemented or recorded as out of scope for the role, with the heading it came from.
- Upgrade (only when asked). Follow the upgrade section from the source line to the target.
->
references/versions.md
✓ The result cites the target line and no longer depends on a requirement that only the old line stated.
Verify before done
Reference index
references/versions.md: every version line, which one to use, and how to upgrade. Load for steps 1 and 3.
references/requirements.md: quotes taken from the pinned specification. Load for step 2.
Related skills
Install related spec skills by name with npx skills add ScaleDockHQ/scaledock-skills --skill <name>.
Sources
Status uses the publishing body's own maturity term. Checked is the date the source was last read.
- PKCS #11 3.1: OASIS Standard, PKCS #11 3.1, fetched 2026-10-06 (OASIS Standard, 2026-10-06), checked 2026-10-06.
1---2name: pkcs113description: >-4 PKCS #11 3.1: use HSMs and cryptographic tokens through the Cryptoki interface. Covers PKCS #11 3.1. Use when using a cryptographic token interface. Triggers: PKCS #11, cryptoki.5license: MIT6metadata:7 source: https://skillmd.com/skills/scaledockhq/pkcs118 author: ScaleDockHQ9 version: "1.0.1"10 kind: standard11---1213# PKCS #111415https://docs.oasis-open.org/pkcs11/pkcs11-spec/v3.1/cs01/pkcs11-spec-v3.1-cs01.pdf1617The publisher of the pinned text is named in [Sources](#sources). With this skill the agent applies that text: when using a cryptographic token interface.1819**Follow the workflow below step by step.** Every rule here comes from a source in [Sources](#sources). Quoted requirements are sentences taken from the pinned text. When a rule and the pinned source disagree, the source wins; when the source has a newer revision than the pin, follow the refresh steps.2021## Inputs (fill in, or ask before starting)2223- Role: producer or consumer of this specification.24- Target version: PKCS #11 3.1 (default). See [`references/versions.md`](references/versions.md).25- Revision: the pinned revision in [Sources](#sources), unless the user names another.26- Sources: when refreshing this skill, re-read every URL in [Sources](#sources) and check the publisher index for a newer revision or version line.2728## Invariants29301. **document.** "Key words: The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [ RFC2119 ] and [ RFC8174 ] when, and only when, they appear in all capitals, as shown here."312. **2 Platform-.** "This means that when writing C or C++ code, certain preprocessor directives MUST be issued before including a Cryptoki header file."323. **2.1 Structure packing.** "Cryptoki structures are packed to occupy as little space as is possible.� Cryptoki structures SHALL be packed with 1-byte alignment."334. **2.2 Pointer-related macros.** "Because different platforms and compilers have different ways of dealing with different types of pointers, the following 6 macros SHALL be set outside the scope of Cryptoki: � CK_PTR CK_PTR is the �indirection string� a given platform and compiler uses to make a pointer to an object.� It is used in the following fashion: typedef CK_BYTE CK_PTR CK_BYTE_PTR; � CK_DECLARE_FUNCTION…"345. **3.** "When including either of these header files, a source file MUST specify the preprocessor directives indicated in Section 2."356. **3.1 General information.** "���������������������������������������� flags ������ bit flags reserved for future versions.� MUST be zero for this version ���������������������� libraryDescription ������ character-string description of the library.� MUST be padded with the blank character (� �).� Should not be null-terminated."367. **3.2 Slot and token types.** "������������������������� manufacturerID ������ ID of the slot manufacturer.� MUST be padded with the blank character (� �).� MUST NOT be null-terminated."378. **3.2 Slot and token types.** "label, assigned during token initialization.� MUST be padded with the blank character (� �).� MUST NOT be null-terminated."3839## Workflow40411. **Pick the version.** Use the current line unless a named consumer needs a supported one. Do not author a legacy line. Emit a preview only when its posture is build and the user asked for that draft.42 -> [`references/versions.md`](references/versions.md)43 ✓ The target version is recorded, and it is not a legacy line.442. **Apply the pinned requirements.** Walk the quotes in [`references/requirements.md`](references/requirements.md) and implement each one that applies to the role.45 -> [`references/requirements.md`](references/requirements.md)46 ✓ Each applicable quote is either implemented or recorded as out of scope for the role, with the heading it came from.473. **Upgrade** (only when asked). Follow the upgrade section from the source line to the target.48 -> [`references/versions.md`](references/versions.md)49 ✓ The result cites the target line and no longer depends on a requirement that only the old line stated.5051## Verify before done5253- [ ] The artifact cites the target line's revision from [Sources](#sources).54- [ ] Every applicable quoted requirement in [`references/requirements.md`](references/requirements.md) holds.55- [ ] Nothing from a preview line is emitted unless its posture is build and the user opted in.5657## Reference index5859- **`references/versions.md`**: every version line, which one to use, and how to upgrade. Load for steps 1 and 3.60- **`references/requirements.md`**: quotes taken from the pinned specification. Load for step 2.6162## Related skills6364Install related spec skills by name with `npx skills add ScaleDockHQ/scaledock-skills --skill <name>`.6566## Sources6768Status uses the publishing body's own maturity term. Checked is the date the source was last read.6970- [PKCS #11 3.1](https://docs.oasis-open.org/pkcs11/pkcs11-spec/v3.1/pkcs11-spec-v3.1.html): OASIS Standard, PKCS #11 3.1, fetched 2026-10-06 (OASIS Standard, 2026-10-06), checked 2026-10-06.