SMS dit: Homomorphically encrypted gradient descent algorithms for quadratic programming