logoalt Hacker News

cowlevel • yesterday at 8:20 PM • 0 replies • view on HN

Specifically this is because of baby-step giant-step algorithm (and similar), a specific type of meet-in-the-middle attack. Roughly speaking, you can compute public keys for 2^128 private keys spaced 2^128 apart on a 256-bit curve, and then take the public key you want, step it along the curve 2^128 times and you're guaranteed to run into one of those precomputed keys, and since you know how many times you stepped it and you know the private key for your precomputed public key, you can subtract that many steps and you got the victim's private key in up to 2^129 calculations.

A similar reason is why triple-DES is triple-DES and not double-DES, because with double-DES and a plaintext/ciphertext pair you can decrypt the ciphertext with all possible second-layer keys, then encrypt the plaintext with all possible first-layer keys looking for a match, and the time it takes is only double the time to brute-force one layer.