Home
last modified time | relevance | path

Searched full:key (Results 1 – 20 of 20) sorted by relevance

/zcbor-3.7.0/zcbor/
Dzcbor.py229 # Key element. Only for children of "MAP" elements. self.key is of the
231 self.key = None
319 (key, value, slashes)
320 for (_1, key, slashes, value, _2) in getrp(type_regex, S | M).findall(instr)]
321 for key, value, slashes in types:
323 result[key] += slashes
324 result[key] += value
325 result[key] = result[key].lstrip(slashes) # strip from front
327 if key in result:
328 raise ValueError(f"Duplicate CDDL type found: {key}")
[all …]
/zcbor-3.7.0/tests/cases/
Dmanifest14.pub1 -----BEGIN PUBLIC KEY-----
4 -----END PUBLIC KEY-----
Dmanifest14.priv1 -----BEGIN PRIVATE KEY-----
5 -----END PRIVATE KEY-----
Dyaml_compatibility.yaml8 key: ["This list is a dict key."]
Dsenml.cddl12 * key-value-pair
16 key-value-pair = ( label => value )
Dmanifest14.cddl48 SUIT_Integrated_Payload = (suit-integrated-payload-key => bstr)
50 suit-integrated-dependency-key => bstr .cbor SUIT_Envelope
52 suit-integrated-payload-key = nint / uint .ge 24
53 suit-integrated-dependency-key = suit-integrated-payload-key
314 * $$suit-text-component-key-extensions
322 * $$suit-text-key-extensions
Dmap_bstr.yaml8 key: ["test3"]
Deverything_example0.yaml14 - {zcbor_keyval1: {key: 1, val: "one"}}
Dmanifest16.cddl42 SUIT_Integrated_Payload = (suit-integrated-payload-key => bstr)
43 suit-integrated-payload-key = tstr
192 * $$suit-text-component-key-extensions
200 * $$suit-text-key-extensions
Dmanifest20.cddl33 SUIT_Integrated_Payload = (suit-integrated-payload-key => bstr)
34 suit-integrated-payload-key = tstr
183 * $$suit-text-component-key-extensions
191 * $$suit-text-key-extensions
Dmanifest12.cddl21 *(suit-integrated-payload-key => bstr),
22 *(suit-integrated-dependency-key => bstr .cbor SUIT_Envelope),
86 suit-integrated-payload-key = nint / uint .ge 24
87 suit-integrated-dependency-key = nint / uint .ge 24
339 * $$suit-text-component-key-extensions
347 * $$suit-text-key-extensions
Deverything_example1.yaml14 - {zcbor_keyval1: {key: 2, val: "two"}}
Dcose.cddl22 ? 4 => bstr, ; key identifier
Dmanifest-moran3.cddl160 KeyListRegenParameters = [ * key: tstr ]
Dmanifest9.cddl374 * $$suit-text-component-key-extensions
382 * $$suit-text-key-extensions
/zcbor-3.7.0/
DARCHITECTURE.md75 Children of `"MAP"` objects come in key/value pairs.
76 … will be children of the `"MAP"` object, and the keys can be found as `self.key` in these children.
96 - the key associated with this value
99 - key_var_condition(): Whether it needs a key member
130 - `{<key>: <value>}` => `{keyval<i>: {"key": <key>, "val": <value>}}` (i is an integer unique withi…
DREADME.md154 …other than text string: In YAML, such key value pairs are represented as `{"zcbor_keyval<unique in…
291 …- `{}`: Map. Key/value pairs as are declared as `<key> => <value>` or `<key>: <value>`. Note that …
312 …g. `Foo = {4*8(int => bstr)}` where Foo is a map with 4 to 8 key/value pairs where each key is an …
361 …length is in number of elements, and for `map`, the length is in number of key/value element pairs.
/zcbor-3.7.0/include/
Dzcbor_decode.h157 /** Search for a key in a map.
159 * The CBOR spec allows elements (key-value pairs) in maps to appear in any order.
167 * the @p state is pointing to the value corresponding to the found key.
197 * matched key. If unsuccessful, the @p state will be
202 * @retval true If the key was found, i.e. @p key_decoder returned true.
203 * @retval false If the key was not found after searching all map elements.
204 * Or the map was pointing to a value (not a key).
210 /** Find a specific bstr/tstr key as part of a map with unknown element order.
230 * called internally by @ref zcbor_unordered_map_search whenever a key is found.
235 * element (key-value pair) that is currently being processed, or that has just been
/zcbor-3.7.0/src/
Dzcbor_decode.c889 /* elem_count cannot be odd since the map consists of key-value-pairs.
891 * of a key). */
923 /* Skip over both the key and the value. */
/zcbor-3.7.0/tests/scripts/
Dtest_zcbor.py203 self.key = VerifyingKey.from_pem(p_manifest14_pub.read_text(encoding="utf-8"))
215 self.key.verify(manifest_signature, sig_struct, hashfunc=sha256)
318 struct.value[23] = b'' # Invalid integrated payload key