If you're in a hurry, just model them as "extrusion."
not being profiles (male or female) with evolving profile but with teeth at parallel sides, it is immediate to model them extruding a sketch.
If you want to use the generator... you can set the tree on a familial with parallel hip teeth and then go to change the parameters until you get the table data.
I think it was replaced by uni 8953.
If this is an ex-novo design, it is formally more correct to indicate and refer to the current legislation.
If it were spare parts, for safety, I would check the differences between the profiles of the two rules. of course this should be notified to the customer.
with regard to realization.
If it's a grooved tree trunk... you buy from trade a bar and you cut (and possibly you work).
if it comes to channel only parts of tree, the processing must be made with creator (or for shaving): You generally turn to who makes gears.
the "female" instead as you rightly wrote is obtained by broaching.
instead of the couplings: for those who perform this type of processing it is important to understand how these objects will be assembled.
it is good to indicate the final position with the grooved parts in summer between them, in phase.