Skip to content

Commit

Permalink
block PollardRhoBrent31 for numbers > 31 bit
Browse files Browse the repository at this point in the history
  • Loading branch information
TilmanNeumann committed Jan 3, 2025
1 parent f54d8b3 commit d5b5641
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,8 @@ private void testRange(int bits) {
if (bits>52 && algName.startsWith("SquFoF31")) continue; // int implementation
if (bits>59 && algName.startsWith("Lehman")) continue; // TODO make it work again for 60 bit?
if (bits>31 && algName.startsWith("TDiv31")) continue; // int implementation
if (bits>31 && algName.startsWith("PollardRho31")) continue; // long implementation
if (bits>31 && algName.startsWith("PollardRho31")) continue; // int implementation
if (bits>31 && algName.startsWith("PollardRhoBrent31")) continue; // int implementation
if (bits>42 && algName.startsWith("TDiv63Inverse")) continue; // not enough primes stored
if (bits>57 && algName.equals("PollardRhoBrentMontgomeryR64Mul63")) continue; // very slow above
if (bits>28 && algName.startsWith("HartMultiplierChainSqrtN")) continue; // no multipliers for bigger N
Expand Down

0 comments on commit d5b5641

Please sign in to comment.