r/rust • • 14h ago

🗞️ news Official Announcement: Rust, Post-Quantum Cryptography, and You

https://rustfoundation.org/media/rust-post-quantum-cryptography-and-you/
392 Upvotes

66 comments sorted by

69

u/insanitybit2 13h ago

I'm very pleased with the aws-lc-rs and rustls libraries. We've been post-quantum for a while at work, and with aws-lc-rs getting FIPS certified for PQ algorithms it's easy breezy over here. I'm migrating the single internal component that's still on P-256 next week.

I did have to fork jsonwebtoken to add ml-dsa support though, which is unfortunate and why we still had P-256. Not sure if that's upstreamed yet.

22

u/DuskLab 10h ago

My only gripe about aws-lc-rs is that it still requires a C import. If it was fully Rust I could drop a few build workarounds.

7

u/dochtman rustls ¡ Hickory DNS ¡ Quinn ¡ chrono ¡ indicatif ¡ instant-acme 5h ago

Have a look at graviola.

0

u/[deleted] 9h ago

[deleted] — view deleted comment

5

u/matthieum [he/him] 4h ago

Technically correct, and completely useless.

You can't do cryptographic primitives in pure C either, ergo the fact that aws-lc-rs is implemented in C is still a liability, build-wise.

7

u/DuskLab 9h ago

Isn't that what ctutils and subtle is for?

5

u/dochtman rustls ¡ Hickory DNS ¡ Quinn ¡ chrono ¡ indicatif ¡ instant-acme 5h ago

jsonwebtoken issue about ML-DSA support:

https://github.com/Keats/jsonwebtoken/pull/535

156

u/indearthorinexcess 13h ago

Are we ever going to get details on this "urgent, but no immediate threat" issue? All we've gotten to this point is a sales pitch from cloudflare

59

u/peter9477 12h ago

Assume it's concern over encrypted sessions being recorded now, and decrypted a year or three down the road.

It's urgent to get off the existing key exchange algorithms if they're anticipating cracks a few years down the road, unless you're 100% certain nobody is recording your data exchanges.

Thus "urgent but no immediate threat".

23

u/keisisqrl 11h ago

Schneier says he has a reliable source who says P256 and only P256 is in some fashion broken (read: weakened). That’s good enough for me.

But it’s been widely believed (albeit not consensus) that non-public (read: NSA) attacks on P256 have been known for a while, and it hasn’t been recommended for more than a decade.

62

u/insanitybit2 13h ago

> All we've gotten to this point is a sales pitch from cloudflare

Uh, no. We've gotten much more than that. We've had many cryptographers come out and confirm that there's a legitimate issue. We've had the NSA release guidance on how to begin an immediate migration.

Is someone going to drop a paper explaining how to solve dlog? No, not today. Do you want someone to do that?

146

u/WhipsAndMarkovChains 12h ago

Maybe if Anthropic wasn't calling in a bomb threat every 2 weeks we could actually believe them when they claim to have something legitimate worth worrying about.

42

u/my_name_isnt_clever 11h ago

One of the highest stakes "boy who cried wolf" situations, all because they want to regulatory capture themselves into being the PG&E of AI.

7

u/insanitybit2 11h ago

It's the NSA and numerous cryptographers but ok

26

u/JoeHillsBones 11h ago

Famously trustworthy NSA

3

u/simonask_ 4h ago

You're missing the point of this announcement. PQC has been the right choice for over a decade now. This announcement has exactly one purpose: So engineers can tell their managers "we need to actually address this, the grownups say so".

The primary impediment to software security is middle managers who deprioritize security work.

2

u/insanitybit2 10h ago

It's not just the NSA making these recommendations. But okay. Don't use approved cryptography if you don't want to. They also recommend using memory safe programming languages and to ditch C++ so I can expect to see you on r/cpp, right?

13

u/JoeHillsBones 10h ago

I don't think it's smart to default to being against whatever the government recommends, that's how you get morons against vaccines. But I don't anticipate known liars to tell me the truth just cause they say actually it's SUPER important this time. Give me enough information to make a judgment call and not operate on trust that they have actively worked on degrading since I've been born.

18

u/insanitybit2 10h ago

I'm not interested in defending the NSA. You can completely distrust them, I really don't care. The NSA are not the only ones who are recommending moving to post quantum cryptography and to follow the advice given by the NSA.

3

u/femtocell 8h ago

You need to understand that things aren’t just “approved” in some binary way. NSA literally says “NSA advises National Security Systems (NSS) owners, operators, and vendors”.

So much nuance getting lost in this story.

1

u/insanitybit2 3h ago

I don't know what you mean. I'm pretty familiar with how this works.

33

u/gmorenz 11h ago

I'd really like the group who has the algorithm to clearly announce something like "We have found an algorithm to break P-256 in roughly 225 FLOPs worth of compute" so that people can judge how bad it is. (Or announce how many bits of encryption you think you've reduced it to. Or really anything concrete).

You shouldn't announce the method, but you should announce the consequences instead of letting the rumor mill make up possible consequences.

22

u/JoshTriplett rust ¡ lang ¡ libs ¡ cargo 11h ago

I'd really like the group who has the algorithm to clearly announce something like "We have found an algorithm to break P-256 in roughly 225 FLOPs worth of compute" so that people can judge how bad it is. (Or announce how many bits of encryption you think you've reduced it to. Or really anything concrete).

One of the problems with today's LLM-fueled discoveries is that if you announce that, you tell everyone what to focus on, and then everyone can point their own abliterated models at that and say 'tell me exactly what they found'".

Likewise, if you announce "we found a security hole in X software", people will quickly point their AIs at that software, and if you say "it involves Y action", their AIs will find it even more quickly.

15

u/gmorenz 11h ago

I think we've already got that happening via the rumor mill, unless the rumor mill is wildly inaccurate in which case the cost of not releasing more information is also quite high because people are doing the wrong things.

5

u/mort96 6h ago

There has been so much noise around 256-bit ECC. All bad actors are already focusing on it. They've really given bad actors all the info they need in the form of vague hints.

10

u/yonasismad 9h ago edited 9h ago

What is the exact difference between "<FUD> also, btw, please move off P-256 ASAP" and "We can break P-256; move off it ASAP"? Why is the former apparently fine and not telling anyone what the focus is, but the latter is not?

6

u/JoshTriplett rust ¡ lang ¡ libs ¡ cargo 7h ago

They didn't announce "move off P-256 ASAP". That's the result of leaks. The actual announcement was "move away from conventional cryptography to post-quantum cryptography".

4

u/tux-lpi 4h ago

Chrome announced exactly that, Google dropping CAs that are still using P-256 on the floor in 3 months is an insane, unprecedented pace. Before this the rumors were a lot less credible.

4

u/yonasismad 7h ago

Okay, so the same advice they already gave in 2015? Okay 👍

Also it is not leaks. Google & Mozilla said they will stop trusting certs with chains that contain a P-256 keys. Even the NSA advisory says to flag every curve except P-384/P-521. So what exactly is still being hidden from attackers?

1

u/Ansible32 7h ago

Maybe they deliberately leaked that there was a problem with P-256 when the problem is with something else.

Until they open up speculation is kind of pointless. But also it's very possible their message is wholly deliberate because they know certain open weight models can find the vuln in X amount of time wiht a vague prompt and a description of what is vulnerable, so they're deliberately lying and obfuscating.

-3

u/JoeHillsBones 11h ago

I'm no security expert but like I don't think that justifies a blanket warning without details. We aren't babies who can't handle information about the world

4

u/AgentME 10h ago

The world is literally full of computer systems right now that would not be able the information of an exploit getting out.

4

u/insanitybit2 10h ago

lol the "information" here is how to decrypt the connections between massive numbers of computers. This isn't about protecting your feelings or something.

7

u/insanitybit2 11h ago

I'm curious. Why is it that you want that? The advice is to move to post quantum cryptography.

Unsurprisingly, details of a weakness in a *globally deployed critical algorithm* are being very carefully guarded. Even saying those numbers would make certain details really obvious, by the way.

11

u/gmorenz 11h ago

Because no advice will ever be specific enough. Individuals (and individual organizations) should be empowered to do their own threat modelling.

For example: It's not going to be possible to move many existing IoT devices to post quantum crypto. In what time frame do they need to be replaced with something new (or otherwise disposed of)? That's going to depend on who will be able to break what on what time schedule, how secure the owner needs the devices to be, how exposed the devices are to the attackers who have sufficient resources to run the algorithms, etc.

6

u/skatastic57 11h ago

It's not going to be possible to move many existing IoT devices to post quantum crypto.

Imagine if a bunch of refrigerators get hacked to heat food instead of cool it.... Oh wait.

-4

u/insanitybit2 11h ago

> Because no advice will ever be specific enough. Individuals (and individual organizations) should be empowered to do their own threat modelling.

I don't get it. No advice will ever be specific enough... so what do you want?

> For example: It's not going to be possible to move many existing IoT devices to post quantum crypto. In what time frame do they need to be replaced with something new (or otherwise disposed of)? 

The deadline for moving to PQ is 2031, as it has always been.

> That's going to depend on who will be able to break what on what time schedule, how secure the owner needs the devices to be, how exposed the devices are to the attackers who have sufficient resources to run the algorithms, etc.

The deadline for moving to PQ is 2031, as it has always been.

11

u/gmorenz 10h ago

I don't get it. No advice will ever be specific enough... so what do you want?

I want information that I can make decisions off of instead of advice that I have to follow blindly.

The deadline for moving to PQ is 2031,

The deadline assuming what threat model?

-4

u/insanitybit2 10h ago

> I want information that I can make decisions off of instead of advice that I have to follow blindly.

What information?

> The deadline assuming what threat model?

The one defined by NIST, you can go read all about it, it's documented and pretty readable. You can see how they explain their standards for things like Level 1 vs Level 5 security, for example, and they even define theoretical attack scenarios under which various cryptographic protocols would break.

5

u/gmorenz 10h ago

What information?

... Please see the first post of mine in this thread. I gave pretty concrete examples.

-4

u/insanitybit2 10h ago

I've already responded to that.

→ More replies

3

u/knac8 7h ago

Do you truly understand the consequences and 2nd order effects that could have that would affect real people right now in the real world?

Setting the expectations would have massive consequences.

9

u/indearthorinexcess 11h ago

If it was something so dangerous that explaining it would cause chaos, that would mean "no immediate threat" is a lie? But everyone - including cloudflare in their sales pitch - has stuck to "no immediate threat"

6

u/insanitybit2 11h ago

Let's say that an algorithm provides 128 bits of security. I reduce that to, say, 96 bits. 96 bits is still very safe, that is *not* an immediate threat. But holy fuck is that a massive reduction, and if someone can reduce 128 to 96, there's a chance that at some point 96 is going to drop lower. And *that* will be an immediate threat.

Get it?

5

u/Dheatly23 12h ago

But still close to zero details beyond "upgrade please i beg you". Trust me, if they found the solution, NSA wouldn't even be so shouty about it. Better keep the key of the world in your pockets, just in case (like with EternalBlue).

5

u/jess-sch 7h ago

I'm sure there's a risk assessment somewhere in the pipeline.

Do I believe the NSA's datacenters are running hot right this second and they'll be having fun with their stored data for the next few months? Absolutely.

Do I also believe that they did a risk assessment and came to the conclusion that the economic threat of this getting leaked before the world moves to PQC is so big that it outweighs their own interest in hacking the world? Also yes.

Secrets don't stay secrets forever. The NSA knows that. And it can't just ignore this fact when this particular secret coming out before big companies and esp banks are prepared would grind the global economy to a complete halt for while, including the obligatory mass rioting because people can't pay for their groceries until the banks recovered from their emergency internet cut-off.

1

u/Dheatly23 6h ago

Are we talking about a different NSA that isn't deliberately put DUAL_EC_DRBG? C'mon, don't silly me.

IF, and a huge IF, NSA found out one of the curve or whatever is broken, they would:

  • Classify the info immediately.
  • Start building the codebreaker immediately.
  • Quitely push NIST to drop the curve, or replace it. Maybe add some distraction along the way to delay them from figuring out.

They have zero care about civilian use of cryptography. That's up to NIST and possibly CISA. As a matter of fact, they hate strong ciphers for civilians, as proven by export restriction on strong ciphers (until supreme court ruled that code is speech, thus ciphers are protected by first amendment).

-1

u/insanitybit2 12h ago

What details would you like? Why would I trust you?

1

u/Dheatly23 12h ago

How about the supposed break? Like seriously, if NSA has read it and it's doable, they would be radio silent and start building one before China did.

6

u/insanitybit2 11h ago

You want them to publish a break for widely deployed cryptography?

Why would the NSA be radio silent on this? They're just evil? The NSA has a vested interest in ensuring that the US and its allies use strong cryptography.

2

u/Dheatly23 11h ago

Why would the NSA be radio silent on this? They're just evil?

Uhhh yes? Is your short term memory is dead or are you seriously can't google what EternalBlue is? NSA has a huge track record of classifying zero days for their own purposes.

The NSA has a vested interest in ensuring that the US and its allies use strong cryptography.

Sorry, that would be CISA, thank you.

5

u/insanitybit2 10h ago

If you believe that then there's obviously nothing to discuss. This isn't a technical discussion anymore.

-4

u/olegispe 9h ago edited 8h ago

https://www.bbc.com/news/articles/c6y80vl349zko

Anthropic says it used an algorithm that "in theory" solves some of the maths problems behind ML-KEM and ML-DSA, but it did so at a rate that, when used in real-world applications, would still be "dramatically slower than the methods that already exist."

It’s a sales pitch

Edit: I stand corrected. Can’t blame me considering Anthropic’s track record though

3

u/Trader-One 8h ago

thats different topic,

what they found is modern way to solve ECC faster which makes breaking 256 curves realistic.

0

u/olegispe 8h ago

My bad. Seems to be multiple similar topics coming out at once

4

u/markvii_dev 5h ago

no because its larp

9

u/JoshTriplett rust ¡ lang ¡ libs ¡ cargo 11h ago

Are we ever going to get details on this "urgent, but no immediate threat" issue?

I'm sure we will, when enough migration has happened that it's safe to lift the embargoes. Or, frankly more likely, much sooner than we'd like when a combination of leaks and independent LLM-powered rediscovery make the details effectively public.

7

u/epic_pork 12h ago

Is graviola PQ ready? I'd rather use it on some projects that don't need fips compliance.. easier to build and smaller!

12

u/ctz99 rustls 7h ago

Yes it has the most pressing issue (post-quantum key exchange) addressed. And I did quite a bit of work on making it very fast too -- https://jbp.io/2026/11/06/my-mlkem-shake-brings-all-the-boys-to-the-yard/

ML-DSA is not there yet, but also is not yet widely deployed and I'll be working on it soon.

2

u/journalctl 3h ago

I hope the ecosystem moves towards Graviola which removes the need for a C compiler.