upvote
Just use the number 4
reply
No, I took that one already. Go with 5
reply
Nope. Jayden Daniels has dibs on 5.
reply
That's the problem with randomness: you never can tell.
reply
I love Dilbert's cartoon on this, but cannot find a direct link to it

https://www.reddit.com/r/ProgrammerHumor/comments/5yhl93/ran...

reply
I love it as well, but eMudhra seemed to be more like XKCD fans: https://xkcd.com/221
reply
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."
reply
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.

25519 alone is probably not a good idea anymore.

reply
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.

reply
mlkem1024nistp384-sha384? sntrup761x25519-sha512? These cryptographers aren't great at branding are they
reply
ssh-mldsa44-ed25519
reply
Why did someone else say mlkem1024nistp384-sha384?

Actually, how can ML-DSA and ML-KEM both be answers to the same question? One is a signature algorithm, one is a key exchange algorithm!

reply
See my other comment above.

They are not answers to the same question.

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.

reply
Well that's a bit concerning. There's a lot of guidance going out there telling people to change one option to select one algorithm.
reply