Multiparty Computations Ensuring Privacy of Each Party’s Input and Correctness of the Result