Lines Matching refs:length
59 size_t length = 0; in decode_length() local
65 length <<= 8; in decode_length()
66 length += byte; in decode_length()
68 *out_len = length; in decode_length()
80 size_t length; in asn1_constructed_get() local
81 if (!decode_length(&length) || length > length_) { in asn1_constructed_get()
84 asn1_context* app_ctx = new asn1_context(p_, length); in asn1_constructed_get()
93 size_t length; in asn1_constructed_skip_all() local
94 if (!decode_length(&length) || !skip_bytes(length)) { in asn1_constructed_skip_all()
110 size_t length; in asn1_sequence_get() local
111 if (!decode_length(&length) || length > length_) { in asn1_sequence_get()
114 return new asn1_context(p_, length); in asn1_sequence_get()
121 size_t length; in asn1_set_get() local
122 if (!decode_length(&length) || length > length_) { in asn1_set_get()
125 return new asn1_context(p_, length); in asn1_set_get()
129 size_t length; in asn1_sequence_next() local
130 if (get_byte() == -1 || !decode_length(&length) || !skip_bytes(length)) { in asn1_sequence_next()
136 bool asn1_context::asn1_oid_get(const uint8_t** oid, size_t* length) { in asn1_oid_get() argument
140 if (!decode_length(length) || *length == 0 || *length > length_) { in asn1_oid_get()
147 bool asn1_context::asn1_octet_string_get(const uint8_t** octet_string, size_t* length) { in asn1_octet_string_get() argument
151 if (!decode_length(length) || *length == 0 || *length > length_) { in asn1_octet_string_get()