Skip to main content

mbedtls_oid_get_pkcs12_pbe_alg

Function mbedtls_oid_get_pkcs12_pbe_alg 

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

\brief Translate PKCS#12 PBE algorithm OID into md_type and cipher_type

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

\return 0 if successful, or MBEDTLS_ERR_OID_NOT_FOUND