Lines Matching defs:cbs
26 void CBS_init(CBS *cbs, const uint8_t *data, size_t len) { in CBS_init()
31 static int cbs_get(CBS *cbs, const uint8_t **p, size_t n) { in cbs_get()
42 int CBS_skip(CBS *cbs, size_t len) { in CBS_skip()
47 const uint8_t *CBS_data(const CBS *cbs) { in CBS_data()
51 size_t CBS_len(const CBS *cbs) { in CBS_len()
55 int CBS_stow(const CBS *cbs, uint8_t **out_ptr, size_t *out_len) { in CBS_stow()
71 int CBS_strdup(const CBS *cbs, char **out_ptr) { in CBS_strdup()
79 int CBS_contains_zero_byte(const CBS *cbs) { in CBS_contains_zero_byte()
83 int CBS_mem_equal(const CBS *cbs, const uint8_t *data, size_t len) { in CBS_mem_equal()
90 static int cbs_get_u(CBS *cbs, uint64_t *out, size_t len) { in cbs_get_u()
105 int CBS_get_u8(CBS *cbs, uint8_t *out) { in CBS_get_u8()
114 int CBS_get_u16(CBS *cbs, uint16_t *out) { in CBS_get_u16()
123 int CBS_get_u16le(CBS *cbs, uint16_t *out) { in CBS_get_u16le()
131 int CBS_get_u24(CBS *cbs, uint32_t *out) { in CBS_get_u24()
140 int CBS_get_u32(CBS *cbs, uint32_t *out) { in CBS_get_u32()
149 int CBS_get_u32le(CBS *cbs, uint32_t *out) { in CBS_get_u32le()
157 int CBS_get_u64(CBS *cbs, uint64_t *out) { in CBS_get_u64()
161 int CBS_get_u64le(CBS *cbs, uint64_t *out) { in CBS_get_u64le()
169 int CBS_get_last_u8(CBS *cbs, uint8_t *out) { in CBS_get_last_u8()
178 int CBS_get_bytes(CBS *cbs, CBS *out, size_t len) { in CBS_get_bytes()
187 int CBS_copy_bytes(CBS *cbs, uint8_t *out, size_t len) { in CBS_copy_bytes()
196 static int cbs_get_length_prefixed(CBS *cbs, CBS *out, size_t len_len) { in cbs_get_length_prefixed()
207 int CBS_get_u8_length_prefixed(CBS *cbs, CBS *out) { in CBS_get_u8_length_prefixed()
211 int CBS_get_u16_length_prefixed(CBS *cbs, CBS *out) { in CBS_get_u16_length_prefixed()
215 int CBS_get_u24_length_prefixed(CBS *cbs, CBS *out) { in CBS_get_u24_length_prefixed()
219 int CBS_get_until_first(CBS *cbs, CBS *out, uint8_t c) { in CBS_get_until_first()
230 static int parse_base128_integer(CBS *cbs, uint64_t *out) { in parse_base128_integer()
254 static int parse_asn1_tag(CBS *cbs, unsigned *out) { in parse_asn1_tag()
293 static int cbs_get_any_asn1_element(CBS *cbs, CBS *out, unsigned *out_tag, in cbs_get_any_asn1_element()
394 int CBS_get_any_asn1(CBS *cbs, CBS *out, unsigned *out_tag) { in CBS_get_any_asn1()
408 int CBS_get_any_asn1_element(CBS *cbs, CBS *out, unsigned *out_tag, in CBS_get_any_asn1_element()
414 int CBS_get_any_ber_asn1_element(CBS *cbs, CBS *out, unsigned *out_tag, in CBS_get_any_ber_asn1_element()
424 static int cbs_get_asn1(CBS *cbs, CBS *out, unsigned tag_value, in cbs_get_asn1()
447 int CBS_get_asn1(CBS *cbs, CBS *out, unsigned tag_value) { in CBS_get_asn1()
451 int CBS_get_asn1_element(CBS *cbs, CBS *out, unsigned tag_value) { in CBS_get_asn1_element()
455 int CBS_peek_asn1_tag(const CBS *cbs, unsigned tag_value) { in CBS_peek_asn1_tag()
465 int CBS_get_asn1_uint64(CBS *cbs, uint64_t *out) { in CBS_get_asn1_uint64()
487 int CBS_get_asn1_int64(CBS *cbs, int64_t *out) { in CBS_get_asn1_int64()
511 int CBS_get_asn1_bool(CBS *cbs, int *out) { in CBS_get_asn1_bool()
527 int CBS_get_optional_asn1(CBS *cbs, CBS *out, int *out_present, unsigned tag) { in CBS_get_optional_asn1()
544 int CBS_get_optional_asn1_octet_string(CBS *cbs, CBS *out, int *out_present, in CBS_get_optional_asn1_octet_string()
566 int CBS_get_optional_asn1_uint64(CBS *cbs, uint64_t *out, unsigned tag, in CBS_get_optional_asn1_uint64()
584 int CBS_get_optional_asn1_bool(CBS *cbs, int *out, unsigned tag, in CBS_get_optional_asn1_bool()
614 int CBS_is_valid_asn1_bitstring(const CBS *cbs) { in CBS_is_valid_asn1_bitstring()
636 int CBS_asn1_bitstring_has_bit(const CBS *cbs, unsigned bit) { in CBS_asn1_bitstring_has_bit()
651 int CBS_is_valid_asn1_integer(const CBS *cbs, int *out_is_negative) { in CBS_is_valid_asn1_integer()
670 int CBS_is_unsigned_asn1_integer(const CBS *cbs) { in CBS_is_unsigned_asn1_integer()
681 char *CBS_asn1_oid_to_text(const CBS *cbs) { in CBS_asn1_oid_to_text()