Find d, the private key

\n",$result); if ( $result == "") { $result=0; $d=0; } if ( $result == 1 ) { echo "

value $d matches the de % phi == 1 criteria

"; printf("
"); } else { echo " Iterating with start seed d $d"; for ($i=0; $i<$max_search; $i++) { $y = $d + $i; $result = `./searchd $y $phi $e `; $dd = `./findd $y $phi $e`; printf("Trying %s \n",$dd); if ( $result == 0 ) { // found one ! $d = $dd; echo " matches criteria

"; break; } else { echo " does not match de % phi == 1 criteria

\n"; } } if ( $i > $max_search || $too_large == 1) { echo "

d not found, try another seed, and check e is co-prime to phi

"; printf(""); } else { echo "

Acceptable value for 'd' found after $i iterations

\n"; printf(""); } } ?> > > > > > >