The hub width is not equal to the inner width of the swingarm; all bikes I have worked with use spacers to fill in the difference. So your question on what the width of the hub is nut-to-nut is not well defined.
In any case, the width of the hub itself is 100 mm for the front, and 152 mm for the back.