Am trying to understand Garbled Circuit based approach for Secure Two party Computation. There isn't much leakage in the classic millionaire's problem where the comparison circuit is used.
But imagine they want to do some arithmetic operation (like addition or multiplication) without revealing their individual wealth.
Then although each of them need not reveal their individual wealth using Garbled Circuits approach (by running the protocol with an addition circuit), the sum total of their wealth would easily reveal the other millionaire's wealth (By doing simple difference of the total wealth and self wealth)
So is secure two party computation recommended only for a class of circuits ?