Live data from Hacker News

Cryptanalyzing MEGA in Six Queries

eprint.iacr.org

11–12 of 12 posts

Re: Cryptanalyzing MEGA in Six Queries

#11

>Their attack uses binary search to recover the private RSA key after 1023 client logins I know this is from the initial paper but it is great to see practical examples of algorithms taught in college/uni. I always had trouble understanding why we are learning such hard topics to find the number 5 in a sorted list of 10 numbers. To keep things on topic. >The patches that MEGA developed to mitigate the original key re…

A great example of how such basic CS knowledge can save weeks or even months of time wasted was posted here on YC News: https://news.ycombinator.com/item?id=22459661#22460040

The OP proudly showed off a custom B-Tree implementation for a problem where a sorted array and binary search would be far simpler and much faster in practice.

Applying even a smidge more CS knowledge could have resulted in using Netwon's Iteration as the lookup, which is the almost perfectly optimal solution: just one random I/O to do a lookup even with a cold cache!

Post reply on HN