Skip to main content

mbedtls_oid_get_cipher_alg

Function mbedtls_oid_get_cipher_alg 

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

\brief Translate encryption algorithm OID into cipher_type

\param oid OID to use \param cipher_alg place to store cipher algorithm

\return 0 if successful, or MBEDTLS_ERR_OID_NOT_FOUND