Searched refs:asn1_context_t (Results 1 – 4 of 4) sorted by relevance
/bootable/recovery/ |
D | asn1_decoder.h | 23 typedef struct asn1_context asn1_context_t; typedef 25 asn1_context_t* asn1_context_new(uint8_t* buffer, size_t length); 26 void asn1_context_free(asn1_context_t* ctx); 27 asn1_context_t* asn1_constructed_get(asn1_context_t* ctx); 28 bool asn1_constructed_skip_all(asn1_context_t* ctx); 29 int asn1_constructed_type(asn1_context_t* ctx); 30 asn1_context_t* asn1_sequence_get(asn1_context_t* ctx); 31 asn1_context_t* asn1_set_get(asn1_context_t* ctx); 32 bool asn1_sequence_next(asn1_context_t* seq); 33 bool asn1_oid_get(asn1_context_t* ctx, uint8_t** oid, size_t* length); [all …]
|
D | asn1_decoder.cpp | 27 } asn1_context_t; typedef 40 asn1_context_t* asn1_context_new(uint8_t* buffer, size_t length) { in asn1_context_new() 41 asn1_context_t* ctx = (asn1_context_t*) calloc(1, sizeof(asn1_context_t)); in asn1_context_new() 50 void asn1_context_free(asn1_context_t* ctx) { in asn1_context_free() 54 static inline int peek_byte(asn1_context_t* ctx) { in peek_byte() 61 static inline int get_byte(asn1_context_t* ctx) { in get_byte() 71 static inline bool skip_bytes(asn1_context_t* ctx, size_t num_skip) { in skip_bytes() 80 static bool decode_length(asn1_context_t* ctx, size_t* out_len) { in decode_length() 109 asn1_context_t* asn1_constructed_get(asn1_context_t* ctx) { in asn1_constructed_get() 118 asn1_context_t* app_ctx = asn1_context_new(ctx->p, length); in asn1_constructed_get() [all …]
|
D | verifier.cpp | 62 asn1_context_t* ctx = asn1_context_new(pkcs7_der, pkcs7_der_len); in read_pkcs7() 67 asn1_context_t* pkcs7_seq = asn1_sequence_get(ctx); in read_pkcs7() 69 asn1_context_t *signed_data_app = asn1_constructed_get(pkcs7_seq); in read_pkcs7() 71 asn1_context_t* signed_data_seq = asn1_sequence_get(signed_data_app); in read_pkcs7() 77 asn1_context_t *sig_set = asn1_set_get(signed_data_seq); in read_pkcs7() 79 asn1_context_t* sig_seq = asn1_sequence_get(sig_set); in read_pkcs7()
|
/bootable/recovery/tests/ |
D | asn1_decoder_test.cpp | 33 asn1_context_t* ctx = asn1_context_new(empty, sizeof(empty)); in TEST_F() 52 asn1_context_t* ctx = asn1_context_new(truncated, sizeof(truncated)); in TEST_F() 60 asn1_context_t* ctx = asn1_context_new(truncated, sizeof(truncated)); in TEST_F() 67 asn1_context_t* ctx = asn1_context_new(data, sizeof(data)); in TEST_F() 68 asn1_context_t* ptr = asn1_constructed_get(ctx); in TEST_F() 69 ASSERT_NE((asn1_context_t*)NULL, ptr); in TEST_F() 80 asn1_context_t* ctx = asn1_context_new(data, sizeof(data)); in TEST_F() 81 asn1_context_t* ptr = asn1_constructed_get(ctx); in TEST_F() 82 ASSERT_NE((asn1_context_t*)NULL, ptr); in TEST_F() 95 asn1_context_t* ctx = asn1_context_new(truncated, sizeof(truncated)); in TEST_F() [all …]
|