Skip to main content

mbedtls_oid_get_oid_by_md

Function mbedtls_oid_get_oid_by_md 

Source
pub unsafe extern "C" fn mbedtls_oid_get_oid_by_md(
    md_alg: mbedtls_md_type_t,
    oid: *mut *const c_char,
    olen: *mut usize,
) -> c_int
Expand description

\brief Translate md_type into hash algorithm OID

\param md_alg message digest algorithm \param oid place to store ASN.1 OID string pointer \param olen length of the OID

\return 0 if successful, or MBEDTLS_ERR_OID_NOT_FOUND