Lines Matching defs:asn1_context_t
28 } asn1_context_t;
41 asn1_context_t* asn1_context_new(uint8_t* buffer, size_t length) {
42 asn1_context_t* ctx = (asn1_context_t*) calloc(1, sizeof(asn1_context_t));
51 void asn1_context_free(asn1_context_t* ctx) {
55 static inline int peek_byte(asn1_context_t* ctx) {
62 static inline int get_byte(asn1_context_t* ctx) {
72 static inline bool skip_bytes(asn1_context_t* ctx, size_t num_skip) {
81 static bool decode_length(asn1_context_t* ctx, size_t* out_len) {
110 asn1_context_t* asn1_constructed_get(asn1_context_t* ctx) {
119 asn1_context_t* app_ctx = asn1_context_new(ctx->p, length);
124 bool asn1_constructed_skip_all(asn1_context_t* ctx) {
137 int asn1_constructed_type(asn1_context_t* ctx) {
141 asn1_context_t* asn1_sequence_get(asn1_context_t* ctx) {
152 asn1_context_t* asn1_set_get(asn1_context_t* ctx) {
163 bool asn1_sequence_next(asn1_context_t* ctx) {
171 bool asn1_oid_get(asn1_context_t* ctx, uint8_t** oid, size_t* length) {
182 bool asn1_octet_string_get(asn1_context_t* ctx, uint8_t** octet_string, size_t* length) {