Found 2 other functions taking a
mbedtls_cipher_info_t
argument:
This function prepares a cipher context for use with the given cipher primitive. \warning In CBC mode, if mbedtls_cipher_set_padding_mode() is not called: - If MBEDTLS_CIPHER_PADDING_PKCS7 is enabled, the context will use PKCS7 padding. - Otherwise the context uses no padding and the input must be a whole number of blocks. \internal Currently, the function also clears the structure. In future versions, the caller will be required to call mbedtls_cipher_init() on the structure first.
This function calculates the full generic CMAC on the input buffer with the provided key. The function allocates the context, performs the calculation, and frees the context. The CMAC result is calculated as output = generic CMAC(cmac key, input buffer).