Expand description
The params type of each action, and the rules over a step’s with:
values that hold in every build.
The types generate the schema of each action’s with: block (see
with_schema), which says what keys it takes and what each value may
be. cross_field holds the few rules a schema cannot say. Both live in
the model so the resolver, the runtime and an editor read the same ones,
since the language server links the model and the resolver but no
backend.
Only rules that travel with the document belong here. RSA-9999 is not a
key algorithm on any machine, so rejecting it is portable. Whether this
binary can generate an ML-DSA key is a property of the build doing the
checking, and that question is answered by the action handler instead, at
the point where a backend exists to ask.
Structs§
- Attest
Params - Params for
attestaction. - Attest
Slot Params - Parameters for the
yubikey_attest_slotaction. - Check
Value Params - Params for
check_valueaction. - Clock
Check Params - Params for
clock_checkaction. - Confirm
Params - Params for
confirmaction. - Encrypt
Data Params - Params for
encrypt_dataaction. - Enter
Share Params - Params for
enter_shareaction. - Entry
Params - Params for the
enter_valueandenter_secretactions. - Entry
Shape - What an
enter_valueorenter_secretstep says about the value it asks for, as thewith:fields spell it. - Gather
Entropy Params - Params for
gather_entropyaction. - Generate
CsrParams - Params for
generate_csraction. - Generate
KeyParams - Params for
generate_keyaction. - Import
KeyParams - Params for
import_keyaction. - Issue
Certificate Params - Params for
issue_certificateaction. - KeyPolicy
Params - The
policy:block, mirroringKeyPolicyfield for field. - KeyUsage
- One name under
policy: { usages: [...] }, a PKCS#11 usage. - Machine
Info Params - Params for
machine_infoaction. - Oral
Readback Params - Params for
oral_readbackaction. - Param
Error - A
with:value an action cannot accept. - PivRead
Certificate Params - Parameters for the
piv_read_certificateaction. - PivSign
Params - Parameters for the
piv_signaction. - Reveal
Params - Params for
revealaction. - Sign
Data Params - Params for
sign_dataaction. - Split
Secret Params - Params for
split_secretaction. - Unwrap
KeyParams - Params for
unwrap_keyaction. - Verify
Signature Params - Params for
verify_signatureaction. - Wrap
KeyParams - Params for
wrap_keyaction.
Enums§
- Format
Spec format:as a step writes it: the name of aFormat, or a pattern.- Readback
Format - Display format for the
oral_readbackaction.
Constants§
- KEYWORDS
- The keywords a generated schema may use: the ones that constrain a value, the ones that combine schemas, and the annotations.
- PIV_
SIGN_ ALGORITHMS - The signature algorithms a PIV card performs. RSA-PSS is absent because PIV cards apply a raw RSA operation and the client-side PSS encoding is not implemented; Ed25519 and ML-DSA because no PIV card does them.
- PIV_
SLOT - A PIV slot as a step names it:
9a,9c,9d,9e, or a retired slot by its key reference in hex,82to95, optionally afterpiv:.
Functions§
- cross_
field - The rules over a step’s
with:values that a schema cannot say: one value compared with another, and a pattern that must compile in the dialect the runtime uses. - generator
- A generator with the settings every params schema is made with.
- with_
schema - The whole schema of
action’swith:block, with the definitions it refers to.