This is not the same thing at all, and Kant was not a socialist.
Kant was a moral philosopher. There is a difference. And there's a reason why Locke, Hume, Rousseau, and Kant never came up with Rawl's "veil of ignorance": because it is itself ignorant.
How is Rawls’ view ignorant?