TEE_Result ta_entry_copy_operation(uint32_t param_type, TEE_Param params[4]) { ASSERT_PARAM_TYPE(TEE_PARAM_TYPES (TEE_PARAM_TYPE_VALUE_INPUT, TEE_PARAM_TYPE_NONE, TEE_PARAM_TYPE_NONE, TEE_PARAM_TYPE_NONE)); TEE_CopyOperation((TEE_OperationHandle) params[0].value.a, (TEE_OperationHandle) params[0].value.b); return TEE_SUCCESS; }
TEE_Result ta_entry_copy_operation(uint32_t param_type, TEE_Param params[4]) { TEE_OperationHandle dst = VAL2HANDLE(params[0].value.a); TEE_OperationHandle src = VAL2HANDLE(params[0].value.b); ASSERT_PARAM_TYPE(TEE_PARAM_TYPES (TEE_PARAM_TYPE_VALUE_INPUT, TEE_PARAM_TYPE_NONE, TEE_PARAM_TYPE_NONE, TEE_PARAM_TYPE_NONE)); TEE_CopyOperation(dst, src); return TEE_SUCCESS; }