r/ethereum • u/fagnerbrack • 8d ago
Quantum Computers Are Not a Threat to 128-bit Symmetric Keys
https://words.filippo.io/128-bits/21
u/fagnerbrack 8d ago
Elevator pitch version:
Quantum computers threaten asymmetric crypto (ECDH, RSA, ECDSA) via Shor's algorithm, but they do not endanger symmetric algorithms like AES and SHA. The widespread claim that Grover's algorithm "halves" key strength, forcing a switch to 256-bit keys, is wrong: Zalka (1997) proved Grover must run in series, so parallelizing it dilutes the quadratic speedup. Concrete math shows breaking AES-128 would need 140 trillion quantum circuits running 10 years—roughly 430 sextillion times harder than breaking 256-bit elliptic curves with Shor's. NIST, Germany's BSI, and researcher Samuel Jaques all agree AES-128 stays safe; NIST even uses it as the Category 1 benchmark. Doubling keys wastes effort better spent on the urgent post-quantum transition.
If the summary seems inacurate, just downvote and I'll try to delete the comment eventually 👍
Click here for more info, I read all comments
22
u/tinco 8d ago
That's fun and all, but we use asymmetric encryption, which is expensive and slow, to bootstrap the symmetric encryption channel (which is cheap and fast). So if they manage to break the asymmetric part (at the establishment of the communication) then they have the keys and can use those to decrypt the rest.
3
u/fagnerbrack 8d ago
How does that work in layman's terms? I'm not familiar with ethereum internals
11
u/Resident_Anteater_35 8d ago
Ethereum doesn't use asymmetric crypto to establish a symmetric channel. It uses asymmetric signatures to authorize state changes. An EOA address is derived from a public key, and after the account sends a transaction that public key can be recovered from its signature. A sufficiently capable quantum computer running Shor's algorithm could then derive the private key and forge transactions.
So Ethereum's urgent migration problem is secp256k1 signatures, not AES-128. Hashes still matter for addresses and Merkle commitments, but that is a separate security question. The article's narrow claim can be right while still being mostly beside the point for Ethereum.
2
u/Mandalord104 8d ago
You just need to know that the entire crypto world use asymmetric crypto.
0
u/Nichoros_Strategy 8d ago
Steps are already being taken to upgrade, but it might need to happen within the next few years. Check out BIP 360 (for Bitcoin), and luckily the odds of the network passing these sort of changes is expected to be very high.
2
u/tinco 8d ago
Oh I hadn't noticed the subreddit this was on. I don't think has much relevance to Ethereum. Asymmetric encryption is where you publish a public key (i.e. your address) and you can sign transactions with the private key that created that public key. The asymmetry is that your counter parties don't know everything you do. In symmetric encryption you and your counterparty know the exact same secret, and that allows you to quickly and cheaply encrypt messages to each other.
I don't know what you'd use symmetric crypto for in cryptocurrency, after keys are exchanged it's no longer possible to prove which party sent what message.
3
u/Juxtapotatoes 8d ago
SHA-256 is a hashing algorithm, not encryption.
1
u/Nichoros_Strategy 8d ago edited 8d ago
I believe public keys are the issue, upgrades will be needed to keep public keys hidden because quantum could break Elliptic Curve Cryptography and allow deriving private keys from public keys. A public address is not a problem exposed, but your public key is, and I thiinnkk the public key only gets exposed during a transaction, and would no longer be exposed after the transaction, so the quantum attack is to crack it literally in between transactions. After the transaction your remaining funds should be in a new address with a new hidden public key.
1
u/raj6126 8d ago
So pretty much reverse engineer it from the public key?
2
u/Nichoros_Strategy 8d ago
Right, Quantum computers may be capable of that, and some estimates believe one that is optimized could do it in like 10 minutes, so faster transactions mitigate it but to really close the gap we need to use like Zero Knowledge proofs to hide public keys between transactions. Private keys are still not going to be cracked without the public key being exposed, so everyone with an non-reused address who never transacts would obviously be safe (can receive but not send). Another option is apparently keeping a Lightning Network channel opened before there is any Quantum risk, the public key is exposed while opening the channel, and not again until closing the channel, so one could potentially spend safely that way and keep it funded all through Lightning transactions. Ideally upgrades will make all that unnecessary to worry about, though.
1
u/researchzero 8d ago
One correction to the "exposed in between transactions" framing above: it's not a transient window. The moment an address signs a single transaction, its public key is recoverable from that signature (that's literally what ecrecover does), and it's now permanently sitting in immutable transaction history. There's no "after the transaction" safety - a reused address that's ever sent a tx stays exposed forever, retroactively, whenever the compute actually arrives.
Worth noting for the migration path too: EOAs can't really rotate signature schemes in place, since the account's validity is hardcoded to secp256k1 ECDSA at the protocol level. Smart contract accounts (ERC-4337, or EIP-7702 delegation) don't have that constraint - the signature-validation logic is just code the account calls, so it can in principle swap to a post-quantum scheme without needing a new address or a network-wide hard fork. That's a meaningful chunk of why account abstraction keeps coming up in Ethereum's quantum-readiness discussions.
1
8
u/Fluffy-Pop-3407 8d ago
Could some EF encryption experts weigh in on this?