A unified and resource-efficient polynomial multiplication architecture for fully homomorphic encryption