Function esp_idf_svc::sys::mbedtls_pk_write_pubkey_der

source ยท
pub unsafe extern "C" fn mbedtls_pk_write_pubkey_der(
    ctx: *const mbedtls_pk_context,
    buf: *mut u8,
    size: usize,
) -> i32
Expand description

\brief Write a public key to a SubjectPublicKeyInfo DER structure Note: data is written at the end of the buffer! Use the return value to determine where you should start using the buffer

\param ctx PK context which must contain a valid public or private key. \param buf buffer to write to \param size size of the buffer

\return length of data written if successful, or a specific error code