Function esp_idf_svc::hal::sys::mbedtls_asn1_get_bitstring

source ยท
pub unsafe extern "C" fn mbedtls_asn1_get_bitstring(
    p: *mut *mut u8,
    end: *const u8,
    bs: *mut mbedtls_asn1_bitstring,
) -> i32
Expand description

\brief Retrieve a bitstring ASN.1 tag and its value. Updates the pointer to immediately behind the full tag.

\param 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. \param end End of data. \param bs On success, ::mbedtls_asn1_bitstring information about the parsed value.

\return 0 if successful. \return #MBEDTLS_ERR_ASN1_LENGTH_MISMATCH if the input contains extra data after a valid BIT STRING. \return An ASN.1 error code if the input does not start with a valid ASN.1 BIT STRING.