Home
last modified time | relevance | path

Searched refs:cbor_serialize_alloc (Results 1 – 25 of 26) sorted by relevance

12

/freebsd/contrib/libcbor/test/
H A Dcbor_serialize_test.c8 // cbor_serialize_alloc
502 assert_size_equal(cbor_serialize_alloc(item, &output, &output_size), 37); in test_auto_serialize_too_large()
514 assert_size_equal(cbor_serialize_alloc(item, &output, NULL), 1); in test_auto_serialize_alloc_fail()
532 assert_size_equal(cbor_serialize_alloc(item, &output, &output_size), 0); in test_auto_serialize_zero_len_bytestring()
547 assert_size_equal(cbor_serialize_alloc(item, &output, &output_size), 0);
560 assert_size_equal(cbor_serialize_alloc(item, &output, NULL), 1); in test_auto_serialize_zero_len_bytestring_chunk()
571 assert_size_equal(cbor_serialize_alloc(item, &output, NULL), 1); in test_auto_serialize_zero_len_string_chunk()
586 assert_size_equal(cbor_serialize_alloc(item, &output, NULL), 3); in test_auto_serialize_zero_len_array()
600 assert_size_equal(cbor_serialize_alloc(item, &output, NULL), 3); in test_auto_serialize_zero_len_map()
611 assert_size_equal(cbor_serialize_alloc(ite
[all...]
/freebsd/contrib/libcbor/doc/source/api/
H A Dencoding.rst4 …to encode data items is using the :func:`cbor_serialize` or :func:`cbor_serialize_alloc` functions:
7 .. doxygenfunction:: cbor_serialize_alloc
/freebsd/contrib/libcbor/examples/
H A Dcreate_items.c27 cbor_serialize_alloc(root, &buffer, &buffer_size); in main()
H A Dcjson2cbor.c137 cbor_serialize_alloc(cbor, &buffer, &buffer_size); in main()
/freebsd/contrib/libcbor/
H A DCHANGELOG.md28 - [Fix a regression in `cbor_serialize_alloc` that caused serialization of zero-length strings and bytestrings or byte/strings with zero-length chunks to fail](https://github.com/PJK/libcbor/pull/260) (discovered by [martelletto](https://github.com/martelletto))
32 - Make the buffer_size optional in `cbor_serialize_alloc` [[#205]](https://github.com/PJK/libcbor/pull/205) (by [hughsie](https://github.com/hughsie))
47 - [Reworked `cbor_serialize_alloc` to allocate the exact amount of memory necessary upfront](https://github.com/PJK/libcbor/pull/251)
48 - This should significantly speed up `cbor_serialize_alloc` for large items by avoiding multiple reallocation iterations
49 - Clients should not use the return value of `cbor_serialize_alloc`. It may be removed in the future.
H A DREADME.md81 cbor_serialize_alloc(root, &buffer, &buffer_size);
/freebsd/contrib/libfido2/fuzz/
H A Dwrapped.sym26 cbor_serialize_alloc
H A Dfuzz_netlink.c78 if ((cbor_len = cbor_serialize_alloc(array, &cbor, in pack()
H A Dfuzz_hid.c107 if ((cbor_len = cbor_serialize_alloc(array, &cbor, in pack()
H A Dfuzz_largeblob.c121 if ((cbor_len = cbor_serialize_alloc(array, &cbor, in pack()
H A Dfuzz_pcsc.c96 if ((cbor_len = cbor_serialize_alloc(array, &cbor, in pack()
H A Dfuzz_credman.c144 if ((cbor_len = cbor_serialize_alloc(array, &cbor, in pack()
H A Dwrap.c630 cbor_serialize_alloc,
H A Dfuzz_bio.c157 if ((cbor_len = cbor_serialize_alloc(array, &cbor, in pack()
H A Dfuzz_mgmt.c141 if ((cbor_len = cbor_serialize_alloc(array, &cbor, in pack()
H A Dfuzz_assert.c143 if ((cbor_len = cbor_serialize_alloc(array, &cbor, in pack()
H A Dfuzz_cred.c153 if ((cbor_len = cbor_serialize_alloc(array, &cbor, in pack()
/freebsd/contrib/libcbor/src/cbor/
H A Dserialization.h65 CBOR_EXPORT size_t cbor_serialize_alloc(const cbor_item_t *item,
H A Dserialization.c154 size_t cbor_serialize_alloc(const cbor_item_t *item, unsigned char **buffer, in cbor_serialize_alloc() function
/freebsd/contrib/libcbor/oss-fuzz/
H A Dcbor_load_fuzzer.cc78 cbor_serialize_alloc(item, &buffer, &buffer_size); in LLVMFuzzerTestOneInput()
/freebsd/contrib/libfido2/src/
H A Dblob.c128 if ((b->len = cbor_serialize_alloc(item, &b->ptr, &alloc)) == 0) { in fido_blob_serialise()
H A Du2f.c131 (fake_cbor_ad->len = cbor_serialize_alloc(item, &fake_cbor_ad->ptr, in authdata_fake()
421 if ((cbor_blob->len = cbor_serialize_alloc(pk_cbor, &cbor_blob->ptr, in cbor_blob_from_ec_point()
479 if ((out->len = cbor_serialize_alloc(item, &out->ptr, in encode_cred_attstmt()
565 if ((out->len = cbor_serialize_alloc(authdata_cbor, &out->ptr, in encode_cred_authdata()
H A Dcbor.c410 cbor_len = cbor_serialize_alloc(flat, &cbor, &cbor_alloc_len); in cbor_build_frame()
1306 (authdata_cbor->len = cbor_serialize_alloc(item, in cbor_decode_cred_authdata()
1355 (authdata_cbor->len = cbor_serialize_alloc(item, in cbor_decode_assert_authdata()
1468 (attstmt->cbor.len = cbor_serialize_alloc(item, in cbor_decode_attstmt()
H A Dbio.c38 if ((cbor_len = cbor_serialize_alloc(*param, &cbor, in bio_prepare_hmac()
/freebsd/contrib/libcbor/doc/source/
H A Dusing.rst81 cbor_serialize_alloc(root, &buffer, &buffer_size);

12