Lines Matching defs:cbs
27 void CBS_init(CBS *cbs, const uint8_t *data, size_t len) { in CBS_init()
32 static int cbs_get(CBS *cbs, const uint8_t **p, size_t n) { in cbs_get()
43 int CBS_skip(CBS *cbs, size_t len) { in CBS_skip()
48 const uint8_t *CBS_data(const CBS *cbs) { in CBS_data()
52 size_t CBS_len(const CBS *cbs) { in CBS_len()
56 int CBS_stow(const CBS *cbs, uint8_t **out_ptr, size_t *out_len) { in CBS_stow()
72 int CBS_strdup(const CBS *cbs, char **out_ptr) { in CBS_strdup()
80 int CBS_contains_zero_byte(const CBS *cbs) { in CBS_contains_zero_byte()
84 int CBS_mem_equal(const CBS *cbs, const uint8_t *data, size_t len) { in CBS_mem_equal()
91 static int cbs_get_u(CBS *cbs, uint64_t *out, size_t len) { in cbs_get_u()
106 int CBS_get_u8(CBS *cbs, uint8_t *out) { in CBS_get_u8()
115 int CBS_get_u16(CBS *cbs, uint16_t *out) { in CBS_get_u16()
124 int CBS_get_u24(CBS *cbs, uint32_t *out) { in CBS_get_u24()
133 int CBS_get_u32(CBS *cbs, uint32_t *out) { in CBS_get_u32()
142 int CBS_get_u64(CBS *cbs, uint64_t *out) { in CBS_get_u64()
146 int CBS_get_last_u8(CBS *cbs, uint8_t *out) { in CBS_get_last_u8()
155 int CBS_get_bytes(CBS *cbs, CBS *out, size_t len) { in CBS_get_bytes()
164 int CBS_copy_bytes(CBS *cbs, uint8_t *out, size_t len) { in CBS_copy_bytes()
173 static int cbs_get_length_prefixed(CBS *cbs, CBS *out, size_t len_len) { in cbs_get_length_prefixed()
184 int CBS_get_u8_length_prefixed(CBS *cbs, CBS *out) { in CBS_get_u8_length_prefixed()
188 int CBS_get_u16_length_prefixed(CBS *cbs, CBS *out) { in CBS_get_u16_length_prefixed()
192 int CBS_get_u24_length_prefixed(CBS *cbs, CBS *out) { in CBS_get_u24_length_prefixed()
199 static int parse_base128_integer(CBS *cbs, uint64_t *out) { in parse_base128_integer()
223 static int parse_asn1_tag(CBS *cbs, unsigned *out) { in parse_asn1_tag()
256 static int cbs_get_any_asn1_element(CBS *cbs, CBS *out, unsigned *out_tag, in cbs_get_any_asn1_element()
337 int CBS_get_any_asn1(CBS *cbs, CBS *out, unsigned *out_tag) { in CBS_get_any_asn1()
351 int CBS_get_any_asn1_element(CBS *cbs, CBS *out, unsigned *out_tag, in CBS_get_any_asn1_element()
357 int CBS_get_any_ber_asn1_element(CBS *cbs, CBS *out, unsigned *out_tag, in CBS_get_any_ber_asn1_element()
363 static int cbs_get_asn1(CBS *cbs, CBS *out, unsigned tag_value, in cbs_get_asn1()
386 int CBS_get_asn1(CBS *cbs, CBS *out, unsigned tag_value) { in CBS_get_asn1()
390 int CBS_get_asn1_element(CBS *cbs, CBS *out, unsigned tag_value) { in CBS_get_asn1_element()
394 int CBS_peek_asn1_tag(const CBS *cbs, unsigned tag_value) { in CBS_peek_asn1_tag()
404 int CBS_get_asn1_uint64(CBS *cbs, uint64_t *out) { in CBS_get_asn1_uint64()
441 int CBS_get_asn1_bool(CBS *cbs, int *out) { in CBS_get_asn1_bool()
457 int CBS_get_optional_asn1(CBS *cbs, CBS *out, int *out_present, unsigned tag) { in CBS_get_optional_asn1()
474 int CBS_get_optional_asn1_octet_string(CBS *cbs, CBS *out, int *out_present, in CBS_get_optional_asn1_octet_string()
496 int CBS_get_optional_asn1_uint64(CBS *cbs, uint64_t *out, unsigned tag, in CBS_get_optional_asn1_uint64()
514 int CBS_get_optional_asn1_bool(CBS *cbs, int *out, unsigned tag, in CBS_get_optional_asn1_bool()
544 int CBS_is_valid_asn1_bitstring(const CBS *cbs) { in CBS_is_valid_asn1_bitstring()
566 int CBS_asn1_bitstring_has_bit(const CBS *cbs, unsigned bit) { in CBS_asn1_bitstring_has_bit()
587 char *CBS_asn1_oid_to_text(const CBS *cbs) { in CBS_asn1_oid_to_text()