| ▲ | echoangle an hour ago | |||||||
Can some explain why we use key sizes sized right at the limit of what’s considered safe and don’t go full overkill? Why not just use a 1024 bit key and be done with it? How much does encryption and decryption speed depend on key size? Also, the elliptic curve part is only used to negotiate a symmetric key once per session, right? So even if increasing the key size slows down the process significantly, this would not slow down every packet sent on the internet, only those used to start new connections, right? | ||||||||
| ▲ | nickysielicki 20 minutes ago | parent | next [-] | |||||||
We thought what we had was already overkill. I don’t think anyone seriously considered the possibility that ECC strength could be reduced by some factor. You might have been able to find some fringe group of cryptographers that believed it would eventually be completely defeated by some complete ground-up breakthrough in number theory or rethinking of mathematics from first principles, but (if this turns out to be true) I don’t think it was on many people’s bingo card. If it does turn out to be true, it’s incredibly fortunate. As mentioned in the article, 85 bits of security is still impractical to crack at scale, and likely will remain impractical for the rest of our lives. | ||||||||
| ▲ | qingcharles 27 minutes ago | parent | prev | next [-] | |||||||
One of the problems of PQC is that it increases the start-up time for new connections, so it makes browsing the web a little bit laggier. | ||||||||
| ||||||||
| ▲ | smackeyacky 39 minutes ago | parent | prev | next [-] | |||||||
Speed | ||||||||
| ▲ | dathinab 14 minutes ago | parent | prev | next [-] | |||||||
we don't ;) but also because it's a compromise of performance/usage cost vs. benefits. Encryption on much higher security levels can be many times slower and have many times more bandwidth, latency or storage issues. That might seem irrelevant but when it comes to idk. HSM in a Yubikey, video streaming, responsiveness of websites or just compute cost at the scale of YouTube it very much matters. This becomes way worse with post quantum algorithms as their size for a 128bit security level is already hugely larger. but going back to the "we don't" point: - in general a "128bit security level is targeted", that isn't anywhere close to "at the border of what is considered safe". Here it might be worth that "bit's of security" is an exponential scale, every bit doubles the number of possible values to brute force - if a algorithm falls below 128bit security it's not automatically "broken", but out of caution we wouldn't recommend it anymore for new systems - simplified anything >100 bits of effective security is not really practical attackable with current hardware, so that is a buffer of 28times doubling the number of values to brute-force between "what is the safe limit" as general recommendation. Some argue that already is overkill. - and even 80-100 bits of entropy are still in a way which is "safe" for a lot of applications and way too expensive for most things to make it worth cracking - heck even lower values then that sometimes can be fine, e.g. for very short lived _signed_ JWTs you could argue that "if you need hours to crack something which is only valid for 5minutes, maybe usable for 15 it's fine" => so the 128bit security level already has quite a bit of buffer for close to all use-cases Now there is _is_ a case to make that with current hardware, for a lot of use-cases, more paranoid key sizes are "just fine". And indeed you do find P-512, RSA-4096 and similar in the wild, especially for applications which are expected to run for 10+ years and are hard to update. But also P-256 was standardized in ~2000, that means it has been a grate choice for ~26 years. I think the main reason there wasn't a general recommendation to slowly move to P-382 "just to be sure as it's viable doable" is that around the same time it became viable (cost wise) it also became clear that migration to post-quantum cryptography is needed in a similar time span. So this is maybe a case of a slow changing industry, sure. But it isn't really a case of unnecessary "low margins", they aren't really low and the algorithm did last for >25 years (and is likely still fine for some cases, like short lived _signed_ access tokens.(But continuing using it there would be like what you say "right at the limit".) Anyway keys with 1024 _bits of security_, are far more then just overkill, they are somewhat like 512-times exponentially stacking up overkills ;). Like even if we have full fledged quantum computers 128-bit AES is still somewhat okay-ish for many use cases and 256 definitely fine and 512 overkill (that is the block cipher, the stream cipher like GCM is likely _NOT_ fine). And sure I still would recommend something like AEGIS-512 for a lot of cases (but sadly not NIST approved) as it fixes many other subtle issues stuff like AES-256-GCM has, but that's a different topic. | ||||||||
| ▲ | 26 minutes ago | parent | prev [-] | |||||||
| [deleted] | ||||||||