Skip to main content

mbedtls_oid_get_md_alg

Function mbedtls_oid_get_md_alg 

Source
pub unsafe extern "C" fn mbedtls_oid_get_md_alg(
    oid: *const mbedtls_asn1_buf,
    md_alg: *mut mbedtls_md_type_t,
) -> c_int
Expand description

\brief Translate hash algorithm OID into md_type

\param oid OID to use \param md_alg place to store message digest algorithm

\return 0 if successful, or MBEDTLS_ERR_OID_NOT_FOUND