Home
last modified time | relevance | path

Searched refs:cbor (Results 1 – 21 of 21) sorted by relevance

/zcbor-3.6.0/tests/cases/
Dcorner_cases.cddl35 ; Using .size and .cbor together with maps.
39 ? "opt_cbor" => bstr .size 5 .cbor (uint .size 4),
46 cborNumbers: bstr .cbor Numbers,
48 ?optCborStrings: bstr .cbor Strings,
169 encoded-cbor,
175 cbor-any,
181 ; Testing complex .cbor statements, including nested .cbor.
182 CBORBstr = bstr .cbor ([
183 hello: bstr .cbor "Hello",
184 pi: bstr .cbor 3.1415,
[all …]
Dmanifest-moran4.cddl15 suit-authentication-wrapper => bstr .cbor SUIT_Authentication_Wrapper / nil,
16 suit-manifest => bstr .cbor SUIT_Manifest,
17 ?suit-dependency-resolution => bstr .cbor SUIT_Command_Sequence,
18 ?suit-payload-fetch => bstr .cbor SUIT_Command_Sequence,
19 ?suit-install => bstr .cbor SUIT_Command_Sequence,
20 ?suit-text => bstr .cbor SUIT_Text_Map,
21 ?suit-coswid => bstr .cbor concise-software-identity
73 SUIT_Severable_Command_Sequence1 = SUIT_Digest / bstr .cbor SUIT_Command_Sequence
74 SUIT_Severable_Command_Sequence2 = SUIT_Digest / bstr .cbor SUIT_Command_Sequence
75 SUIT_Severable_Command_Sequence3 = SUIT_Digest / bstr .cbor SUIT_Command_Sequence
[all …]
Dmanifest20.cddl3 suit-authentication-wrapper => bstr .cbor SUIT_Authentication,
4 suit-manifest => bstr .cbor SUIT_Manifest,
11 bstr .cbor SUIT_Digest,
12 * bstr .cbor SUIT_Authentication_Block
27 ? suit-payload-fetch => bstr .cbor SUIT_Command_Sequence,
28 ? suit-install => bstr .cbor SUIT_Command_Sequence,
29 ? suit-text => bstr .cbor SUIT_Text_Map,
41 suit-common => bstr .cbor SUIT_Common,
49 ? suit-validate => bstr .cbor SUIT_Command_Sequence,
50 ? suit-load => bstr .cbor SUIT_Command_Sequence,
[all …]
Dmanifest14.cddl5 ? suit-delegation => bstr .cbor SUIT_Delegation,
6 suit-authentication-wrapper => bstr .cbor SUIT_Authentication,
7 suit-manifest => bstr .cbor SUIT_Manifest,
19 SUIT_Delegation = [ + [ + bstr .cbor CWT ] ]
24 bstr .cbor SUIT_Digest,
25 * bstr .cbor SUIT_Authentication_Block
40 ? suit-dependency-resolution => bstr .cbor SUIT_Command_Sequence,
41 ? suit-payload-fetch => bstr .cbor SUIT_Command_Sequence,
42 ? suit-install => bstr .cbor SUIT_Command_Sequence,
43 ? suit-text => bstr .cbor SUIT_Text_Map,
[all …]
Dmanifest16.cddl6 ;? suit-delegation => bstr .cbor SUIT_Delegation,
7 suit-authentication-wrapper => bstr .cbor SUIT_Authentication,
8 suit-manifest => bstr .cbor SUIT_Manifest,
20 bstr .cbor SUIT_Digest,
21 * bstr .cbor SUIT_Authentication_Block
36 ? suit-payload-fetch => bstr .cbor SUIT_Command_Sequence,
37 ? suit-install => bstr .cbor SUIT_Command_Sequence,
38 ? suit-text => bstr .cbor SUIT_Text_Map,
50 suit-common => bstr .cbor SUIT_Common,
58 ? suit-validate => bstr .cbor SUIT_Command_Sequence,
[all …]
Dmanifest3.cddl15 ?suit-delegation => bstr, ;.cbor SUIT_Delegation,
17 => bstr .cbor SUIT_Authentication_Wrapper / nil,
19 ?suit-dependency-resolution => bstr .cbor SUIT_Command_Sequence,
20 ?suit-payload-fetch => bstr .cbor SUIT_Command_Sequence,
21 ?suit-install => bstr .cbor SUIT_Command_Sequence,
22 ?suit-text => bstr .cbor SUIT_Text_Map,
23 ?suit-coswid => bstr .cbor concise-software-identity
35 $$SUIT_Manifest_Wrapped //= (suit-manifest => bstr .cbor SUIT_Manifest)
37 ?suit-manifest-encryption-info => bstr .cbor SUIT_Encryption_Wrapper,
76 ? suit-common => bstr .cbor SUIT_Common,
[all …]
Dmanifest9_simple.cddl16 ? suit-authentication-wrapper => bstr .cbor SUIT_Authentication,
17 suit-manifest => bstr .cbor SUIT_Manifest,
20 SUIT_Authentication = [ + bstr .cbor SUIT_Authentication_Block ]
26 protected: bstr .cbor header_map,
28 payload : bstr .cbor SUIT_Digest,
51 suit-common => bstr .cbor SUIT_Common,
53 ? suit-payload-fetch => bstr .cbor SUIT_Command_Sequence,
54 ? suit-install => bstr .cbor SUIT_Command_Sequence,
55 ? suit-validate => bstr .cbor SUIT_Command_Sequence,
56 ? suit-load => bstr .cbor SUIT_Command_Sequence,
[all …]
Dmanifest2.cddl15 suit-authentication-wrapper => bstr .cbor SUIT_Authentication_Wrapper / nil,
17 ?suit-dependency-resolution => bstr .cbor SUIT_Command_Sequence,
18 ?suit-payload-fetch => bstr .cbor SUIT_Command_Sequence,
19 ?suit-install => bstr .cbor SUIT_Command_Sequence,
20 ?suit-text => bstr .cbor SUIT_Text_Map,
21 ?suit-coswid => bstr .cbor concise-software-identity
34 $$SUIT_Manifest_Wrapped //= (suit-manifest => bstr .cbor SUIT_Manifest)
36 suit-manifest-encryption-info => bstr .cbor SUIT_Encryption_Wrapper,
75 ? suit-common => bstr .cbor SUIT_Common,
76 ? suit-dependency-resolution => SUIT_Digest / bstr .cbor SUIT_Command_Sequence,
[all …]
Dmanifest12.cddl17 ? suit-delegation => bstr .cbor SUIT_Delegation,
18 suit-authentication-wrapper => bstr .cbor SUIT_Authentication,
19 suit-manifest => bstr .cbor SUIT_Manifest,
22 *(suit-integrated-dependency-key => bstr .cbor SUIT_Envelope),
27 SUIT_Delegation = [ + [ + bstr .cbor CWT ] ]
32 bstr .cbor SUIT_Digest,
33 * bstr .cbor SUIT_Authentication_Block
67 protected: bstr .cbor header_map,
78 ? suit-dependency-resolution => bstr .cbor SUIT_Command_Sequence,
79 ? suit-payload-fetch => bstr .cbor SUIT_Command_Sequence,
[all …]
Dmanifest9.cddl15 ? suit-delegation => bstr .cbor SUIT_Delegation,
16 ? suit-authentication-wrapper => bstr .cbor SUIT_Authentication,
17 suit-manifest => bstr .cbor SUIT_Manifest,
23 SUIT_Delegation = [ + [ + bstr .cbor CWT ] ]
27 SUIT_Authentication = [ + bstr .cbor SUIT_Authentication_Block ]
35 ? suit-dependency-resolution => bstr .cbor SUIT_Command_Sequence,
36 ? suit-payload-fetch => bstr .cbor SUIT_Command_Sequence,
37 ? suit-install => bstr .cbor SUIT_Command_Sequence,
38 ? suit-text => bstr .cbor SUIT_Text_Map,
39 ? suit-coswid => bstr .cbor concise-software-identity,
[all …]
Dmanifest-moran3.cddl16 manifest: bstr .cbor Manifest,
17 ? preInstallExt: bstr .cbor PreInstallationInfo,
18 ? installExt: bstr .cbor InstallationInfo,
19 ? postInstallExt: bstr .cbor PostInstallationInfo,
21 ? coswidExt: bstr .cbor concise-software-identity
73 empty_or_serialized_map = (bstr .cbor header_map) / (bstr .size 0)
Dmap_bstr.cddl4 ["test3"] => bstr .cbor 1234,
Dyaml_compatibility.cddl8 "bstr_obj" => bstr .cbor Bstr_obj,
Deverything.cddl11 bstr_cbor: bstr .cbor uint /
Dcose.cddl16 empty_or_serialized_map = bstr .cbor header_map / bstr .size 0
/zcbor-3.6.0/tests/fuzz/
DCMakeLists.txt36 --output ${PROJECT_BINARY_DIR}/fuzz_input/input0.cbor
37 --output-as cbor
62 --output ${PROJECT_BINARY_DIR}/fuzz_input/input${n}.cbor
63 --output-as cbor
89 --output ${PROJECT_BINARY_DIR}/fuzz_input/input${n}.cbor
90 --output-as cbor
/zcbor-3.6.0/zcbor/
Dprelude.cddl25 encoded-cbor = #6.24(bstr)
31 cbor-any = #6.55799(any)
Dzcbor.py234 self.cbor = None
358 or ((self.cbor.value + "_bstr")
359 if self.cbor and self.cbor.type in ["TSTR", "OTHER"] else None)
395 if self.cbor:
396 self.cbor.set_base_name(self.var_name().strip("_") + "_cbor")
403 if self.cbor:
404 self.cbor.set_base_names()
439 if self.cbor:
440 self.cbor.set_id_prefix(self.child_base_id())
475 if self.cbor:
[all …]
/zcbor-3.6.0/
DREADME.md23 …rary can be used independently of the Python script. ([More information](#cbor-decodingencoding-li…
234 python3 <zcbor base>/zcbor/zcbor.py convert -c pet.cddl -t Pet -i mypet.yaml -o mypet.cbor
236 zcbor convert -c pet.cddl -t Pet -i mypet.yaml -o mypet.cbor
239 …gainst the Pet type in the CDDL description in pet.cddl, and writes binary CBOR data to mypet.cbor.
252 Which takes the json structure in mypet.json, converts any [yaml-compatible](#making-cbor-yaml-json…
305 …- `.cbor`/`.cborseq`: E.g. `Foo = bstr .cbor Bar` where Foo is a bstr whose contents must be CBOR …
347 …See the [CBOR tag documentation](https://www.iana.org/assignments/cbor-tags/cbor-tags.xhtml) for d…
431 Where a `bstr .cbor <Type>` is specified in the CDDL, AND the Type is an entry
529 [--input-as {yaml,json,cbor,cborhex}] -t ENTRY_TYPE
548 --input-as {yaml,json,cbor,cborhex}
[all …]
DRELEASE_NOTES.md140 * zcbor.py: Fix cbor bstrs so they properly check unambiguous values
142 * zcbor.py: Don't flag cbor bstrs as unambiguous
293 * Add support for more complex `.cbor` and `.cborseq` expressions.
364 * zcbor.py: Fix bugs in range checks in `bstr`s with `.cbor` statements.
410 * Improve decoding of cbor bstrs in DataTranslator
DARCHITECTURE.md167 …se entry types when there are `"BSTR"`s that are CBOR encoded, specified as `Foo = bstr .cbor Bar`.