mbedtls_cipher_info_from_values() function
This function retrieves the cipher-information structure associated with the given cipher ID, key size and mode.
Arguments
cipher_id
The ID of the cipher to search for. For example, #MBEDTLS_CIPHER_ID_AES.
key_bitlen
The length of the key in bits.
mode
The cipher mode. For example, #MBEDTLS_MODE_CBC.
Return value
The cipher information structure associated with the given \p cipher_id. \c NULL if the associated cipher information is not found.