Function esp_idf_sys::mbedtls_cipher_info_from_values
source ยท pub unsafe extern "C" fn mbedtls_cipher_info_from_values(
cipher_id: mbedtls_cipher_id_t,
key_bitlen: c_int,
mode: mbedtls_cipher_mode_t,
) -> *const mbedtls_cipher_info_t
Expand description
\brief This function retrieves the cipher-information structure associated with the given cipher ID, key size and mode.
\param cipher_id The ID of the cipher to search for. For example, #MBEDTLS_CIPHER_ID_AES. \param key_bitlen The length of the key in bits. \param mode The cipher mode. For example, #MBEDTLS_MODE_CBC.
\return The cipher information structure associated with the given \p cipher_id. \return \c NULL if the associated cipher information is not found.