Too bad we can't have more nuance about these discussions. Both the USA and China have bad and good things that they do, and they both have very different cultures, so the nuance is in understanding that the views of a citizen in each country are quite different on these things. Also, the type of citizen you are will depend on your view as well, and what you do day to day, and so on.
I tend to see mass surveillance as a good and bad thing, obviously. If you could control the access to it properly and verify to the public that the tools were not being misused somehow, then that would be nice to have. If you can't do that, then it's kinda sitting there waiting for misuse from someone someday so then you have to weigh the risks vs rewards and such.
It really isn't black or white, unless you have a closed mind to the opposing ideas.
Since there is no way for the former then it’s a black and white thing and is bad.
It’s like saying “carbon emissions are either not a problem because in theory we can invent technology, maybe, someday, that will allow us to control the co2 level or they are a huge problem that will cause incredible hardship and death across the planet. It’s not black or white!”
I like that XKCD cartoon, and thought it might be a good response to the suggestion to "just use 4", but the quote/paraphrase I was responding to, though, was also in the Dilbert cartoon "That's the problem with randomness: you never can tell."
mlkem1024nistp384-sha384 would be my recommendation and most in line with the NSA's advisory here, but there's also an argument for sntrup761x25519-sha512.
There are 2 separate algorithms, the key encapsulation mechanism, which transfers secret keys between parties when a connection is established, and which is important against adversaries who would record now the communications, for decrypting them later, and the digital signature algorithm, which is important against adversaries who would try to impersonate you in the future, if they break it.
Your recommendations, like RFC 9941 sntrup761x25519-sha512 and those based on ML-KEM are for the key encapsulation mechanism.
I am among those who believe that the arguments that ML-KEM is significantly weaker than NTRU Prime are correct, and that the recent attack by Anthropic has confirmed the predictions made about ML-KEM long ago, even if for now the attack is completely impractical (but it might be improved in the future).
The only reason why NIST has preferred ML-KEM is that when implemented in dedicated hardware, not in software, the cost of ML-KEM can be lower than for NTRU Prime. The reason is exactly the same for which the weaker polynomial hash of GCM has been preferred by NIST instead of the stronger Poly1305. Both ML-KEM and the GCM hash can be cheaper than NTRU Prime and Poly1305 in dedicated hardware, because they can replace some integer multipliers with other simpler circuits (due to making computations in powers-of-two fields instead of prime fields).
So I recommend to use in SSH sntrup761x25519-sha512.
The algorithm mentioned by you, RFC 10042 mlkem1024nistp384-sha384, is designed for a higher security level than the algorithms currently available in TLS 1.3 and in SSH. I believe that it will be available only in a future version of OpenSSH.
The current version has only mlkem768x25519-sha256, which is equivalent with what TLS 1.3 has.
For digital signatures, OpenSSH for now offers ssh-mldsa44-ed25519, which should be chosen when generating host keys.
So one needs to both generate new host keys with ssh-mldsa44-ed25519, and edit the client and server configuration files, to prefer sntrup761x25519-sha512 and mlkem768x25519-sha256, in what order you like.
I had reasons for making the recommendation I did. It comes down to how much you trust existing constructs and which you find likely to fall apart under AI scrutiny. I trust p384 far more than I trust x25519. (This is surprising even to me! I would not have said this even one year ago.) I don't trust any lattice-based cryptography system at all.
You no doubt disagree. The thing is, neither of us have any way of knowing and it is all guesswork. There isn't an objective call to make here. You have your opinion, I have mine.
But if it matters, the TL;DR is that I do not expect all crypto primitives to fall to AI analysis, but those that do will have structure that is exploited. The NIST p-curves have very little structure, as far as we know, whereas x25519 has lots of structure. Indeed, the structure is the point: it is what makes it fast. That mattered a few years ago. Right now, we want conservative, not fast.
Lattice crypto I'm treating as assumed-broken, even under classical assumptions, until we have a definitive minimum bound proof.
If you don't trust lattices, lamport / winternitz + merkle + blake is probably your non-nist-approved pq go-to for the sshd use case where signature size is not that important.
Yes, but there are very few combinations of key systems that are widely supported. The ones I listed should work on any modern and maintained Linux system or cloud service.
And I think the incentives have changed such that it no longer makes sense to be scared of NIST curves. The NSA no longer has an edge.
Someone needs to put together a bunker-mode key exchange algorithm that chains together the highest security, most conservative variants of every hard problem class, classical and quantum. It’s fine if it take 300ms to perform a key exchange or signature validation. You just use it to setup a symmetric session key.
You can turn them into arbitrary 2^n signatures with a merkle tree.
They don't guarantee confidentiality of course, but your terminal traffic being intercepted by eavesdroppers is a much smaller issue than sshd accepting arbitrary commands from anyone on the internet.
Between computers that are both controlled by you, nothing is more secure than a key-exchange protocol based on pre-shared secret keys, assuming that the protocol is well designed and the key distribution and storage is done correctly.
It is possible to replace fixed pre-shared keys with generators of secret keys used only one time, for the encapsulation of the session keys during a single connection establishment, and it is possible to design this to ensure similar secrecy properties with Diffie-Hellman, against an adversary who controls only the network, not the communicating computers.
I really wish we could get a bigger good PQC curve standardized/pseudo-standardized. E-521, M-511 seem like the best, but IIUC basically no one actually have them implemented.
Could you please go into some detail about why the announcement indicated to you that MLKEM "is significantly weaker than NTRU Prime", and what you mean by "significantly"?
ML-KEM is now known to not be exponential. The algorithm that proves this is still incomputable in any reasonable amount of time, but it is asymptotically sub-exponential. This is the very normal first stage progression of cryptographic attacks: show via a galactic algorithm that some property doesn't hold, then progressively find better and better refinements until you eventually arrive at a total break.
Could you answer the question I posed to you the other day? I asked for the names of two cryptographers who agreed with you about this. You named Scott Aaronson and Daniel Bernstein. Bernstein is no surprise (that's why I asked for two), but Aaronson isn't a cryptographer at all. You replied that you believed he was, because cryptography is "a big tent", and when I pushed, you said Bernstein and Boneh. I asked why you thought Boneh was with you on this, and haven't heard back.
Because he's a colleague I know well enough to predict what he might say, but I'm not going to bug him for a quote over an internet comment. Look, here is Schneier saying something on p256 that I think is relevant here:
"Remember that cryptographers have very different definitions of “broken” than regular people do. We think an algorithm is broken is if it weaker than expected, not if it can expose operational systems."
ML-KEM as PQC is broken, by the accepted meaning of the word "broken" as used within cryptographic community. This niche meaning of "broken" has been adopted with good reason: historically most crypto systems are "broken" in this way as the first step in a series of continuous breaks that eventually reduce attack complexity down to a computable range.
Think of it like a terminal cancer diagnosis. Yeah, it's possible you might beat the odds. SHA-2 did, when attacks against reduced-round versions started showing up and that spooked the community into starting the SHA-3 proposal. Yes, that ended up being a nothingburger, but that is the exceptionally rare outcome.
The most likely eventual outcome for most cases is clear from precedent: one theoretical break almost always leads to a cascade of improvements, culminating in a practical attack relatively quickly. Where there is smoke, there is fire, and you should start acting accordingly.
ML-KEM received its terminal cancer diagnosis, and I don't think that this is a controversial statement to any practicing cryptographers.
So if I go ask Dan Boneh and show him this post, he'll agree with you?
Also: cryptographers weren't "spooked" by "reduced round attacks on SHA2". It's closer to the truth that cryptographers think it's unlikely it'll ever be broken. The primary motivation for SHA3 was to get out of Merkle Damgard.
The SHA-3 competition was started to provide a backup in case SHA-2 was broken. It was only after the Round 3 selection and into the finalist phase that architectural diversity became the focus and primary selection criteria.
I'm sorry, can I ask you to answer the question I just posed? You can email me at the address in my profile if you don't want to disclose your name here. We can just ask Boneh directly if he agrees with what you've written.
I have not said that the announcement indicated anything to me.
I said that the Anthropic announcement has confirmed the predictions that this kind of attacks against ML-KEM is possible, predictions that have been done long ago, during the NIST competition.
Comparisons between the mathematical properties of ML-KEM and NTRU Prime can be found in the documents of the NIST competition.
I have read them and I consider that the arguments about ML-KEM being much riskier than NTRU Prime are correct.
I do not believe that there is any non-negligible risk that ML-KEM could be broken in the near future, but I do not see why should I choose consciously an algorithm with worse mathematical properties, when better alternatives exist.
The only argument that is in favor of ML-KEM is that when it is implemented in dedicated hardware, some integer multipliers can be substituted by circuits implementing number-theoretic transforms, which results in a cost reduction.
This will already happen in some future Intel CPUs, probably in the 2028 generation, where a special instruction for number-theoretic transform will be introduced.
That is likely to boost the speed of ML-KEM.
For a server with a very high rate of Internet HTTPS connections and having hardware support for ML-KEM, it may be a reasonable choice to minimize the time and energy spent on connection establishment, so choosing a key encapsulation mechanism based on ML-KEM is appropriate.
On the other hand, when managing my own computers, the overhead of connection establishment is negligible, so I do not care about the most efficient minimum security solution, but I prefer the most secure solution that still has an acceptable cost, which for now is NTRU Prime.
You haven't really answered my question so much as restated your original thing in more words. Can you say what aspect of MLKEM you now believe to be inferior to other structured lattices? When you say this, you're making a claim that the CIRG people didn't, so presumably you have something interesting to say here. You're talking about a paper that lays out an attack that is far worse than brute force, and can be launched only with a number of Dyson Spheres requiring more material than exists in the galaxy. You've drawn from that a strong conclusion. I'm wondering how you connect the dots.
I'm looking for something that engages with the paper. Thanks!
I did not answer, because the answer would be too long and it will be equivalent with quoting the documents of the NIST competition.
Anyone interested in the details must read the original documents that describe and analyze the proposals, including Kyber that has become ML-KEM, and NTRU Prime, and think very carefully about which claims are correct and which claims are incorrect.
Each team has argued that their choices are better and the choices of the other teams are worse, but some of the arguments convinced me, including those of the NTRU Prime team, while I disagree with some of the counterarguments.
Whenever I am not constrained by the choices made by others, I never use a cryptographic algorithm based on its preferred status in standards (because most standards are much weaker than the state-of-the-art) or based on hearsay, but only if I study carefully its mathematical basis and I agree that whatever proofs are provided about its mathematical properties are correct and relevant for the application.
That means reading the original proposal of the authors and the many following cryptanalysis research papers.
Most people cannot afford to do that, but using the algorithms standardized for well-known applications like TLS and SSH is sufficient for most purposes, even if suboptimal.
While I consider NTRU Prime mathematically superior to ML-KEM, like also Poly1305 is superior to the GHASH used in GCM (which has a set of weak keys), I believe that NTRU Prime will never become widely used, unless a really practical method were discovered for breaking ML-KEM, which is unlikely.
When I use SSH, if I have the option to choose between NTRU Prime and ML-KEM, I prefer the former, but it is unlikely that I will have frequently the opportunity to make such a choice, because when I control both communicating computers I prefer to avoid completely any public-key algorithms, since they are not necessary or useful in such a scenario.
I know you consider NTRUP mathematically superior to MLKEM. What I don't know is why you think that. I don't know what the value of the rest of these paragraphs are. I know why it's important that if one is superior to the other; I don't need that context.
What I want to know is how that paper, which proposes an attack that is not just galactically expensive, but galactically more expensive than brute force, changed how you think about SNTRUP vs. MLKEM.
I'm going to ratchet the question up now: I don't see how it could have, and I'm concerned that these are the kinds of things you could say without really engaging with the paper, but rather just trying to build a case off the hype that preceded the paper. Can you do better at explaining the point you're making? Respectfully: I think you might be bluffing.
In order to use quantum-resistant algorithms in OpenSSH, you need to choose 2 separate algorithms.
You must generate new host keys appropriate for the only algorithm based on ML-DSA that is currently offered by OpenSSH: ssh-mldsa44-ed25519.
In the client and server configuration files, you should specify the 2 quantum-resistant key-exchange algorithms currently available in OpenSSH, one based on NTRU Prime and one based on ML-KEM, in what order of preference you believe is right.
What is strictly necessary is to generate new host keys, for ML-DSA.
If you use the default OpenSSH configuration files, I assume that both quantum-resistant key exchange algorithms are enabled, in some default order of preference, and they may be selected when the client and the server negotiate.
The recommendation to edit the configuration files is for those who do not use the default configurations. I am among those, I never use the default configuration files and I disable the majority of the cryptographic algorithms, which I consider deprecated, especially in the server configuration, where I typically enable only a single combination of algorithms, so that any client that does not use it is rejected.
I don’t get why people think that you can trust someone who cheats on their wife. Bottom line, I just don’t get it. If they’ll do that to the person they made a legal and personally agreement with, how can you trust them not to cheat in business or at a video game or literally anything else.
Facts only please: the man himself said he was unfaithful to his wife. I don’t care about export controls or him sleeping with a subordinate, for the purposes of this discussion.
Trust is a continuum, as in trustable or trustworthy. Your statement sounds like trust is an on-or-off switch. Humans have a reasonable way of assessing trustworthiness.
A really interesting question here is what percentage of people you believe cheat on their spouses? I also want to believe it's rare but I really don't think the reality supports that. A tough thing to survey, but to be it seems hard to ignore how common it seems, even though people are trying to hide it. How many marriages and careers have you heard about being disrupted for this? How many did you not hear about?
I agree. Obviously I don't know the statistics, but it feels like it is close to 50% of marriages/relationships. I think it is just human nature, especially considering originally humans were never expected to live this long (80+). Most humans love drama and thrill, cheating ticks that box among other things.
You don't know anything about the situation. His wife probably cut him off a long time ago and thus broke the contract first. Happens to men all the time, but feminists just expect men to suffer.
Luckily that’s applicable generally to most desk jobs with AI replacements, as long as you accept the shit ass quality that clankers produce when unsupervised.
Either the AI bubble will pop because unsupervised clanker quality never reaches supervised levels or we’ll ALL be out of a job and then it’s the everyone’s problem when society crumbles.
I doubt that any of them are closed-source, so the clankers probably already know all their bugs. Who says they all don't share a similar bug that is necessary for the proof to work? No one is going to review 1.3GB of anything by hand, even if they could understand it all in a single lifetime.
5.6 series is worse and more expensive than the 6 series. Try the latest Luna and sol; I use those for 100% of my work right now, with sol doing only 10-5 percent of it. I code in go and review the work and edit it extensively though, so I don’t know about how good those two are at vibing slop.
What if I told you that I didn’t think you had a right to exist, maybe I wanted to kill you and your family and friends because they knew you. That’s what those folks have to deal with. It’s a lot more than disrespect, I worded that poorly. This guy spouts the same garbage takes as those who would kill people they don’t like. You are probably also one of those jerks if you pass this off as not a big deal so I’ll stop replying but obviously I don’t think much of someone who would comment like you did anyways.
They are constantly tipping the scales here, and if you say so everyone will show up and claim they're the best mod team on the planet and totally fair and it's outrageous that you want to see accountability for mod actions via some sort of mod log and the mods will say that a mod log will allow some sort of bad actors to do something vague and threatening and they'll also use rules like a cudgel and claim a technical reading of some rule will absolve them. Then again, we are on a site run by a VC so what would you expect, of course they're going to tip the scales.
Please don't post ranting accusations like this. We're accountable to this community every single day, as this case demonstrates. Any time we do anything that seems even a little bit suspect, we hear about it very quickly.
> a mod log will allow some sort of bad actors to do something vague and threatening
I don't know of any time we've said anything like that. Dang has explained plenty of times why we don't publish a moderation log [1]. Mostly it's because we don't want to promote meta-discussion, because the thing we want most here is for discussions to stay on-topic. There are plenty of ways for people to see what we're doing and hold us to account if we get things wrong.
> we are on a site run by a VC so what would you expect, of course they're going to tip the scales
HN is only any use to our bosses if we continue to be the place where the best (i.e., "smartest") hackers come to have the highest-quality discussions about the most important topics, and the best/smartest hackers have the best bullshit detectors, almost by definition. But even if we thought we should deprioritize that consideration and instead "tip the scales" in aid of the narrow commercial interests of our parent organization (leaving aside the flawed presumption that it would work), YC has zero interest in protecting the reputation or commercial interests of the megacorps, which it demonstrates through its actions continually [2,3].
Make a mod log then if you don’t want complaints about opaque moderation. I’m not ranting you literally edit user parts without notice. That’s not acceptable where I come from. I’ve seen it personally happening here way too much and your claims that we’d notice it are logical fallacies or something. You make sure any discussion like this is down modded into oblivion.
You came here doing exactly what I said you’d do, too. I’m done complaining for now but your comment isn’t convincing anyone who complains about your moderation.
Avoiding these meta discussions is what makes me wary of you mods. You guys basically shut down any discussion of moderation here like an iron fist.
We happily explain all our actions all the time, here in the comments and via email. There’s no great mystery to what we do and why. We explain things more openly and thoroughly than the moderators of sites with public modlogs do, from what I’ve observed. We’re also completely open to the public and highly forgiving of people who break the rules but earnestly seek to contribute positively. Unfortunately not everyone is here to contribute positively, but it’s not hard to do so for people who want to.
The underlying accusation of bias/manipulation is self-evidently false because it assumes our employer’s selfish agenda – even if you believe that’s what we most care about – is the opposite to what it actually is.
I tend to see mass surveillance as a good and bad thing, obviously. If you could control the access to it properly and verify to the public that the tools were not being misused somehow, then that would be nice to have. If you can't do that, then it's kinda sitting there waiting for misuse from someone someday so then you have to weigh the risks vs rewards and such.
It really isn't black or white, unless you have a closed mind to the opposing ideas.
reply