Lines Matching refs:len

75 	size_t len;  in get_ext()  local
86 end = v3_ext.p + v3_ext.len; in get_ext()
88 mbedtls_asn1_get_tag(&p, end, &len, MBEDTLS_ASN1_CONSTRUCTED | in get_ext()
95 mbedtls_asn1_get_tag(&p, end, &len, MBEDTLS_ASN1_CONSTRUCTED | in get_ext()
97 end_ext_data = p + len; in get_ext()
101 mbedtls_asn1_get_tag(&p, end, &extn_oid.len, MBEDTLS_ASN1_OID); in get_ext()
103 p += extn_oid.len; in get_ext()
109 mbedtls_asn1_get_tag(&p, end_ext_data, &len, in get_ext()
111 end_ext_octet = p + len; in get_ext()
122 *ext_len = (unsigned int)len; in get_ext()
146 size_t len; in cert_parse() local
151 len = img_len; in cert_parse()
152 end = p + len; in cert_parse()
160 ret = mbedtls_asn1_get_tag(&p, end, &len, MBEDTLS_ASN1_CONSTRUCTED | in cert_parse()
166 if (len > (size_t)(end - p)) { in cert_parse()
169 crt_end = p + len; in cert_parse()
175 ret = mbedtls_asn1_get_tag(&p, end, &len, MBEDTLS_ASN1_CONSTRUCTED | in cert_parse()
180 end = p + len; in cert_parse()
181 tbs.len = end - tbs.p; in cert_parse()
186 ret = mbedtls_asn1_get_tag(&p, end, &len, in cert_parse()
192 p += len; in cert_parse()
197 ret = mbedtls_asn1_get_tag(&p, end, &len, MBEDTLS_ASN1_INTEGER); in cert_parse()
201 p += len; in cert_parse()
207 ret = mbedtls_asn1_get_tag(&p, end, &len, MBEDTLS_ASN1_CONSTRUCTED | in cert_parse()
215 sig_alg1.len = (p + len) - sig_alg1.p; in cert_parse()
216 p += len; in cert_parse()
221 ret = mbedtls_asn1_get_tag(&p, end, &len, MBEDTLS_ASN1_CONSTRUCTED | in cert_parse()
226 p += len; in cert_parse()
234 ret = mbedtls_asn1_get_tag(&p, end, &len, MBEDTLS_ASN1_CONSTRUCTED | in cert_parse()
239 p += len; in cert_parse()
244 ret = mbedtls_asn1_get_tag(&p, end, &len, MBEDTLS_ASN1_CONSTRUCTED | in cert_parse()
249 p += len; in cert_parse()
255 ret = mbedtls_asn1_get_tag(&p, end, &len, MBEDTLS_ASN1_CONSTRUCTED | in cert_parse()
260 pk.len = (p + len) - pk.p; in cert_parse()
261 p += len; in cert_parse()
266 ret = mbedtls_asn1_get_tag(&p, end, &len, in cert_parse()
274 p += len; in cert_parse()
280 ret = mbedtls_asn1_get_tag(&p, end, &len, in cert_parse()
288 p += len; in cert_parse()
294 ret = mbedtls_asn1_get_tag(&p, end, &len, in cert_parse()
305 ret = mbedtls_asn1_get_tag(&p, end, &len, MBEDTLS_ASN1_CONSTRUCTED | in cert_parse()
310 v3_ext.len = (p + len) - v3_ext.p; in cert_parse()
316 ret = mbedtls_asn1_get_tag(&p, end, &len, in cert_parse()
324 ret = mbedtls_asn1_get_tag(&p, end, &len, MBEDTLS_ASN1_OID); in cert_parse()
328 p += len; in cert_parse()
337 ret = mbedtls_asn1_get_tag(&p, end, &len, in cert_parse()
342 p += len; in cert_parse()
358 ret = mbedtls_asn1_get_tag(&p, end, &len, MBEDTLS_ASN1_CONSTRUCTED | in cert_parse()
366 sig_alg2.len = (p + len) - sig_alg2.p; in cert_parse()
367 p += len; in cert_parse()
370 if (sig_alg1.len != sig_alg2.len) { in cert_parse()
373 if (0 != memcmp(sig_alg1.p, sig_alg2.p, sig_alg1.len)) { in cert_parse()
382 ret = mbedtls_asn1_get_tag(&p, end, &len, MBEDTLS_ASN1_BIT_STRING); in cert_parse()
386 signature.len = (p + len) - signature.p; in cert_parse()
387 p += len; in cert_parse()
442 *param_len = (unsigned int)tbs.len; in get_auth_param()
456 *param_len = (unsigned int)pk.len; in get_auth_param()
462 *param_len = (unsigned int)sig_alg.len; in get_auth_param()
467 *param_len = (unsigned int)signature.len; in get_auth_param()