Searched refs:data (Results 1 – 15 of 15) sorted by relevance
/zcbor-3.6.0/tests/fuzz/ |
D | main_entry.c | 9 int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { in LLVMFuzzerTestOneInput() argument 10 (void) fuzz_one_input(data, size); in LLVMFuzzerTestOneInput() 21 static size_t afl_read(uint8_t **data) { in afl_read() argument 27 *data = (uint8_t *) malloc(size); in afl_read() 28 if (NULL == *data) { in afl_read() 31 memcpy(*data, tmp_buffer, size); in afl_read() 37 size = afl_read(&data); \ 38 if (NULL == data || 0 == size) { \ 41 ret = fuzz_one_input(data, size); \ 42 free(data); \ [all …]
|
D | fuzz_everything.c | 4 bool fuzz_one_input(const uint8_t *data, size_t size) in fuzz_one_input() argument 8 bool ret = cbor_decode_EverythingUnion(data, size, in fuzz_one_input()
|
D | fuzz_pet.c | 4 bool fuzz_one_input(const uint8_t *data, size_t size) in fuzz_one_input() argument 8 bool ret = cbor_decode_Pet(data, size, in fuzz_one_input()
|
D | main_entry.h | 5 bool fuzz_one_input(const uint8_t *data, size_t size);
|
D | fuzz_manifest12.c | 4 bool fuzz_one_input(const uint8_t *data, size_t size) in fuzz_one_input() argument 11 bool ret = cbor_decode_SUIT_Envelope_Tagged(data, size, in fuzz_one_input()
|
/zcbor-3.6.0/ |
D | README.md | 5 It comes with a schema-driven script tool that can validate your data, or even generate code. 8 The validation and conversion part of the tool works with YAML and JSON data, in addition to CBOR. 12 …CBOR encoding and decoding using the C library, while also validating the data against all the rul… 14 …DDL (Concise Data Definition Language) which is a powerful human-readable data description languag… 28 - Decode and validate incoming CBOR data into human-readable YAML/JSON. 41 …ther with generated code, and how to use the script tool to do code generation and data conversion. 73 …ecoding_ if there are any lists, maps, or CBOR-encoded strings (`zcbor_bstr_*_decode`) in the data. 95 …ary more often use state backups. When decoding, ensure that the incoming data conforms to canonic… 106 The zcbor.py script can directly read CBOR, YAML, or JSON data and validate it against a CDDL descr… 107 It can also freely convert the data between CBOR/YAML/JSON. [all …]
|
D | ARCHITECTURE.md | 106 For example, the user can compose data in YAML or JSON files and have them converted to CBOR and va… 109 DataTranslator inherits from CddlXcoder and allows converting data between a number of different re… 110 While the conversion is happening, the data is validated against the CDDL description. 118 All three use the same internal representation of the decoded data, so it's trivial to convert betw… 135 …parate internal representation using `namedtuple`s to allow browsing CBOR data by the names given … 136 (This is more analogous to how the data is accessed in the C code.) 145 It also constructs struct definitions used to hold the decoded data/data to be encoded. 165 … and they are typically the "outermost" types, or the types it is expected that the data will have.
|
D | pyproject.toml | 41 [tool.setuptools.package-data]
|
D | RELEASE_NOTES.md | 73 * zcbor_decode: Add validation that data follows canonical CBOR rules 148 * Map elements in data must appear in the same order as they appear in the CDDL. 186 * Map elements in data must appear in the same order as they appear in the CDDL. 215 * Map elements in data must appear in the same order as they appear in the CDDL. 268 * Map elements in data must appear in the same order as they appear in the CDDL. 371 * Map elements in data must appear in the same order as they appear in the CDDL. 439 * Map elements in data must appear in the same order as they appear in the CDDL.
|
/zcbor-3.6.0/tests/scripts/ |
D | test_zcbor.py | 57 data = bytes.fromhex(data_path.read_text(encoding="utf-8").replace("\n", "")) 58 self.decode_string(data, *cddl_paths) 269 data = bytes.fromhex(p_test_vectors14[1].read_text(encoding="utf-8").replace("\n", "")) 270 struct = loads(data) 280 data = dumps(struct) 281 self.decode_string(data, p_manifest14, p_cose) 286 data = bytes.fromhex(p_test_vectors14[1].read_text(encoding="utf-8").replace("\n", "")) 287 struct = loads(data) 293 data = dumps(struct) 295 self.decode_string(data, p_manifest14, p_cose) [all …]
|
/zcbor-3.6.0/samples/pet/ |
D | CMakeLists.txt | 17 …-c ${CMAKE_CURRENT_LIST_DIR}/../../tests/cases/pet.cddl # Generate code for the data structures in… 27 # Convert the data in the pet1.yml file to CBOR and put the data in a header
|
D | README.md | 4 This sample uses zcbor-generated code to decode 3 instances of a data 5 structure. The 3 data structures are created in 3 different ways:
|
/zcbor-3.6.0/tests/cases/ |
D | serial_recovery.cddl | 8 ("data" => bstr) /
|
/zcbor-3.6.0/tests/decode/test8_suit12/src/ |
D | main.c | 738 bool fuzz_one_input(const uint8_t *data, size_t size);
|
/zcbor-3.6.0/tests/decode/test3_simple/src/ |
D | main.c | 453 bool fuzz_one_input(const uint8_t *data, size_t size);
|