Preserving Privacy Against Side-Channel Leaks