Quadratic Cost Duality and Convex Subdifferential Structure