def DH_endo(m, P, table=None): return DH_core(m, P, MUL_endo, table=table) ########## Self test for correctness ########## ########## (cases are from FourQlib) ##########