Secure Computation via Homomorphic Encryption