Function esp_idf_svc::hal::sys::mbedtls_pk_write_pubkey

source ยท
pub unsafe extern "C" fn mbedtls_pk_write_pubkey(
    p: *mut *mut u8,
    start: *mut u8,
    key: *const mbedtls_pk_context,
) -> i32
Expand description

\brief Write a subjectPublicKey to ASN.1 data Note: function works backwards in data buffer

\param p reference to current position pointer \param start start of the buffer (for bounds-checking) \param key PK context which must contain a valid public or private key.

\return the length written or a negative error code