endecode_test.c: Significant speedup in generating DH and DHX keys