logoalt Hacker News

BoppreH • yesterday at 9:26 AM • 2 replies • view on HN

Nitpick about the example numbers you used: the "security level" of ECC algorithms is half the curve size. So a new effective size of 184 bits would not be considered secure either.


Replies

cowlevel • yesterday at 8:20 PM

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.

mort96 • yesterday at 9:33 AM

Thanks, that's a good correction.

So I guess more plausible numbers would be, effective security was reduced by 64 bits, so P-256 goes from a decent 128 bits down to an unacceptable 64 bits of effective security while P-384 goes from 192 to a still acceptable 128 bits of effective security.

➕ show 1 reply