Function esp_idf_svc::hal::sys::mbedtls_pk_parse_public_keyfile

source ยท
pub unsafe extern "C" fn mbedtls_pk_parse_public_keyfile(
    ctx: *mut mbedtls_pk_context,
    path: *const i8,
) -> i32
Expand description

\ingroup pk_module / /* \brief Load and parse a public key

\param ctx The PK context to fill. It must have been initialized but not set up. \param path filename to read the public key from

\note On entry, ctx must be empty, either freshly initialised with mbedtls_pk_init() or reset with mbedtls_pk_free(). If you need a specific key type, check the result with mbedtls_pk_can_do().

\note The key is also checked for correctness.

\return 0 if successful, or a specific PK or PEM error code