Shaped couplings of shafts with hubs