Function esp_idf_sys::mbedtls_pk_write_key_der
source ยท pub unsafe extern "C" fn mbedtls_pk_write_key_der(
ctx: *const mbedtls_pk_context,
buf: *mut c_uchar,
size: usize,
) -> c_int
Expand description
\brief Write a private key to a PKCS#1 or SEC1 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 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