Lines Matching defs:item
23 decode_coord(const cbor_item_t *item, void *xy, size_t xy_len)
25 if (cbor_isa_bytestring(item) == false ||
26 cbor_bytestring_is_definite(item) == false ||
27 cbor_bytestring_length(item) != xy_len) {
32 memcpy(xy, cbor_bytestring_handle(item), xy_len);
57 es256_pk_decode(const cbor_item_t *item, es256_pk_t *k)
59 if (cbor_isa_map(item) == false ||
60 cbor_map_is_definite(item) == false ||
61 cbor_map_iter(item, k, decode_pubkey_point) < 0) {
72 cbor_item_t *item = NULL;
79 if ((item = cbor_new_definite_map(5)) == NULL)
85 !cbor_map_add(item, argv[0]))
102 !cbor_map_add(item, argv[1]))
108 !cbor_map_add(item, argv[2]))
114 sizeof(pk->x))) == NULL || !cbor_map_add(item, argv[3]))
120 sizeof(pk->y))) == NULL || !cbor_map_add(item, argv[4]))
126 if (item != NULL) {
127 cbor_decref(&item);
128 item = NULL;
139 return (item);