To keep the interim value from blowing up, rather than do MOD after EXP, can the EXP algorithm do a MOD at every internal step?
To keep the interim value from blowing up, rather than do MOD after EXP, can the EXP algorithm do a MOD at every internal step?