Pollard Rho Algorithm Speedy Implementation

19 replies 489 views
0xWolfMember
Posts: 44 · Reputation: 180
#1Jan 28, 2018, 07:30 AM
Hey everyone! Just finished my version of the Pollard-rho algorithm. It takes about 38 minutes for an 80-bit challenge and 14 minutes for a 70-bit one, thanks to half a billion data points. Used some AVX2 stuff, a bloom filter, and new optimizations. Check it out if you're interested!
6 Reply Quote Share
eric404Member
Posts: 1 · Reputation: 99
#2Jan 28, 2018, 12:19 PM
Sounds awesome! Always hoping for faster methods.
4 Reply Quote Share
sam.gasNewbie
Posts: 10 · Reputation: 11
#3Jan 30, 2018, 12:18 PM
Cool but where's the part for loading DP.bin with load-dp coming from? I added a new command-line option to specify a DP.bin file. If you use load-dp, it'll load from there instead of generating. Plus, everything else still works like saving DP, etc.
2 Reply Quote Share
CalmFarmMember
Posts: 2 · Reputation: 42
#4Jan 30, 2018, 04:13 PM
Wow, loading it from file is quick! I solved a 70-bit puzzle in 10 seconds on my ancient setup.
4 Reply Quote Share
0xWolfMember
Posts: 44 · Reputation: 180
#5Jan 30, 2018, 04:34 PM
Hey NoMachine, bring your GitHub back please! Your coding skills are impressive and this Mark1 is a solid upgrade from your previous work.
5 Reply Quote Share
CalmFarmMember
Posts: 2 · Reputation: 42
#6Jan 30, 2018, 08:48 PM
Is it a dumb question, but... can we have both odd and even DPs in the same kangaroo, like @AlexanderCurl? Would that help with reaching 90-bit f?
5 Reply Quote Share
falcon2019Full Member
Posts: 48 · Reputation: 425
#7Jan 31, 2018, 08:01 AM
That won't really help. For DLP problems, brute-forcing isn't needed anyways.
0 Reply Quote Share
falcon2019Full Member
Posts: 48 · Reputation: 425
#8Jan 31, 2018, 01:42 PM
But I tried your method and it didn't work. You could've explained it better though. Using the X coord like that is pointless.
7 Reply Quote Share
falcon2019Full Member
Posts: 48 · Reputation: 425
#9Jan 31, 2018, 04:20 PM
Thanks for the template but I’ve already got something for my PointsBuilder demo. Your batch addition method for P + Q and P Q isn't useful outside specific cases.
0 Reply Quote Share
falcon2019Full Member
Posts: 48 · Reputation: 425
#10Jan 31, 2018, 07:42 PM
Lol can't wait for someone to try it and see how it fails. You should be the one to give it a shot since you think it speeds things up.
0 Reply Quote Share
falcon2019Full Member
Posts: 48 · Reputation: 425
#11Jan 31, 2018, 11:33 PM
Just returned all the merit points I had. Now I owe you 11 points, I’ll get back to you when I can. But seriously, your idea is clever! A cool concept for Kangaroo Hopping!
0 Reply Quote Share
falcon2019Full Member
Posts: 48 · Reputation: 425
#12Feb 1, 2018, 01:57 AM
Batch addition isn't effective for Kangaroo or rho, which is what we’re discussing here. Many have tried similar methods already.
3 Reply Quote Share
benlordMember
Posts: 4 · Reputation: 197
#13Feb 1, 2018, 07:05 AM
This is a waste, honestly.
4 Reply Quote Share
m1kes4tFull Member
Posts: 43 · Reputation: 252
#14Feb 1, 2018, 10:42 AM
Next step for the Kangaroo is to avoid using RAM for DPs. Storing them in RAM really limits performance, especially in high ranges.
4 Reply Quote Share
falcon2019Full Member
Posts: 48 · Reputation: 425
#15Feb 1, 2018, 11:07 PM
Where'd you get that idea? Storing DPs in RAM works fine with databases, you can handle terabytes of data.
3 Reply Quote Share
m1kes4tFull Member
Posts: 43 · Reputation: 252
#16Feb 2, 2018, 02:39 AM
Talking about the dp.bin we’re discussing here.
1 Reply Quote Share
sam.gasNewbie
Posts: 10 · Reputation: 11
#17Feb 2, 2018, 08:36 AM
You could set up a Memory-Mapped DP System with a Bloom filter in RAM and a memory-mapped DP table on disk. Just be ready for the massive size of those tables.
3 Reply Quote Share
m1kes4tFull Member
Posts: 43 · Reputation: 252
#18Feb 2, 2018, 08:44 AM
I thought about adding a database to Kangaroo too. I had a plan to store DPs sorted like a database. Would make searches way more efficient.
3 Reply Quote Share
0xWolfMember
Posts: 44 · Reputation: 180
#19Feb 2, 2018, 01:22 PM
I’ve done that already! Switched the DP_table from RAM to SSD. Next step, adding GPU support for secp256.
3 Reply Quote Share
Posts: 3 · Reputation: 204
#20Feb 2, 2018, 02:13 PM
Is there a fork available for Visual Studio on Windows?
2 Reply Quote Share

Related topics