Lines Matching refs:len

56                   size_t *len )  in mbedtls_asn1_get_len()  argument
62 *len = *(*p)++; in mbedtls_asn1_get_len()
71 *len = (*p)[1]; in mbedtls_asn1_get_len()
79 *len = ( (size_t)(*p)[1] << 8 ) | (*p)[2]; in mbedtls_asn1_get_len()
87 *len = ( (size_t)(*p)[1] << 16 ) | in mbedtls_asn1_get_len()
96 *len = ( (size_t)(*p)[1] << 24 ) | ( (size_t)(*p)[2] << 16 ) | in mbedtls_asn1_get_len()
106 if( *len > (size_t) ( end - *p ) ) in mbedtls_asn1_get_len()
114 size_t *len, int tag ) in mbedtls_asn1_get_tag() argument
124 return( mbedtls_asn1_get_len( p, end, len ) ); in mbedtls_asn1_get_tag()
132 size_t len; in mbedtls_asn1_get_bool() local
134 if( ( ret = mbedtls_asn1_get_tag( p, end, &len, MBEDTLS_ASN1_BOOLEAN ) ) != 0 ) in mbedtls_asn1_get_bool()
137 if( len != 1 ) in mbedtls_asn1_get_bool()
151 size_t len; in mbedtls_asn1_get_int() local
153 if( ( ret = mbedtls_asn1_get_tag( p, end, &len, MBEDTLS_ASN1_INTEGER ) ) != 0 ) in mbedtls_asn1_get_int()
156 if( len == 0 || len > sizeof( int ) || ( **p & 0x80 ) != 0 ) in mbedtls_asn1_get_int()
161 while( len-- > 0 ) in mbedtls_asn1_get_int()
176 size_t len; in mbedtls_asn1_get_mpi() local
178 if( ( ret = mbedtls_asn1_get_tag( p, end, &len, MBEDTLS_ASN1_INTEGER ) ) != 0 ) in mbedtls_asn1_get_mpi()
181 ret = mbedtls_mpi_read_binary( X, *p, len ); in mbedtls_asn1_get_mpi()
183 *p += len; in mbedtls_asn1_get_mpi()
195 if( ( ret = mbedtls_asn1_get_tag( p, end, &bs->len, MBEDTLS_ASN1_BIT_STRING ) ) != 0 ) in mbedtls_asn1_get_bitstring()
199 if( bs->len < 1 ) in mbedtls_asn1_get_bitstring()
201 bs->len -= 1; in mbedtls_asn1_get_bitstring()
211 *p += bs->len; in mbedtls_asn1_get_bitstring()
223 size_t *len ) in mbedtls_asn1_get_bitstring_null() argument
227 if( ( ret = mbedtls_asn1_get_tag( p, end, len, MBEDTLS_ASN1_BIT_STRING ) ) != 0 ) in mbedtls_asn1_get_bitstring_null()
230 if( (*len)-- < 2 || *(*p)++ != 0 ) in mbedtls_asn1_get_bitstring_null()
247 size_t len; in mbedtls_asn1_get_sequence_of() local
251 if( ( ret = mbedtls_asn1_get_tag( p, end, &len, in mbedtls_asn1_get_sequence_of()
255 if( *p + len != end ) in mbedtls_asn1_get_sequence_of()
263 if( ( ret = mbedtls_asn1_get_tag( p, end, &buf->len, tag ) ) != 0 ) in mbedtls_asn1_get_sequence_of()
267 *p += buf->len; in mbedtls_asn1_get_sequence_of()
296 size_t len; in mbedtls_asn1_get_alg() local
298 if( ( ret = mbedtls_asn1_get_tag( p, end, &len, in mbedtls_asn1_get_alg()
306 end = *p + len; in mbedtls_asn1_get_alg()
308 if( ( ret = mbedtls_asn1_get_tag( p, end, &alg->len, MBEDTLS_ASN1_OID ) ) != 0 ) in mbedtls_asn1_get_alg()
312 *p += alg->len; in mbedtls_asn1_get_alg()
323 if( ( ret = mbedtls_asn1_get_len( p, end, &params->len ) ) != 0 ) in mbedtls_asn1_get_alg()
327 *p += params->len; in mbedtls_asn1_get_alg()
347 if( ( params.tag != MBEDTLS_ASN1_NULL && params.tag != 0 ) || params.len != 0 ) in mbedtls_asn1_get_alg_null()
377 const char *oid, size_t len ) in mbedtls_asn1_find_named_data() argument
381 if( list->oid.len == len && in mbedtls_asn1_find_named_data()
382 memcmp( list->oid.p, oid, len ) == 0 ) in mbedtls_asn1_find_named_data()