Lines Matching refs:len
166 size_t len;
177 len = 0;
183 len = (len << 8) | c[(*p)++];
184 return len;
188 der_tag(char *buf, size_t len, uint32_t tag)
191 strlcpy(buf, der__tag[tag], len);
193 snprintf(buf, len, "%#x", tag);
199 der_data(char *buf, size_t blen, uint32_t tag, const void *q, uint32_t len)
207 return snprintf(buf, blen, "%.*s", len, (const char *)q);
212 for (uint32_t i = 0; i < len; i++) {
217 return len * 2;
224 size_t offs = 0, len = ms->search.s_len ? ms->search.s_len : nbytes;
226 if (gettag(b, &offs, len) == DER_BAD)
230 uint32_t tlen = getlength(b, &offs, len);
256 size_t offs = 0, len = ms->search.s_len;
260 tag = gettag(b, &offs, len);
264 tlen = getlength(b, &offs, len);
295 fprintf(stderr, "%s: len %zu %u\n", __func__,
315 printtag(uint32_t tag, const void *q, uint32_t len)
321 printf("%.*s\n", len, (const char *)q);
327 for (uint32_t i = 0; i < len; i++)
349 uint32_t len = getlength(p, &x, ep - p + x);
353 der_tag(buf, sizeof(buf), tag), len);
355 if (p + len > ep)
357 printtag(tag, q, len);
359 printdata(level + 1, p, x, len + x);
360 x += len;