It should be a secure two party protocol against a malicious adversary.
$P_1$'s input is $X$ in $Z_p^*$ (p is a prime number); $P_2$'s input is nothing. $P_1$'s output is $r_X+r'$, where $r$,$r'$ are random numbers from $Z_p^*$ $P_2$' output is $r$ and $r'$.
Is there any efficient protocol to realize this functionality other than by using homomorphic encryption? If only HE solves this problem, which is the most efficient one?
Thanks for help!