Skip to main content

Module cbor

Module cbor 

Source
Expand description

CBOR encoding/decoding for RFC 8949 compliance.

Uses deterministic encoding (RFC 8949 Section 4.2) for reproducible serialization.

Modules§

keys
Integer keys per RFC CDDL definitions (smaller than string keys on the wire).

Functions§

decode
Deserialize a value from CBOR bytes.
decode_compact_ref
Decode a compact evidence reference.
decode_cpop
Decode a CPOP-tagged evidence packet.
decode_cwar
Decode a CWAR-tagged attestation result.
decode_from
Deserialize a value from a CBOR reader.
decode_tagged
Decode CBOR data, verifying the expected semantic tag.
encode
Serialize a value to deterministic CBOR bytes.
encode_compact_ref
Encode with compact evidence reference semantic tag.
encode_cpop
Encode with CPOP semantic tag (evidence packet).
encode_cwar
Encode with CWAR semantic tag (attestation result).
encode_tagged
Wrap a serialized value in a CBOR semantic tag.
encode_to
Serialize a value as CBOR into a writer.
extract_tag
Extract the outermost CBOR semantic tag, if present.
has_tag
Check whether CBOR data carries the expected semantic tag.