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
The position in the ASN.1 data
bs
The variable that will receive the value
Return value
0 if successful or a specific ASN.1 error code.