Lines Matching refs:datalen
57 static int asn1_find_indefinite_length(const unsigned char *data, size_t datalen, in asn1_find_indefinite_length() argument
66 if (unlikely(datalen - dp < 2)) { in asn1_find_indefinite_length()
67 if (datalen == dp) in asn1_find_indefinite_length()
88 if (unlikely(datalen - dp < 2)) in asn1_find_indefinite_length()
110 if (unlikely(n > datalen - dp)) in asn1_find_indefinite_length()
118 if (len > datalen - dp) in asn1_find_indefinite_length()
170 size_t datalen) in asn1_ber_decoder() argument
197 if (datalen > 65535) in asn1_ber_decoder()
202 pc, machlen, dp, datalen, csp, jsp); in asn1_ber_decoder()
217 (op & ASN1_OP_MATCH__SKIP && dp == datalen)) { in asn1_ber_decoder()
227 if (unlikely(datalen - dp < 2)) in asn1_ber_decoder()
267 if (unlikely(2 > datalen - dp)) in asn1_ber_decoder()
273 if (unlikely(n > datalen - dp)) in asn1_ber_decoder()
280 if (unlikely(len > datalen - dp)) in asn1_ber_decoder()
284 if (unlikely(len > datalen - dp)) in asn1_ber_decoder()
297 cons_datalen_stack[csp] = datalen; in asn1_ber_decoder()
298 datalen = dp + len; in asn1_ber_decoder()
332 data, datalen, &tmp, &len, &errmsg); in asn1_ber_decoder()
397 len = datalen; in asn1_ber_decoder()
398 datalen = cons_datalen_stack[csp]; in asn1_ber_decoder()
400 tdp, dp, len, datalen); in asn1_ber_decoder()
401 if (datalen == 0) { in asn1_ber_decoder()
403 datalen = len; in asn1_ber_decoder()
404 if (unlikely(datalen - dp < 2)) in asn1_ber_decoder()
421 datalen = len; in asn1_ber_decoder()