Searched full:key (Results 1 – 20 of 20) sorted by relevance
/zcbor-3.7.0/zcbor/ |
D | zcbor.py | 229 # 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/ |
D | manifest14.pub | 1 -----BEGIN PUBLIC KEY----- 4 -----END PUBLIC KEY-----
|
D | manifest14.priv | 1 -----BEGIN PRIVATE KEY----- 5 -----END PRIVATE KEY-----
|
D | yaml_compatibility.yaml | 8 key: ["This list is a dict key."]
|
D | senml.cddl | 12 * key-value-pair 16 key-value-pair = ( label => value )
|
D | manifest14.cddl | 48 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
|
D | map_bstr.yaml | 8 key: ["test3"]
|
D | everything_example0.yaml | 14 - {zcbor_keyval1: {key: 1, val: "one"}}
|
D | manifest16.cddl | 42 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
|
D | manifest20.cddl | 33 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
|
D | manifest12.cddl | 21 *(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
|
D | everything_example1.yaml | 14 - {zcbor_keyval1: {key: 2, val: "two"}}
|
D | cose.cddl | 22 ? 4 => bstr, ; key identifier
|
D | manifest-moran3.cddl | 160 KeyListRegenParameters = [ * key: tstr ]
|
D | manifest9.cddl | 374 * $$suit-text-component-key-extensions 382 * $$suit-text-key-extensions
|
/zcbor-3.7.0/ |
D | ARCHITECTURE.md | 75 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…
|
D | README.md | 154 …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/ |
D | zcbor_decode.h | 157 /** 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/ |
D | zcbor_decode.c | 889 /* 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/ |
D | test_zcbor.py | 203 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
|