Function esp_idf_hal::sys::mbedtls_pk_setup
source ยท pub unsafe extern "C" fn mbedtls_pk_setup(
ctx: *mut mbedtls_pk_context,
info: *const mbedtls_pk_info_t,
) -> i32
Expand description
\brief Initialize a PK context with the information given and allocates the type-specific PK subcontext.
\param ctx Context to initialize. It must not have been set up yet (type #MBEDTLS_PK_NONE). \param info Information to use
\return 0 on success, MBEDTLS_ERR_PK_BAD_INPUT_DATA on invalid input, MBEDTLS_ERR_PK_ALLOC_FAILED on allocation failure.
\note For contexts holding an RSA-alt key, use \c mbedtls_pk_setup_rsa_alt() instead.