Since the spokes connect to the rim at it's center, it would be the rim's diameter that would determine the spoke length. I'm pretty sure both hubs use a 4x10 (40 spoke) pattern, so that shouldn't be an issue.
What I would worry about is interference with the rear brake stay if you are putting it on the rear.