CPU and GPU accelerated fully homomorphic encryption