mbedtls_asn1_get_bitstring() function
Retrieve a bitstring ASN.1 tag and its value. Updates the pointer to immediately behind the full tag.
Arguments
p
On entry, \c *p points to the start of the ASN.1 element. On successful completion, \c *p is equal to \p end. On error, the value of \c *p is undefined.
bs
On success, ::mbedtls_asn1_bitstring information about the parsed value.
Return value
0 if successful. #MBEDTLS_ERR_ASN1_LENGTH_MISMATCH if the input contains extra data after a valid BIT STRING. An ASN.1 error code if the input does not start with a valid ASN.1 BIT STRING.
mbedtls_asn1_get_bitstring() is called by 2 functions and calls 1 function:
![]()
mbedtls_asn1_get_bitstring()
mbedtls_asn1_get_bitstring() reads 2 variables and writes 3 variables:
![]()
mbedtls_asn1_get_bitstring()