Function esp_idf_hal::sys::mbedtls_asn1_get_len
source ยท pub unsafe extern "C" fn mbedtls_asn1_get_len(
p: *mut *mut u8,
end: *const u8,
len: *mut usize,
) -> i32
Expand description
\brief Get the length of an ASN.1 element. Updates the pointer to immediately behind the length.
\param p On entry, \c *p points to the first byte of the length, i.e. immediately after the tag. On successful completion, \c *p points to the first byte after the length, i.e. the first byte of the content. On error, the value of \c *p is undefined. \param end End of data. \param len On successful completion, \c *len contains the length read from the ASN.1 input.
\return 0 if successful. \return #MBEDTLS_ERR_ASN1_OUT_OF_DATA if the ASN.1 element would end beyond \p end. \return #MBEDTLS_ERR_ASN1_INVALID_LENGTH if the length is unparsable.