Home
last modified time | relevance | path

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

/zcbor-latest/zcbor/
Dzcbor.py235 # Key element. Only for children of "MAP" elements. self.key is of the
237 self.key = None
326 (key, value, slashes)
327 for (_1, key, slashes, value, _2) in getrp(type_regex, S | M).findall(instr)]
328 for key, value, slashes in types:
330 result[key] += slashes
331 result[key] += value
332 result[key] = result[key].lstrip(slashes) # strip from front
334 if key in result:
335 raise ValueError(f"Duplicate CDDL type found: {key}")
[all …]
/zcbor-latest/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-latest/include/
Dzcbor_decode.h154 /** Search for a key in a map.
156 * The CBOR spec allows elements (key-value pairs) in maps to appear in any order.
164 * the @p state is pointing to the value corresponding to the found key.
194 * matched key. If unsuccessful, the @p state will be
199 * @retval true If the key was found, i.e. @p key_decoder returned true.
200 * @retval false If the key was not found after searching all map elements.
201 * Or the map was pointing to a value (not a key).
207 /** Find a specific bstr/tstr key as part of a map with unknown element order.
227 * called internally by @ref zcbor_unordered_map_search whenever a key is found.
232 * element (key-value pair) that is currently being processed, or that has just been
/zcbor-latest/
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
DREADME.md159 …other than text string: In YAML, such key value pairs are represented as `{"zcbor_keyval<unique in…
296 …- `{}`: Map. Key/value pairs as are declared as `<key> => <value>` or `<key>: <value>`. Note that …
317 …g. `Foo = {4*8(int => bstr)}` where Foo is a map with 4 to 8 key/value pairs where each key is an …
384 …length is in number of elements, and for `map`, the length is in number of key/value element pairs.
/zcbor-latest/src/
Dzcbor_decode.c935 /* elem_count cannot be odd since the map consists of key-value-pairs. in zcbor_unordered_map_search()
937 * of a key). */ in zcbor_unordered_map_search()
969 /* Skip over both the key and the value. */ in zcbor_unordered_map_search()
/zcbor-latest/tests/scripts/
Dtest_zcbor.py209 self.key = VerifyingKey.from_pem(p_manifest14_pub.read_text(encoding="utf-8"))
221 self.key.verify(manifest_signature, sig_struct, hashfunc=sha256)
324 struct.value[23] = b'' # Invalid integrated payload key