If I don't know anything about the numbers for which I am egcd'ing, can I make a reasonable numerical value to the maximum number of iterations it will take?
I have a question that involves me figuring out if an RSA public key comprised of just one prime p (instead of the typical pq) works. Meaning, I have to figure out if an outsider is able to decode it, knowing what N and e are. One of the steps would be finding d, through egcd. Knowing the number of iterations it could take would help but I'm stuck
Also we're assuming the eavesdropper (Eve) knows N=p
The worst case number iterations is one greater than the ordinal number of the Fibonacci number just greater than the second number entered into Euclid's algorithm. Here is an example of a program run that tests the iterations of all combinations from $1$ to $1000$. (Note here that 2 is considered to be the third Fibonacci number.) The iteration count is not displayed until it reaches just greater than the previous greatest iteration count. (Note: the count will be one greater if the larger number is entered second.)