Subject: | Key generation should regenerate automatically |
See failed test report:
http://www.cpantesters.org/cpan/report/ac3a0908-ae02-11e7-ada9-01b449b1df06
In Key.pm, function generate, we do a number of checks to make sure we have generated a good key. Currently this croaks if it fails.
Unless we are given the q/p/e parameters, we should loop at least a few times generating new ones if one of these checks fails. We should be able to do this by calculating phi and d in the while loop and adding to %key.