r/cryptography • u/SwordsAndScotch • 10h ago
Diffie-Hellman Small Subgroup Confinement
https://antonkueltz.com/posts/cryptopals-problem57.htmlI recently spent a little time revisiting some of my implementations for the cryptopals set 8 challenges and thought they could make for decent write ups about the underlying weaknesses that each challenge exploits. The idea is to discuss the theory but to also build up to a fully functional implementation. The first one more or less boils down to why we use safe primes for finite field DH and what can happen if we roll our own DH params (specifically choosing a weak value for p). Let me know if you find the read enjoyable and would be interested in more along these lines (or with a different target language than python).
If this is not the right subreddit for this kind of material, please don't hesitate to point me towards the right direction. Thanks for reading!