• Home
  • Raw
  • Download

Lines Matching defs:cbs

29 void CBS_init(CBS *cbs, const uint8_t *data, size_t len) {  in CBS_init()
34 static int cbs_get(CBS *cbs, const uint8_t **p, size_t n) { in cbs_get()
45 int CBS_skip(CBS *cbs, size_t len) { in CBS_skip()
50 const uint8_t *CBS_data(const CBS *cbs) { in CBS_data()
54 size_t CBS_len(const CBS *cbs) { in CBS_len()
58 int CBS_stow(const CBS *cbs, uint8_t **out_ptr, size_t *out_len) { in CBS_stow()
74 int CBS_strdup(const CBS *cbs, char **out_ptr) { in CBS_strdup()
82 int CBS_contains_zero_byte(const CBS *cbs) { in CBS_contains_zero_byte()
86 int CBS_mem_equal(const CBS *cbs, const uint8_t *data, size_t len) { in CBS_mem_equal()
93 static int cbs_get_u(CBS *cbs, uint64_t *out, size_t len) { in cbs_get_u()
108 int CBS_get_u8(CBS *cbs, uint8_t *out) { in CBS_get_u8()
117 int CBS_get_u16(CBS *cbs, uint16_t *out) { in CBS_get_u16()
126 int CBS_get_u16le(CBS *cbs, uint16_t *out) { in CBS_get_u16le()
134 int CBS_get_u24(CBS *cbs, uint32_t *out) { in CBS_get_u24()
143 int CBS_get_u32(CBS *cbs, uint32_t *out) { in CBS_get_u32()
152 int CBS_get_u32le(CBS *cbs, uint32_t *out) { in CBS_get_u32le()
160 int CBS_get_u64(CBS *cbs, uint64_t *out) { in CBS_get_u64()
164 int CBS_get_u64le(CBS *cbs, uint64_t *out) { in CBS_get_u64le()
172 int CBS_get_last_u8(CBS *cbs, uint8_t *out) { in CBS_get_last_u8()
181 int CBS_get_bytes(CBS *cbs, CBS *out, size_t len) { in CBS_get_bytes()
190 int CBS_copy_bytes(CBS *cbs, uint8_t *out, size_t len) { in CBS_copy_bytes()
199 static int cbs_get_length_prefixed(CBS *cbs, CBS *out, size_t len_len) { in cbs_get_length_prefixed()
210 int CBS_get_u8_length_prefixed(CBS *cbs, CBS *out) { in CBS_get_u8_length_prefixed()
214 int CBS_get_u16_length_prefixed(CBS *cbs, CBS *out) { in CBS_get_u16_length_prefixed()
218 int CBS_get_u24_length_prefixed(CBS *cbs, CBS *out) { in CBS_get_u24_length_prefixed()
222 int CBS_get_until_first(CBS *cbs, CBS *out, uint8_t c) { in CBS_get_until_first()
230 int CBS_get_u64_decimal(CBS *cbs, uint64_t *out) { in CBS_get_u64_decimal()
257 static int parse_base128_integer(CBS *cbs, uint64_t *out) { in parse_base128_integer()
281 static int parse_asn1_tag(CBS *cbs, CBS_ASN1_TAG *out) { in parse_asn1_tag()
320 static int cbs_get_any_asn1_element(CBS *cbs, CBS *out, CBS_ASN1_TAG *out_tag, in cbs_get_any_asn1_element()
421 int CBS_get_any_asn1(CBS *cbs, CBS *out, CBS_ASN1_TAG *out_tag) { in CBS_get_any_asn1()
435 int CBS_get_any_asn1_element(CBS *cbs, CBS *out, CBS_ASN1_TAG *out_tag, in CBS_get_any_asn1_element()
441 int CBS_get_any_ber_asn1_element(CBS *cbs, CBS *out, CBS_ASN1_TAG *out_tag, in CBS_get_any_ber_asn1_element()
451 static int cbs_get_asn1(CBS *cbs, CBS *out, CBS_ASN1_TAG tag_value, in cbs_get_asn1()
474 int CBS_get_asn1(CBS *cbs, CBS *out, CBS_ASN1_TAG tag_value) { in CBS_get_asn1()
478 int CBS_get_asn1_element(CBS *cbs, CBS *out, CBS_ASN1_TAG tag_value) { in CBS_get_asn1_element()
482 int CBS_peek_asn1_tag(const CBS *cbs, CBS_ASN1_TAG tag_value) { in CBS_peek_asn1_tag()
488 int CBS_get_asn1_uint64(CBS *cbs, uint64_t *out) { in CBS_get_asn1_uint64()
510 int CBS_get_asn1_int64(CBS *cbs, int64_t *out) { in CBS_get_asn1_int64()
531 int CBS_get_asn1_bool(CBS *cbs, int *out) { in CBS_get_asn1_bool()
547 int CBS_get_optional_asn1(CBS *cbs, CBS *out, int *out_present, CBS_ASN1_TAG tag) { in CBS_get_optional_asn1()
564 int CBS_get_optional_asn1_octet_string(CBS *cbs, CBS *out, int *out_present, in CBS_get_optional_asn1_octet_string()
586 int CBS_get_optional_asn1_uint64(CBS *cbs, uint64_t *out, CBS_ASN1_TAG tag, in CBS_get_optional_asn1_uint64()
604 int CBS_get_optional_asn1_bool(CBS *cbs, int *out, CBS_ASN1_TAG tag, in CBS_get_optional_asn1_bool()
634 int CBS_is_valid_asn1_bitstring(const CBS *cbs) { in CBS_is_valid_asn1_bitstring()
656 int CBS_asn1_bitstring_has_bit(const CBS *cbs, unsigned bit) { in CBS_asn1_bitstring_has_bit()
671 int CBS_is_valid_asn1_integer(const CBS *cbs, int *out_is_negative) { in CBS_is_valid_asn1_integer()
690 int CBS_is_unsigned_asn1_integer(const CBS *cbs) { in CBS_is_unsigned_asn1_integer()
701 int CBS_is_valid_asn1_oid(const CBS *cbs) { in CBS_is_valid_asn1_oid()
724 char *CBS_asn1_oid_to_text(const CBS *cbs) { in CBS_asn1_oid_to_text()
770 static int cbs_get_two_digits(CBS *cbs, int *out) { in cbs_get_two_digits()
817 static int CBS_parse_rfc5280_time_internal(const CBS *cbs, int is_gentime, in CBS_parse_rfc5280_time_internal()
918 int CBS_parse_generalized_time(const CBS *cbs, struct tm *out_tm, in CBS_parse_generalized_time()
923 int CBS_parse_utc_time(const CBS *cbs, struct tm *out_tm, in CBS_parse_utc_time()