mbedtls_asn1_get_len() function
Get the length of an ASN.1 element. Updates the pointer to immediately behind the length.
Syntax
int mbedtls_asn1_get_len( unsigned char **p,
const unsigned char *end,
size_t *len );
Arguments
p
The position in the ASN.1 data
len
The variable that will receive the value
Return value
0 if successful, MBEDTLS_ERR_ASN1_OUT_OF_DATA on reaching end of data, MBEDTLS_ERR_ASN1_INVALID_LENGTH if length is unparseable.
![]()
int mbedtls_asn1_get_len( unsigned char **p,![]()
int mbedtls_asn1_get_len( unsigned char **p,![]()
return( mbedtls_asn1_get_len( p, end, len ) );![]()
if( ( ret = mbedtls_asn1_get_len( p, end, ¶ms->len ) ) != 0 )![]()
if( ( ret = mbedtls_asn1_get_len( p, end, &serial->len ) ) != 0 )![]()
if( ( ret = mbedtls_asn1_get_len( p, end, &val->len ) ) != 0 )![]()
ret = mbedtls_asn1_get_len( p, end, &len );![]()
if( ( ret = mbedtls_asn1_get_len( p, end, &tag_len ) ) != 0 )
mbedtls_asn1_get_len() is called by 6 functions:
![]()
mbedtls_asn1_get_len()
mbedtls_asn1_get_len():
![]()
mbedtls_asn1_get_len()