Lines Matching refs:end

46                   const unsigned char *end,  in mbedtls_asn1_get_len()  argument
49 if( ( end - *p ) < 1 ) in mbedtls_asn1_get_len()
59 if( ( end - *p ) < 2 ) in mbedtls_asn1_get_len()
67 if( ( end - *p ) < 3 ) in mbedtls_asn1_get_len()
75 if( ( end - *p ) < 4 ) in mbedtls_asn1_get_len()
84 if( ( end - *p ) < 5 ) in mbedtls_asn1_get_len()
97 if( *len > (size_t) ( end - *p ) ) in mbedtls_asn1_get_len()
104 const unsigned char *end, in mbedtls_asn1_get_tag() argument
107 if( ( end - *p ) < 1 ) in mbedtls_asn1_get_tag()
115 return( mbedtls_asn1_get_len( p, end, len ) ); in mbedtls_asn1_get_tag()
119 const unsigned char *end, in mbedtls_asn1_get_bool() argument
125 if( ( ret = mbedtls_asn1_get_tag( p, end, &len, MBEDTLS_ASN1_BOOLEAN ) ) != 0 ) in mbedtls_asn1_get_bool()
138 const unsigned char *end, in asn1_get_tagged_int() argument
144 if( ( ret = mbedtls_asn1_get_tag( p, end, &len, tag ) ) != 0 ) in asn1_get_tagged_int()
182 const unsigned char *end, in mbedtls_asn1_get_int() argument
185 return( asn1_get_tagged_int( p, end, MBEDTLS_ASN1_INTEGER, val) ); in mbedtls_asn1_get_int()
189 const unsigned char *end, in mbedtls_asn1_get_enum() argument
192 return( asn1_get_tagged_int( p, end, MBEDTLS_ASN1_ENUMERATED, val) ); in mbedtls_asn1_get_enum()
197 const unsigned char *end, in mbedtls_asn1_get_mpi() argument
203 if( ( ret = mbedtls_asn1_get_tag( p, end, &len, MBEDTLS_ASN1_INTEGER ) ) != 0 ) in mbedtls_asn1_get_mpi()
214 int mbedtls_asn1_get_bitstring( unsigned char **p, const unsigned char *end, in mbedtls_asn1_get_bitstring() argument
220 if( ( ret = mbedtls_asn1_get_tag( p, end, &bs->len, MBEDTLS_ASN1_BIT_STRING ) ) != 0 ) in mbedtls_asn1_get_bitstring()
238 if( *p != end ) in mbedtls_asn1_get_bitstring()
250 const unsigned char *end, in mbedtls_asn1_traverse_sequence_of() argument
261 if( ( ret = mbedtls_asn1_get_tag( p, end, &len, in mbedtls_asn1_traverse_sequence_of()
267 if( *p + len != end ) in mbedtls_asn1_traverse_sequence_of()
270 while( *p < end ) in mbedtls_asn1_traverse_sequence_of()
277 if( ( ret = mbedtls_asn1_get_len( p, end, &len ) ) != 0 ) in mbedtls_asn1_traverse_sequence_of()
299 int mbedtls_asn1_get_bitstring_null( unsigned char **p, const unsigned char *end, in mbedtls_asn1_get_bitstring_null() argument
304 if( ( ret = mbedtls_asn1_get_tag( p, end, len, MBEDTLS_ASN1_BIT_STRING ) ) != 0 ) in mbedtls_asn1_get_bitstring_null()
368 const unsigned char *end, in mbedtls_asn1_get_sequence_of() argument
375 p, end, 0xFF, tag, 0, 0, in mbedtls_asn1_get_sequence_of()
380 const unsigned char *end, in mbedtls_asn1_get_alg() argument
386 if( ( ret = mbedtls_asn1_get_tag( p, end, &len, in mbedtls_asn1_get_alg()
390 if( ( end - *p ) < 1 ) in mbedtls_asn1_get_alg()
394 end = *p + len; in mbedtls_asn1_get_alg()
396 if( ( ret = mbedtls_asn1_get_tag( p, end, &alg->len, MBEDTLS_ASN1_OID ) ) != 0 ) in mbedtls_asn1_get_alg()
402 if( *p == end ) in mbedtls_asn1_get_alg()
411 if( ( ret = mbedtls_asn1_get_len( p, end, &params->len ) ) != 0 ) in mbedtls_asn1_get_alg()
417 if( *p != end ) in mbedtls_asn1_get_alg()
424 const unsigned char *end, in mbedtls_asn1_get_alg_null() argument
432 if( ( ret = mbedtls_asn1_get_alg( p, end, alg, &params ) ) != 0 ) in mbedtls_asn1_get_alg_null()