Lines Matching refs:length
61 size_t length = 0; in decode_length() local
67 length <<= 8; in decode_length()
68 length += byte; in decode_length()
70 *out_len = length; in decode_length()
82 size_t length; in asn1_constructed_get() local
83 if (!decode_length(&length) || length > length_) { in asn1_constructed_get()
86 asn1_context* app_ctx = new asn1_context(p_, length); in asn1_constructed_get()
95 size_t length; in asn1_constructed_skip_all() local
96 if (!decode_length(&length) || !skip_bytes(length)) { in asn1_constructed_skip_all()
112 size_t length; in asn1_sequence_get() local
113 if (!decode_length(&length) || length > length_) { in asn1_sequence_get()
116 return new asn1_context(p_, length); in asn1_sequence_get()
123 size_t length; in asn1_set_get() local
124 if (!decode_length(&length) || length > length_) { in asn1_set_get()
127 return new asn1_context(p_, length); in asn1_set_get()
131 size_t length; in asn1_sequence_next() local
132 if (get_byte() == -1 || !decode_length(&length) || !skip_bytes(length)) { in asn1_sequence_next()
138 bool asn1_context::asn1_oid_get(const uint8_t** oid, size_t* length) { in asn1_oid_get() argument
142 if (!decode_length(length) || *length == 0 || *length > length_) { in asn1_oid_get()
149 bool asn1_context::asn1_octet_string_get(const uint8_t** octet_string, size_t* length) { in asn1_octet_string_get() argument
153 if (!decode_length(length) || *length == 0 || *length > length_) { in asn1_octet_string_get()