HomeSort by: relevance | last modified time | path
    Searched refs:cbor (Results 1 - 25 of 39) sorted by relevancy

1 2

  /src/external/mit/libcbor/lib/
Makefile 9 .PATH: ${DIST}/src ${DIST}/src/cbor ${DIST}/src/cbor/internal
18 LIB= cbor
20 SRCS+= cbor.c
34 # cbor/
49 # cbor/internal
59 cbor.h \
60 cbor/arrays.h \
61 cbor/bytestrings.h \
62 cbor/callbacks.h
    [all...]
  /src/external/mit/libcbor/dist/demo/
hello_cbor.c 8 #include <cbor.h>
  /src/external/mit/libcbor/dist/docs/doxygen/search/
files_2.js 5 ['cbor_2ec',['cbor.c',['../cbor_8c.html',1,'']]],
6 ['cbor_2eh',['cbor.h',['../cbor_8h.html',1,'']]],
  /src/external/bsd/libfido2/dist/src/
reset.c 13 const unsigned char cbor[] = { CTAP_CBOR_RESET }; local
15 if (fido_tx(dev, CTAP_CMD_CBOR, cbor, sizeof(cbor), ms) < 0) {
blob.h 11 #include <cbor.h>
largeblob.c 168 fido_log_debug("%s: cbor encode", __func__);
194 fido_log_debug("%s: cbor type", __func__);
241 struct cbor_load_result cbor; local
249 if ((item = cbor_load(ptr, len, &cbor)) == NULL) {
254 fido_log_debug("%s: cbor type", __func__);
284 fido_log_debug("%s: cbor type", __func__);
306 fido_log_debug("%s: cbor type", __func__);
315 fido_log_debug("%s: cbor type", __func__);
346 fido_log_debug("%s: cbor encode", __func__);
518 fido_log_debug("%s: cbor encode", __func__)
584 fido_blob_t cbor, *token = NULL; local
848 fido_blob_t cbor; local
    [all...]
config.c 19 uint8_t prefix[32 + 2 * sizeof(uint8_t)], cbor[128]; local
27 if ((cbor_len = cbor_serialize(item, cbor, sizeof(cbor))) == 0) {
37 memcpy(hmac->ptr + sizeof(prefix), cbor, cbor_len);
59 fido_log_debug("%s: cbor encode", __func__);
nfc.c 114 case CTAP_CMD_CBOR: /* wrap cbor */
150 tx_get_response(fido_dev_t *d, uint8_t count, bool cbor)
155 apdu[0] = cbor ? 0x80 : 0x00;
200 rx_msg(fido_dev_t *d, unsigned char *buf, size_t count, int ms, bool cbor)
211 if (tx_get_response(d, sw[1], cbor) < 0 ||
cbor.c 25 * Validate CTAP2 canonical CBOR encoding rules for maps.
57 fido_log_debug("%s: invalid cbor", __func__);
125 struct cbor_load_result cbor; local
140 if ((item = cbor_load(blob + 1, blob_len - 1, &cbor)) == NULL) {
148 fido_log_debug("%s: cbor type", __func__);
185 fido_log_debug("%s: cbor type", __func__);
212 fido_log_debug("%s: cbor type", __func__);
402 unsigned char *cbor = NULL; local
410 cbor_len = cbor_serialize_alloc(flat, &cbor, &cbor_alloc_len);
421 memcpy(f->ptr + 1, cbor, f->len - 1)
1080 struct cbor_load_result cbor; local
1250 struct cbor_load_result cbor; local
1320 struct cbor_load_result cbor; local
    [all...]
assert.c 58 fido_log_debug("%s: cbor type", __func__);
79 fido_log_debug("%s: cbor type", __func__);
107 fido_log_debug("%s: cbor encode", __func__);
218 const unsigned char cbor[] = { CTAP_CBOR_NEXT_ASSERT }; local
220 if (fido_tx(dev, CTAP_CMD_CBOR, cbor, sizeof(cbor), ms) < 0) {
461 struct cbor_load_result cbor; local
467 &cbor)) == NULL || cbor_isa_bytestring(item) == false ||
1052 struct cbor_load_result cbor; local
1061 if ((item = cbor_load(ptr, len, &cbor)) == NULL)
    [all...]
cred.c 25 fido_log_debug("%s: cbor type", __func__);
47 fido_log_debug("%s: cbor type", __func__);
78 fido_log_debug("%s: cbor encode", __func__);
562 fido_blob_reset(&attstmt->cbor);
628 struct cbor_load_result cbor; local
636 if ((item = cbor_load(ptr, len, &cbor)) == NULL) {
756 struct cbor_load_result cbor; local
764 if ((item = cbor_load(ptr, len, &cbor)) == NULL) {
789 struct cbor_load_result cbor; local
797 if ((item = cbor_load(ptr, len, &cbor)) == NULL)
    [all...]
  /src/external/bsd/libfido2/dist/fuzz/
fuzz_netlink.c 28 struct cbor_load_result cbor; local
33 (item = cbor_load(ptr, len, &cbor)) == NULL ||
34 cbor.read != len ||
64 unsigned char *cbor = NULL; local
78 if ((cbor_len = cbor_serialize_alloc(array, &cbor,
84 memcpy(ptr, cbor, cbor_len);
93 free(cbor);
fuzz_hid.c 55 struct cbor_load_result cbor; local
60 (item = cbor_load(ptr, len, &cbor)) == NULL ||
61 cbor.read != len ||
92 unsigned char *cbor = NULL; local
107 if ((cbor_len = cbor_serialize_alloc(array, &cbor,
113 memcpy(ptr, cbor, cbor_len);
122 free(cbor);
fuzz_largeblob.c 67 struct cbor_load_result cbor; local
72 (item = cbor_load(ptr, len, &cbor)) == NULL ||
73 cbor.read != len ||
105 unsigned char *cbor = NULL; local
121 if ((cbor_len = cbor_serialize_alloc(array, &cbor,
127 memcpy(ptr, cbor, cbor_len);
136 free(cbor);
233 /* XXX reuse p->get_wiredata as the body of the cbor array */
fuzz_pcsc.c 40 struct cbor_load_result cbor; local
45 (item = cbor_load(ptr, len, &cbor)) == NULL ||
46 cbor.read != len ||
79 unsigned char *cbor = NULL; local
96 if ((cbor_len = cbor_serialize_alloc(array, &cbor,
102 memcpy(ptr, cbor, cbor_len);
111 free(cbor);
mutator_aux.h 15 #include <cbor.h>
fuzz_bio.c 95 struct cbor_load_result cbor; local
100 (item = cbor_load(ptr, len, &cbor)) == NULL ||
101 cbor.read != len ||
137 unsigned char *cbor = NULL; local
157 if ((cbor_len = cbor_serialize_alloc(array, &cbor,
163 memcpy(ptr, cbor, cbor_len);
172 free(cbor);
fuzz_credman.c 84 struct cbor_load_result cbor; local
89 (item = cbor_load(ptr, len, &cbor)) == NULL ||
90 cbor.read != len ||
125 unsigned char *cbor = NULL; local
144 if ((cbor_len = cbor_serialize_alloc(array, &cbor,
150 memcpy(ptr, cbor, cbor_len);
159 free(cbor);
fuzz_assert.c 69 struct cbor_load_result cbor; local
74 (item = cbor_load(ptr, len, &cbor)) == NULL ||
75 cbor.read != len ||
117 unsigned char *cbor = NULL; local
143 if ((cbor_len = cbor_serialize_alloc(array, &cbor,
149 memcpy(ptr, cbor, cbor_len);
158 free(cbor);
fuzz_cred.c 75 struct cbor_load_result cbor; local
80 (item = cbor_load(ptr, len, &cbor)) == NULL ||
81 cbor.read != len ||
125 unsigned char *cbor = NULL; local
153 if ((cbor_len = cbor_serialize_alloc(array, &cbor,
159 memcpy(ptr, cbor, cbor_len);
168 free(cbor);
fuzz_mgmt.c 79 struct cbor_load_result cbor; local
84 (item = cbor_load(ptr, len, &cbor)) == NULL ||
85 cbor.read != len ||
121 unsigned char *cbor = NULL; local
141 if ((cbor_len = cbor_serialize_alloc(array, &cbor,
147 memcpy(ptr, cbor, cbor_len);
156 free(cbor);
fuzz_attobj.c 169 struct cbor_load_result cbor; local
174 (item = cbor_load(ptr, len, &cbor)) == NULL ||
175 cbor.read != len ||
207 unsigned char *cbor = NULL; local
223 if ((cbor_len = cbor_serialize_alloc(array, &cbor,
229 memcpy(ptr, cbor, cbor_len);
238 free(cbor);
  /src/external/mit/libcbor/dist/examples/
cjson2cbor.c 11 * JSON to CBOR. Please note that cbor_builder_* APIs are internal and thus
21 #include "cbor.h"
22 #include "cbor/internal/builder_callbacks.h"
23 #include "cbor/internal/loaders.h"
130 /* Convert between JSON and CBOR */
132 cbor_item_t *cbor = cjson_cbor_load(json, cjson_cbor_stream_decode); local
134 /* Print out CBOR bytes */
137 cbor_length = cbor_serialize_alloc(cbor, &buffer, &buffer_size);
144 cbor_decref(&cbor);
  /src/external/bsd/pam-u2f/lib/security/pam-u2f/
Makefile 18 cbor ${NETBSDSRCDIR}/external/mit/libcbor/lib \
  /src/external/bsd/libfido2/lib/
Makefile 25 cbor.c \
124 COPTS.cbor.c+=-Wno-error=deprecated-declarations

Completed in 34 milliseconds

1 2