Since it's what everyone is going to be worrying about: This result does not matter practically for cybersecurity.
The best practical algorithm for solving elliptic curve DLP is BSGS (Baby Step, Giant Step) which grows as 2^{b/2+o(b)} in the key length.
This result claims 2^O(b/(log log b)) which is technically subexponential, but since that `log log b` term grows so slowly it pretty much would only beat BSGS for absolutely gigantic keys.
I’m not very familiar with this stuff at all, but this comment doesn’t seem right. That’s the Shanks method presented nicely in Table 1 with time complexity p^{1/2+o(1)}, vs. this method’s p^o(1). I’m confused how you ended up at O(p).
This work really isn't at the hardware or even practical execution level. Just showing how the algorithm on an abstract idealized machine scales with input size. There's a lot of optimization that goes into getting this to work on a real machine.
The right conclusion for the wrong reason. They claim the new algorithm is theoretically faster for huge numbers and only impractical because of massive initial overhead.
Perhaps misread the paper's actual bound which is p^{o(1)} and means the exponent on p eventually shrinks smaller than any positive number including 0.5 (the square root) once p is big enough.
Also the current best algorithm has running time proportional to the square root of the group order. This one has running time proportional to the group order, which means it's a nonstarter for practical atacks.
Should OpenSSH implement a config option that requires two different types of keys? If we don't know whether RSA or Ed25519 is weakened, then better to have both?
The situation on e.g. GitHub is sort of the opposite: if you use both RSA and Ed25519, then it's as strong as the weakest of the two.
I think that's just "hybrid" key exchange. I.e., when I'm connecting to news.ycombinator.com now, my browser is exchanging keys by mlkem768x25519 in TLS 1.3, which is still secure if either one of ML-KEM or Ed25519 fall.
> "Hybrid key exchange refers to using multiple key exchange algorithms simultaneously and combining the result with the goal of providing security even if a way is found to defeat the encryption for all but one of the component algorithms."
Note that Ed25519 would fall together with RSA if that P=BQP rumor is true. (Ed25519 is a special case of the discrete logarithm problem in the OP, by the way).
I'm not sure they'd publish anything, you'd just be giving nation state adversaries the key to unlock their treasure trove of hoarded internet traffic, possibly setting off a chain of secret revelation, and causing mayhem generally.
Not everyone with a rtx5090 is going to be able to factor large primes and start breaking encryption, it only benefits nation states really. The same goes for your adversary, they aren't going to tell anyone either.. Hard to judge how it would play out. There woukd probably be a prisoner dilemma of sorts playing out while everything gets rolled over to PQC, and then one day Satoshi's wallet would suddenly drain.
You would want to do that for key exchange too, not just authentication. OpenSSH already supports this for authentication; setting "AuthenticationMethods publickey,publickey" in sshd_config(5) will force users to supply 2 independent authorised keys. It also already supports hybrid key exchange.
AuthenticationMethods publickey,publickey does not require different types, so if you have two machines each with a unique (rsa, ed25199) pair, OpenSSH will also accept (rsa, rsa) or (ed25199, ed25199).
It can require different types if that's how you set up your authorized_keys file. You can then mark it immutable so that it can't be changed.
You should also create an empty authorized_keys2 file in this case (since OpenSSH will read both by default), unless you set e.g. "AuthorizedKeysFile .ssh/authorized_keys" in sshd_config(5) too.
It can't accept rsa,rsa in your example since neither machine has 2 RSA authentication keys in your example.
EDIT: There's also the AuthorizedKeysCommand directive instead, if you want to write a fancier program to constrain the permitted keys on offer. For example, it could look at all of the authorized keys listed in your file and offer only RSA ones, then later offer only Ed25519 ones.
Reminder: Algorithms for integer factorization essentially always have an analogue for prime-field DLP. Usually it takes a bit longer than this for the details to be ironed out, but the surprise would have been if this algorithm didn't exist.
I’d love to read the story of how the authors made the connection. Did they start with this problem and go looking for a new tool, or see the earlier paper and think ‘oh wait, we could use this’?
The verification angle interests me more than the algorithm itself: a deterministic claim is cheap to state and expensive to trust, so we started building replayable audits for exactly that gap. Same approach applied to the recent VP≠VNP announcements from Anthropic and OpenAI — pulled the claims down, re-ran them against independent Lean kernels, posted results and replay scripts at github.com/huv0310-arch/k25-evidence. Happy to be proven wrong on any line; that's kind of the point.
Opus 5.5 claims there are no immediate cryptographic consequences. Maybe bigger elliptic curve keys one day, and RSA can already be attacked by faster algorithms. Seemingly this is a complexity theory result rather than a cryptography result.
True. But in the last couple of weeks the Bayesian probability of new math trashing a major piece of in use cryptography in the near future has shot up—-easily eclipsing the risk from quantum computing working out.
there is no reason to assume that AI-driven progress would disproportionately benefit classical cryptanalysis while leaving quantum computing unaffected
edit: quantum algorithms and error-correction algorithms are math problems. breakthroughs in quantum algorithms already reduced the qubits needed to break RSA quite drastically already. maybe AI could even aid in qubit design and hardware architecture.
Shor’s algorithm is extremely simple and, if run on an ideal quantum computer, has very low complexity. The complexity of solving ECDLP with Shor’s algorithm is not drastically higher than the complexity of EC multiplication/exponentiation (choose your favorite terminology) on the same computer.
I don’t think the original factoring/discrete log paper tried to optimize the gate count at all (certainly the author’s lecture on the topic did not) and it’s still quite efficient. And it’s obviously possible to optimize it.
Actual quantum computers are messy, and logical qubit design and algorithm porting is a sort of combination of somewhat specialized math and code golfing. AI will be fantastic at it.
Quantum computing is a physical engineering project. Classical cryptanalysis is math. AI is demonstrably better at math right now. So there is a very good reason.
quantum algorithms and error-correction algorithms are math problems. breakthroughs in quantum algorithms already reduced the qubits needed to break RSA quite drastically already. maybe AI could even aid in qubit design and hardware architecture.
[Quoting:] "physical engineering (...) cryptanalysis is math"
[Orwellian-Televisor-Sounds] "WE'LL BURDEN ANTOTHER 'STILL-THINKING' PROBLEM ON YOU... 'SCIENTIFIC-INTELLIGENCE', OR AS YOU SAY 'AI' EMMITs PROTONs. SO THERE WILL BE NO SAFE 'QUANTUMCRYPTING'. NOW GO ON CIVILIAN. THERE IS NOTHING TO SEE..."
Of course there is: building quantum computers needs to happen in the real world, breaking crypto with classical algorithms can happen entirely in cyberspace.
If AI sufficiently breaks crypto math such that a classical algorithm can decrypt anything, then it doesn’t really matter (for now, in this context) whether it also boosts quantum algorithms.
At this point maybe we should just start building up the infrastructure for one-time-pads. Go to the Apple Store or your bank once a month or so, and load up on a couple gigs of physically random bits.
Anything can happen, but asymmetric crypto looks more at risk than symmetric.
If we lost that, we’d need to do a combination of physical key exchanges (for most critical / sensitive cases) and Kerberos style key exchange servers.
None of the mathematical advances that may happen in the near future is relevant for the traditional secret-key cryptography.
Public-key cryptography is not strictly necessary, key exchange can be done using pre-shared secret keys.
Within an organization, public-key algorithms offer only few improvements over secret-key algorithms, e.g. the ability to revoke certificates.
Where public-key algorithms have great advantages is for asymmetric communication between unknown customers and an authenticated server, e.g. for online purchases and online banking.
If the existing public-key algorithms became broken tomorrow, that would have negligible effect for spy agencies or competent terrorists, but it would disrupt the Internet commerce.
Well, at least we’ll be able to do online banking and Apple updates. Does Amazon still have stores? Maybe they can distribute bits through Wholefoods locations.
I don’t know anything about cryptography, my post was mostly a joke. Classic one time pads are information-theoretically unbreakable of course, but the idea of going to a shop in person to load up on bits seems too silly.
How’s TOTP work? Generally if there’s a seed involved I’d be worried that some bits could be reused. But, as I said before, I don’t know anything about crypto.
Come to think of it, my bank delivers a debit card through the post to me containing a tiny chip, maybe it could work? Presumably the shop would receive a one time pad from the bank too.
I think it would have some scaling issues? Maybe some clever system could be worked out.
Actually we’d have to work out an exact usage model here before we start trying to encrypt it.
If the idea is we want to send a message that says something like: “send $10 from my_account to shop_account, authorized with my_pin” the chip on the card could encrypt that whole message with the you<->bank one time pad, and then the shop<->bank communication could happen with their own one time pad, right? Since the shop doesn’t need to see your message, you don’t need to share a pad with them. But each shop/bank pairing will need their own unique set of one-time-pads, I think that would be the big scaling issue.
Your sarcasm notwithstanding, I seriously think that asking the top models for an explanation, maybe w/ cross-checking their responses with each other and then a "simplified explanation" has better chances of being relevant than a random comment on the Internet was ~1 year ago. Obviously different if you know and trust someone and can verify their identity. But as for randoms on a forum, yeah I'll take my chances w/ the clankers on math problems.
> Obviously different if you know and trust someone and can verify their identity.
one of the few things this forum has over any other is precisely that some relevant people post here using their actual identity. people come to forums for the human aspect, anyone who's here have access to the top models and could prompt themselves if sufficiently interested.
Can this have implications for integer factoring in P? Apart from the fact that someone might have already solved it and is sitting on the result (for national security).
Pi was recently factored by OpenAI. The trick they used was to project onto the complex plane, as it has both a real factor (P) and an imaginary factor (i). The most surprising consequence is that Pi^2 is actually negative.
As ChatGPT put it: "Well, shit." We'll see if, or rather when this or an improvement/approach like it is a practical way to derive private keys from public keys.
We have had sub-exponential probabilistic algorithms to solve finite-field DLP for a long time. Making it deterministic is relevant to complexity theory, but doesn't matter in practice.
But of course AI being able to make advances like this is a sign that it might be able to make practical advances too.
Not from this one. It's finite field DLP, not elliptic curves, and NFS already beats it in practice I believe. I'm more worried about the pace to be honest.
The best practical algorithm for solving elliptic curve DLP is BSGS (Baby Step, Giant Step) which grows as 2^{b/2+o(b)} in the key length.
This result claims 2^O(b/(log log b)) which is technically subexponential, but since that `log log b` term grows so slowly it pretty much would only beat BSGS for absolutely gigantic keys.
The paper's result is still not a practical cybersec threat, but not for the reasons I initially stated.
I'll edit my initial comment.
Perhaps misread the paper's actual bound which is p^{o(1)} and means the exponent on p eventually shrinks smaller than any positive number including 0.5 (the square root) once p is big enough.
The present deterministic algorithm is highly unlikely to have practical consequences for cryptographic protocols in use.
The situation on e.g. GitHub is sort of the opposite: if you use both RSA and Ed25519, then it's as strong as the weakest of the two.
https://www.rfc-editor.org/rfc/rfc9954.html (RFC 9954 Hybrid Key Exchange in TLS 1.3")
> "Hybrid key exchange refers to using multiple key exchange algorithms simultaneously and combining the result with the goal of providing security even if a way is found to defeat the encryption for all but one of the component algorithms."
Note that Ed25519 would fall together with RSA if that P=BQP rumor is true. (Ed25519 is a special case of the discrete logarithm problem in the OP, by the way).
Not everyone with a rtx5090 is going to be able to factor large primes and start breaking encryption, it only benefits nation states really. The same goes for your adversary, they aren't going to tell anyone either.. Hard to judge how it would play out. There woukd probably be a prisoner dilemma of sorts playing out while everything gets rolled over to PQC, and then one day Satoshi's wallet would suddenly drain.
As you say, watching legacy systems quickly getting switched to PQC would be a decent heads up.
Even still switch to PQC now anyway.
You should also create an empty authorized_keys2 file in this case (since OpenSSH will read both by default), unless you set e.g. "AuthorizedKeysFile .ssh/authorized_keys" in sshd_config(5) too.
It can't accept rsa,rsa in your example since neither machine has 2 RSA authentication keys in your example.
EDIT: There's also the AuthorizedKeysCommand directive instead, if you want to write a fancier program to constrain the permitted keys on offer. For example, it could look at all of the authorized keys listed in your file and offer only RSA ones, then later offer only Ed25519 ones.
https://news.ycombinator.com/item?id=48218066
edit: quantum algorithms and error-correction algorithms are math problems. breakthroughs in quantum algorithms already reduced the qubits needed to break RSA quite drastically already. maybe AI could even aid in qubit design and hardware architecture.
I don’t think the original factoring/discrete log paper tried to optimize the gate count at all (certainly the author’s lecture on the topic did not) and it’s still quite efficient. And it’s obviously possible to optimize it.
Actual quantum computers are messy, and logical qubit design and algorithm porting is a sort of combination of somewhat specialized math and code golfing. AI will be fantastic at it.
[Orwellian-Televisor-Sounds] "WE'LL BURDEN ANTOTHER 'STILL-THINKING' PROBLEM ON YOU... 'SCIENTIFIC-INTELLIGENCE', OR AS YOU SAY 'AI' EMMITs PROTONs. SO THERE WILL BE NO SAFE 'QUANTUMCRYPTING'. NOW GO ON CIVILIAN. THERE IS NOTHING TO SEE..."
P-:
" Das wenig bekannte, alte Wort: "Stadt" gedeiht scheinbar immer noch in den Herzen der Leute. "
https://bilderupload.org/image/e8de03505-50a-physik-finalmai...
...with a humorous touch of 'explain' for your entertainment (-;
Regards, enjoy your weekend...
If we lost that, we’d need to do a combination of physical key exchanges (for most critical / sensitive cases) and Kerberos style key exchange servers.
Public-key cryptography is not strictly necessary, key exchange can be done using pre-shared secret keys.
Within an organization, public-key algorithms offer only few improvements over secret-key algorithms, e.g. the ability to revoke certificates.
Where public-key algorithms have great advantages is for asymmetric communication between unknown customers and an authenticated server, e.g. for online purchases and online banking.
If the existing public-key algorithms became broken tomorrow, that would have negligible effect for spy agencies or competent terrorists, but it would disrupt the Internet commerce.
How’s TOTP work? Generally if there’s a seed involved I’d be worried that some bits could be reused. But, as I said before, I don’t know anything about crypto.
Actually we’d have to work out an exact usage model here before we start trying to encrypt it.
If the idea is we want to send a message that says something like: “send $10 from my_account to shop_account, authorized with my_pin” the chip on the card could encrypt that whole message with the you<->bank one time pad, and then the shop<->bank communication could happen with their own one time pad, right? Since the shop doesn’t need to see your message, you don’t need to share a pad with them. But each shop/bank pairing will need their own unique set of one-time-pads, I think that would be the big scaling issue.
I fixed it for you.
one of the few things this forum has over any other is precisely that some relevant people post here using their actual identity. people come to forums for the human aspect, anyone who's here have access to the top models and could prompt themselves if sufficiently interested.
How quaint. I remember back when we didn't know Dirichlet GRH was true.
we didn't know anything but we were happy dammit!
And neither of those algorithms are in P.
But of course AI being able to make advances like this is a sign that it might be able to make practical advances too.
And not much longer when Diffie-Hellman is not secure
Furthermore, "subexponential" here is so close to exponential that it is as if it was in practice.