Fermat Attack
Description. This attack takes advantage of the difference of squares theorem. If the two primes used for RSA (or KMOV) are close together it will be able to produce one of the primes as an output. This algorithm is deterministic meaning it will find a solution but is efficent only if the difference of the primes is small.
Example. This is an example where Fermat Attack factors
n=392978654845729289907021754452182325881346071758898433529538362675031664460938682805318112640661164293937049338385443383663702038544055748284664168992544981428408893033338462355487676707091259638157494641830935147650581928069288556483290429263378443463703
in one round.
Example. This is an example where Fermat Attack factors n=5502178753279631187249744419074900728448775696662176319670240394119468798083499 in over 5000 rounds.