Function esp_idf_svc::hal::sys::mbedtls_asn1_get_alg
source ยท pub unsafe extern "C" fn mbedtls_asn1_get_alg(
p: *mut *mut u8,
end: *const u8,
alg: *mut mbedtls_asn1_buf,
params: *mut mbedtls_asn1_buf,
) -> i32
Expand description
\brief Retrieve an AlgorithmIdentifier ASN.1 sequence. Updates the pointer to immediately behind the full AlgorithmIdentifier.
\param p On entry, \c *p points to the start of the ASN.1 element. On successful completion, \c *p points to the first byte beyond the AlgorithmIdentifier element. On error, the value of \c *p is undefined. \param end End of data. \param alg The buffer to receive the OID. \param params The buffer to receive the parameters. This is zeroized if there are no parameters.
\return 0 if successful or a specific ASN.1 or MPI error code.