| 838 | } |
| 839 | |
| 840 | unsigned int FactoringWorkFactor(unsigned int n) |
| 841 | { |
| 842 | // extrapolated from the table in Odlyzko's "The Future of Integer Factorization" |
| 843 | // updated to reflect the factoring of RSA-130 |
| 844 | if (n<5) return 0; |
| 845 | else return (unsigned int)(2.4 * pow(n, 1.0/3.0) * pow(log(double(n)), 2.0/3.0) - 5); |
| 846 | } |
| 847 | |
| 848 | unsigned int DiscreteLogWorkFactor(unsigned int n) |
| 849 | { |
nothing calls this directly
no outgoing calls
no test coverage detected