318 v 340 Crankshaft

Are the cranks the same? I was under the impression that both have the same stroke but different bores. Is that true or is the stroke on a 340 different? Thanks