Resources

People often ask me "How did you learn how to hack?" The answer: by reading. This page is a collection of the blog posts and other articles that I have accumulated over the years of my journey. Enjoy!

Claude reveals ECDSA curve origins- 2244

AnthropicPosted 20 Days Ago
  • ECDSA is a widely used cryptographic standard. While making the standard for this, the curves over prime and binary fields have a specific seed parameter whose hash value is used for the coefficient b of the curve. Because the NSA has a history of backdooring cryptography, people were curious about how these seeds are generated. Generally, the nothing up my sleeve principle applies to seemingly unimportant but necessary values. This is the story of how they found these seeds.
  • Several Anthropic employees had already tried figuring this out with a bad tip. After giving Claude zero tip, it the mechanism for how the seeds were made: using the output of the C library lrand48 function seeded with the Unix timestamp! It's actually very simple how these were calculated, and it shows that these values were definitely not a backdoor.
  • Claude tried many different approaches. Claude guessed that software commonly used PRNG in C libraries in 1990. So, they tried a bunch of old PRNGs with various seeds and found these. Because these algorithms are weak enough to reveal patterns, they were also able to find the seed in the random number generator used at the time!
  • Besides these, Claude also found some of the base points, G, and how they were created. It used a random number generator from FreeLIP with a small integer, and it discarded seven outputs until it found something on the curve. Pretty cool that so many of these values are now known!