Skip to main content

Module testvectors

Module testvectors 

Source
Expand description

Compile-time test vectors required by the profile package.

§The values are illustrative, and one of them is load-bearing

Every value here is synthetic. Digests are repeated-nibble placeholders, the site is the RES-001 reference fixture, and attestation.teeClass is a conforming registry value chosen so the vector round-trips. No Pask witness device has been built and no confidential-compute silicon has been selected, so teeClass here discloses nothing and prefers nothing.

The load-bearing part: MINIMAL_VALID_JCS is the source of the example figure carried by the profile document, emitted through crate::canonical_example and asserted byte-identical to the document in CI. Changing any value in this vector changes the published figure. Change it deliberately, and regenerate with cargo run -p pask-wire-cli -- canonical-example.

Constants§

INVALID_ACTOR_CLASS
Invalid actor class used by malformed-payload tests.
INVALID_ADAPTER_MODE
Reserved adapter mode used by malformed-payload tests.
INVALID_DIGEST
Invalid digest used by malformed-payload tests.
JCS_LITERALS_EXPECTED
RFC 8785 literal-serialization output.
JCS_LITERALS_INPUT
RFC 8785 literal-serialization input.
JCS_NUMBERS_EXPECTED
RFC 8785 number-serialization output.
JCS_NUMBERS_INPUT
RFC 8785 number-serialization input.
JCS_ORDER_EXPECTED
RFC 8785 property-order output.
JCS_ORDER_INPUT
RFC 8785 property-order input.
MINIMAL_CHAIN_HASH
Correct chain digest for MINIMAL_VALID_PAYLOAD after production normalization.
MINIMAL_VALID_JCS
Expected JCS bytes for the normalized minimal payload.
MINIMAL_VALID_PAYLOAD
Minimal valid unsigned payload with the package’s placeholder chain hash.
REVERSED_WINDOW_END
Reversed engagement end used by malformed-payload tests.
WRONG_CONTENT_TYPE
Wrong protected content type used by malformed-envelope tests.
WRONG_CWT_SUBJECT
Wrong CWT subject used by malformed-envelope tests.
WRONG_SPEC
Unsupported version used by malformed-payload tests.