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.
![]()
return mbedtls_cipher_info_from_values(cipher_id_tmp, (int) key_bits, mode);
mbedtls_cipher_info_from_values() is called by 4 functions and calls 2 functions:
![]()
mbedtls_cipher_info_from_values()
mbedtls_cipher_info_from_values() reads 4 variables:
![]()
mbedtls_cipher_info_from_values()