Refactor a little bit rsa-find.c