Searched refs:cbor (Results 1 – 2 of 2) sorted by relevance
/external/libweave/third_party/libuweave/src/ |
D | macaroon_encoding.c | 24 static inline CborMajorType get_type_(const uint8_t* cbor); 25 static inline uint8_t get_addtl_data_(const uint8_t* cbor); 26 static inline void set_type_(CborMajorType type, uint8_t* cbor); 27 static inline void set_addtl_data_(uint8_t addtl_data, uint8_t* cbor); 42 static bool blindly_decode_uint_(const uint8_t* cbor, 45 static bool blindly_decode_str_(const uint8_t* cbor, 50 bool uw_macaroon_encoding_get_item_len_(const uint8_t* cbor, in uw_macaroon_encoding_get_item_len_() argument 53 if (cbor == NULL || cbor_len == 0 || first_item_len == NULL) { in uw_macaroon_encoding_get_item_len_() 57 CborMajorType type = get_type_(cbor); in uw_macaroon_encoding_get_item_len_() 65 if (!blindly_decode_uint_(cbor, cbor_len, &unsigned_int)) { in uw_macaroon_encoding_get_item_len_() [all …]
|
D | macaroon_encoding.h | 26 bool uw_macaroon_encoding_get_item_len_(const uint8_t* cbor, 55 bool uw_macaroon_encoding_decode_uint_(const uint8_t* cbor, 58 bool uw_macaroon_encoding_decode_array_len_(const uint8_t* cbor, 61 bool uw_macaroon_encoding_decode_byte_str_(const uint8_t* cbor, 65 bool uw_macaroon_encoding_decode_text_str_(const uint8_t* cbor,
|