ta/wallet_ta.c
/**
  * Called to finalize the operation handles allocated in the session context.
  * \param session_data A data pointer to a session context.
  * \param param_types The types of the four parameters.
  * \param params A pointer to an array of four parameters.
  * \return TEE_SUCCESS if TEE_FreeOperation does not fail.
  */
Called to finalize the operation handles allocated in the session context.
\param session_data A data pointer to a session context.
\param param_types The types of the four parameters.
\param params A pointer to an array of four parameters.
\return TEE_SUCCESS if TEE_FreeOperation does not fail.
Called to finalize the operation handles allocated in the session context . \ param session_data A data pointer to a session context . \ param param_types The types of the four parameters . \ param params A pointer to an array of four parameters . \ return TEE_SUCCESS if TEE_FreeOperation does not fail .
static TEE_Result finalize_handlers(Session_data * session_data, uint32_t param_types, TEE_Param params[4])
{
	uint32_t exp_param_types = TEE_PARAM_TYPES(
									TEE_PARAM_TYPE_NONE,
									TEE_PARAM_TYPE_NONE,
									TEE_PARAM_TYPE_NONE,
									TEE_PARAM_TYPE_NONE);
	(void)&params;
	if (param_types != exp_param_types)
		return TEE_ERROR_BAD_PARAMETERS;
	TEE_FreeOperation(*(session_data->aes_encrypt_op));
	TEE_FreeOperation(*(session_data->aes_decrypt_op));
	TEE_FreeOperation(*(session_data->hmac_op1_internal));
	TEE_FreeOperation(*(session_data->hmac_op2_internal));
	TEE_FreeOperation(*(session_data->hmac_op1));
	TEE_FreeOperation(*(session_data->hmac_op2));
	TEE_FreeOperation(*(session_data->sha_op_internal));
	TEE_FreeOperation(*(session_data->sha_op1));
	TEE_FreeOperation(*(session_data->sha_op2));
	TEE_FreeOperation(*(session_data->sha_op3));
	TEE_FreeOperation(*(session_data->sha_op4));
   	return TEE_SUCCESS;
}
static TEE_Result finalize_handlers ( Session_data * session_data , uint32_t param_types , TEE_Param params [ 4 ] ) { uint32_t exp_param_types = TEE_PARAM_TYPES ( TEE_PARAM_TYPE_NONE , TEE_PARAM_TYPE_NONE , TEE_PARAM_TYPE_NONE , TEE_PARAM_TYPE_NONE ) ; ( void ) & params ; if ( param_types != exp_param_types ) return TEE_ERROR_BAD_PARAMETERS ; TEE_FreeOperation ( * ( session_data -> aes_encrypt_op ) ) ; TEE_FreeOperation ( * ( session_data -> aes_decrypt_op ) ) ; TEE_FreeOperation ( * ( session_data -> hmac_op1_internal ) ) ; TEE_FreeOperation ( * ( session_data -> hmac_op2_internal ) ) ; TEE_FreeOperation ( * ( session_data -> hmac_op1 ) ) ; TEE_FreeOperation ( * ( session_data -> hmac_op2 ) ) ; TEE_FreeOperation ( * ( session_data -> sha_op_internal ) ) ; TEE_FreeOperation ( * ( session_data -> sha_op1 ) ) ; TEE_FreeOperation ( * ( session_data -> sha_op2 ) ) ; TEE_FreeOperation ( * ( session_data -> sha_op3 ) ) ; TEE_FreeOperation ( * ( session_data -> sha_op4 ) ) ; return TEE_SUCCESS ; }
Called to finalize the operation handles allocated in the session context.
Called to finalize the operation handles allocated in the session context .
/* Unused parameters */ /* Check the type of the parameters received */ /* Free the operations allocated */