Lines Matching refs:datalen
64 static int asn1_find_indefinite_length(const unsigned char *data, size_t datalen, in asn1_find_indefinite_length() argument
73 if (unlikely(datalen - dp < 2)) { in asn1_find_indefinite_length()
74 if (datalen == dp) in asn1_find_indefinite_length()
95 if (unlikely(datalen - dp < 2)) in asn1_find_indefinite_length()
117 if (unlikely(n > datalen - dp)) in asn1_find_indefinite_length()
125 if (len > datalen - dp) in asn1_find_indefinite_length()
177 size_t datalen) in asn1_ber_decoder() argument
204 if (datalen > 65535) in asn1_ber_decoder()
209 pc, machlen, dp, datalen, csp, jsp); in asn1_ber_decoder()
224 (op & ASN1_OP_MATCH__SKIP && dp == datalen)) { in asn1_ber_decoder()
234 if (unlikely(datalen - dp < 2)) in asn1_ber_decoder()
274 if (unlikely(2 > datalen - dp)) in asn1_ber_decoder()
280 if (unlikely(n > datalen - dp)) in asn1_ber_decoder()
287 if (unlikely(len > datalen - dp)) in asn1_ber_decoder()
291 if (unlikely(len > datalen - dp)) in asn1_ber_decoder()
304 cons_datalen_stack[csp] = datalen; in asn1_ber_decoder()
305 datalen = dp + len; in asn1_ber_decoder()
339 data, datalen, &tmp, &len, &errmsg); in asn1_ber_decoder()
404 len = datalen; in asn1_ber_decoder()
405 datalen = cons_datalen_stack[csp]; in asn1_ber_decoder()
407 tdp, dp, len, datalen); in asn1_ber_decoder()
408 if (datalen == 0) { in asn1_ber_decoder()
410 datalen = len; in asn1_ber_decoder()
411 if (unlikely(datalen - dp < 2)) in asn1_ber_decoder()
428 datalen = len; in asn1_ber_decoder()