r/programming • • 19h ago

Post-quantum cryptography is breaking government censors

https://xetera.dev/article/post-quantum-crypto-is-breaking-gov-censors
316 Upvotes

29 comments sorted by

116

u/jpgoldberg 17h ago

So there is plus side to the enormous key sizes post-quantum key exchange.

20

u/Zomunieo 12h ago

How big is enormous?

52

u/bluegardener 12h ago

1216 bytes vs the more traditional 32 bytes.

This isn't a big win as it's really more of a temporary bug that I'm sure the censors will eventually fix.

11

u/mccoyn 12h ago

Bigger than 1500 bytes, because some network equipment begins splitting TCP packets at that size.

22

u/SpudsRacer 11h ago

The 1,500 byte MTU will never die. 😎

14

u/sylvester_0 8h ago

Neither will IPv4.

3

u/SpudsRacer 6h ago

Truer words have never been spoken. Everything supports IPv6 but doesn't use it. 😎

7

u/sylvester_0 6h ago

My ISP doesn't support it. When I asked them about it they said "Oh, do you mean a WiFi 6 router?" Then when I clarified they went on to say that IPv6 is only used for internal corporate networks and isn't something they support. I gave up trying after that point.

2

u/josefx 5h ago

Funny, the corporate networks I have seen tended to still run IPv4, in some cases IT even went out of its way to disable IPv6 entirely.

1

u/sylvester_0 4h ago

Yeah, this person obviously didn't know what they were talking about.

1

u/unicodemonkey 4h ago

Our network is using ipv6 quite extensively. But we might be outliers since the amount of ipv6-related bugs in "corporate" equipment is still impressive.

1

u/SpudsRacer 4h ago

I was referring to switches, software livraries, etc. The support is there but ISPs in particular are very spotty in allowing IPv6 traffic.

1

u/stoops 3h ago

UDP packets will get fragmented and possibly dropped for those sizes.

32

u/aes110 5h ago

Great article, although depressing on the censorship aspect

But ignoring all that, your reddit username is "self"? thats crazy

56

u/IncomeOk7237 13h ago

The funny part is it's basically the old "split the ClientHello across packets" evasion trick, just happening by default now. The ML-KEM key share adds over a kilobyte, so the hello doesn't fit in one segment anymore, and a lot of DPI only parses the first packet looking for SNI. I don't think it lasts though. Reassembling a couple of segments isn't hard, it just costs the censor more state per flow. ECH is what actually hides the name.

32

u/SirClueless 12h ago

Well, from the article, they are already assembling and waiting for packets, they just have bugs doing so if it happens in the type or length of a TLS extension. So I don't think there's any new costs here, just fixing buggy code.

3

u/IncomeOk7237 12h ago

Fair, if they already reassemble then it's just bug fixing on their side, not a new cost. Kind of my point though, it's a parser bug that'll get patched, not something to count on. ECH hides the SNI no matter how the hello gets split.

2

u/bwainfweeze 5h ago

So we will soon be back to cloudflare being an ersatz protection racket because can China or Turkey afford to block all of their customers to block a handful of them?

0

u/IncomeOk7237 4h ago

Probably not for the big CDNs, the collateral damage is the whole point of why they've held off. Smaller hosts without that leverage are the ones I'd worry about, and ECH only helps if enough sites actually turn it on.

9

u/mcpower_ 5h ago

Did you seriously use Claude (if my reading is correct) to write this comment? https://www.pangram.com/history/14731cf9-1309-45f8-ba2d-c26229998f2c

2

u/Haplo12345 5h ago

Yes they did

1

u/IncomeOk7237 4h ago

Since my English isn't very good, I'm having him correct it.

1

u/stoops 3h ago

That's funny timing, I just published a quick blog post on implementing ML-KEM-1024 in C with OpenSSL and yeah the key sizes are pretty big! It would be a problem for UDP packets but TCP streams should be able to handle an arbitrary data size.

https://fossjon.com/2026/11/30/post-quantum-key-exchange-cryptography-with-the-help-of-openssl-in-c/

2

u/IncomeOk7237 2h ago

nice, bookmarked. yeah TCP itself is fine with it, it's the boxes that only look at the first packet that break

0

u/[deleted] 15h ago

[deleted] — view deleted comment

69

u/tsimionescu 15h ago

Post-quantum cryptography is real and used on quite a bit of the major sites already, today. It refers to cryptographic algorithms that would be hard even for a theoretical quantum computer to break. They are not using a QC which doesn't exist, they are using mathematical problems for which no known quantum algorithm is efficient (unlike RSA's use of factorization and ECC's reliance on discrete logarithms, both of which are known to be efficiently computable using Shor's algorithm if anyone ever builds a QC).

26

u/bluegardener 15h ago

No one here or in the article said anything about having quantum computers. Algorithms called post quantum computing algorithm are breaking turkish censorship incidentally because of large key sizes.

You seem to have a bee in your butthole and you want to bait people into arguing with you about other topics.

3

u/Coffee_Ops 10h ago

are breaking turkish censorship incidentally because of large key sizes HTTPS decryption is a fundamentally stupid idea

FTFY, this happens every few years when [literally anything related to TLS] changes.