In short
Quantum computing threatens today’s public-key cryptography (RSA and elliptic curves), creating “harvest now, decrypt later” risk and eventually breaking TLS authentication via certificate authorities. The episode explains post-quantum cryptography (especially lattice-based schemes), Cloudflare’s migration work, and practical engineering steps toward full post-quantum security by 2029 (“Q-Day”).
Guests
Boss Vesterbon, cryptography engineer at Cloudflare (leads post-quantum migration efforts). Background: math/physics study, PhD in mathematical foundations of quantum computing, postdoc/internship leading to Cloudflare; years focused on post-quantum cryptography. Kevin Ball (K-Ball), VP Engineering at Mento; independent engineering coach; co-founded companies, former CTO; organizes engineering groups.
Key claims
Symmetric crypto (AES/SHA) is largely unaffected. Post-quantum key agreement is already deployed in browsers for “harvest now, decrypt later,” but authentication/certificates need post-quantum too. Google targets accepting post-quantum certificate authorities in Q1 2027; Cloudflare aims full PQ security by 2029.
Notable examples
TLS handshakes; man-in-the-middle and CA-compromise scenarios; large post-quantum signatures (e.g., MLDSA44 ~2.5KB, multiple per handshake); protocol ossification issues (1% of cases failing due to extra TLS packets); performance/memory tradeoffs on embedded devices (RAM ~5KB vs ~200 bytes for ECC).
Written by AI. May contain mistakes. Listen to the episode to check what was said.
Chapters
Tap a time to open that second in VOBoss Vesterbon's Background
1:30 to 3:06
Boss shares his journey from physics to cryptography engineering.
“This is one that has been suddenly raising my awareness, but I don't know enough about it.”
Understanding Quantum Threats to Cryptography
3:06 to 7:49
Discussion on how quantum computers threaten public-key cryptography and its implications.
“I studied physics as an undergraduate and got away from it and then like in recent years there's all these things that feel like oh that's suddenly relevant again.”
Post-Quantum Cryptography Explained
7:49 to 9:01
Explaining what post-quantum cryptography is and its significance.
“Well, luckily, we have made some good...”
Lattice-Based Cryptography Overview
9:01 to 14:00
A deep dive into the mechanics of lattice-based cryptography and its applications.
“against the attack of quantum computers.”
Understanding Q-Day and Its Implications
14:00 to 18:00
Learn about Q-Day and the significance of post-quantum cryptography.
“I really don't do it justice in five minutes, but we can add a link to it.”
Current State of Post-Quantum Certificates
18:00 to 22:38
Explore the challenges and current developments in post-quantum certificates.
“Every software update mechanism becomes a remote code execution for quantum attackers.”
Challenges in Upgrading to Post-Quantum Authentication
22:44 to 28:01
Discuss the complexities involved in adopting post-quantum authentication.
“So let's start with the straightforward ones, and then we can dig our way down into the deeper ones.”
Performance and Protocol Challenges
28:01 to 30:05
Exploration of performance issues and protocol ossification in TLS.
“If you look at all the connections that are made with Cloudflare over Quick, so that's mostly browsers, about half of them transfer less than eight kilobytes.”
Real-World Impact of Protocol Changes
30:06 to 31:16
Discussion on how protocol changes affected real-world applications.
“So that's another problem, protocol authentication.”
Key Size and Computational Requirements
31:17 to 32:36
Understanding the implications of key size and computational overhead for embedded devices.
“So we talked about the increased size of the keys.”
Show all 16 chapters
Q-Day Timelines and Quantum Computing Advances
32:37 to 37:04
Analyzing the evolving timelines and advancements in quantum computing toward Q-Day.
“Because we've seen it was Google was the big one that caught my eye.”
Quantum Computing's Algorithmic Development
37:05 to 39:28
Insights into how algorithmic advancements affect the quantum computing landscape.
“So with silicon, they're basically locked in place.”
Preparing for Post-Quantum Security
39:29 to 42:03
Steps and considerations for achieving post-quantum security by 2029.
“Yeah, because it's starting to get incredibly uncomfortable.”
Understanding Quantum Risks and Business Impact
42:03 to 43:19
Learn about the consequences of unpreparedness for quantum computing and its impact on business continuity.
Top-Down vs Bottom-Up Risk Assessment
43:20 to 44:36
Discover the importance of a top-down approach in understanding risks associated with cryptography and technology.
“But it's really important to understand this top-down, right?”
The Impending Quantum Threat and Preparation
44:37 to 45:48
Explore the unique challenges posed by quantum computing and how to prepare systems against potential threats.
“is that the difference is with quantum, it will come all at once, right?”
Transcript
Automatic transcript. May contain errors.0:00Most of the cryptography securing the internet today rests on mathematical problems that classical computers cannot solve in any reasonable time frame. That assumption is now being tested. Recent advances in quantum computing have dramatically compressed timelines, and many in the industry have set a target of full post-quantum security by 2029, meaning a complete migration to algorithms designed to remain secure against quantum attacks. Boss Vesterbon is a cryptography engineer at Cloudflare, where he leads the company's efforts to migrate to post-quantum cryptography. In this episode, Boss joins Kevin Ball to discuss how quantum computers threaten public-key cryptography, what post-quantum algorithms actually are and how they work, the timeline shifts that have made quantum readiness feel so urgent, and what software engineers need to do now to prepare their systems.
0:55Kevin Ball, or K-Ball, is the Vice President of Engineering at Mento and an independent coach for engineers and engineering leaders. He co-founded and served as CTO for two companies, founded the San Diego JavaScript Meetup, and organizes the AI in Action discussion group through Latent Space. Check out the show notes to follow KBall on Twitter or LinkedIn, or visit his website, kball.llc.
1:30Boss, welcome to the show. Hey, Kevin. Nice to be here. Yeah, I'm excited for this topic. This is one that has been suddenly raising my awareness, but I don't know enough about it. So I'm really eager to pick your brain. But let's start with a little bit about you. Can you kind of give us a little bit of your background and how you got to where you are today? It's quite a windy road. I always liked security and cryptography at high school. Decided to go study physics and mathematics because I thought that would be more challenging. Didn't end up being very good at the physics. so I stuck with the mathematics at least I mean the physicists they know how to bend the rules right and I don't know how to do that did mathematics then I did a PhD going back to physics a little bit in the mathematical foundations of quantum computing and the physics kept pulling me but actually I did that at the security group of my university so when I would be avoiding working on my actual thesis I would be spending time with the cryptographers around there so there's the there's people doing post-quantum cryptography there and designs of symmetric cryptography so i kind of learned by osmosis just during the coffee breaks and stuff after that when i did went for postdoc to london london is expensive so i thought maybe i can find an internship or something already some crypto engineering so i via via i ended up with an internship at cloudflare i enjoyed that so much doing crypto engineering there that after covid I got invited to join full-time in the Netherlands back and I've been there ever since.
3:05Leading for the last few years our efforts in migrating to post-quantum cryptography. That's awesome. I actually also started in physics. I studied physics as an undergraduate and got away from it and then like in recent years there's all these things that feel like oh that's suddenly relevant again. There's so much that is becoming interesting. Let's talk a little bit about quantum security, quantum cryptography, and all of this? Because I feel like this is something that most of us as software engineers weren't worried about, hasn't been that big on the radar, maybe if you were in kind of a niche area, and then suddenly it's a big concern.
3:42So maybe start back with like, what are the problems that quantum computers create for cryptography? Yeah, so quantum computers, it's quite an old concept. I think even earlier in the 90s, Richard Feynman, the famous physicist and some other folks proposed that you can use quantum computers to more efficiently simulate nature. So the whole thing about quantum computers is that things are in superposition. So if you want to compute things about them, you have to carry around actually an exponential number of probabilities, which they call amplitudes, which is inefficient. But then they realized if you use quantum mechanics itself, the full power of it to actually do computations instead of just using zeros and ones you can actually compute it more efficiently so that's all well and good the physicist's toy with hopefully amazing applications in material science and stuff but so it was all positive until in 94 peter shore mathematician he figured out that if you have a cognitive computer then you can also efficiently solve factoring and discrete logarithms.
4:46And that's a little bit inconvenient because basically all of our public key cryptography, not all cryptography, but basically all cryptography that's important relies on that today. So if a quantum computer is actually built, doesn't exist yet, but if it's actually built that's big and powerful enough, then most of the cryptography falls away. Yeah, that's really interesting. So I think some of our listeners will be crypto experts, but let's maybe really quickly talk about asymmetric cryptography and how this works and why this ability to factor large numbers suddenly makes this fall away. So you have these two big groups of cryptography, symmetric cryptography, which is AES, Shatou.
5:28That's mostly about jumbling bits, right? Mix things up a bit so that they become unpredictable. That's, in a way, it's a bit of a messy thing, but it's well understood that quantum computers don't touch that. That's still completely fine. Now, the public key cryptography, that's the cryptography where you have a public and a private key. And that requires something mathematical, something magical to make it work. And in the case of elliptic curves, that's discrete logarithms. And in case of RSA, it's using the fact that multiplying numbers is easy, but factoring them is hard. Well, we think it's hard.
6:03It is hard, we think, for normal computers, but for quantum computers, it's pretty easy. And the problem is, if you can solve that problem, if you can do a factor or a number easily, then you can also break the public key and from the public key, the private property. And maybe we should go, what does this actually mean? What's the actual impact, right? Instead of the mathematical bits. And the thing is, so we use cryptography for basically two things, mostly. I mean, for a lot of things, but the two big things are protecting data and protecting access and authenticity. So if you make a connection, you do a TLS handshake, there's what is called a key agreement first.
6:42And after the key agreement, both sides have a shared key, which they then use for bulk encryption using typically AES. So this key agreement today also relies on either elliptic curves of RSA. And if that's broken, then people who recorded the encrypted conversation can retroactively decrypt it and see the data. So that's the famous harvest now, decrypt later. People can record encrypted sessions today. And if they are not protecting using post-quantum cryptography, cryptography designed to be secure against the attack of quantum computers, then they can be decrypted in the future. So that's one.
7:19Yeah. And just to like even put it in broad terms, like that's every connection we have today, especially now everything's using HTTPS. If you're on the web, you're going and logging in to Google, to your bank, to what have you. All of those at the root are doing a TLS handshake, shared key, and encrypting it using AES, which if it's being recorded, which I mean, I live in the United States. I kind of unfortunately assume everything is being recorded at this point. All of that could be replayed and cracked with a quantum computer. Well, luckily, we have made some good... I mean, we've known about this problem for quite a long time, and we've made some good progress.
7:56By default, if you use a modern browser, Chrome or Safari or Firefox, then that already tries to make a connection using post-quantum cryptography that secures it against harvest now decrypt later. So that is good to dig into. So actually, first, what does it mean to be post-quantum cryptography? What is that? Yeah. So post-quantum cryptography is cryptography that is designed or we believe is secure against the attack of quantum computers. So the funny thing is, is this cryptography is typically already quite old. So lattices, which is the front runner. I mean, there are many different types of post-quantum cryptography.
8:29You have hash-based cryptography, lattice-based cryptography, sojourney-based cryptography, multivariate-based cryptography. The one that are really taking, are on the frontier that are being deployed now, is lattice-based cryptography. and we believe that they are secure against the attack of quantum computers. I believe that sounds weird, but I mean, also with classical cryptography tomorrow, we can wake up and someone discovered a classical algorithm to factor numbers quickly. That is possible. Luckily, it hasn't happened, but for the best of our knowledge, we have quite a good confidence in it that lattice-based cryptography is secure against the attack of quantum computers.
9:02And if you use that lattice-based cryptography, then you're secure against this threat. So let's maybe really quickly talk about what that actually is, because I enjoy geeking out on this. So we've talked about the two examples where you've got elliptic curves and computing things there. We're using logarithms. We talked about large number multiplication being easy, but factoring being hard. And those are kind of the two quantum crackable approaches that we have. So what does it mean, lattice-based cryptography? What's the underlying math happening there? Yeah, so what is a lattice? So a simple example of a lattice, a simplified example of it, a toy example of it, is think of a plane.
9:39So a plane with an X, Y grid, and you have two points on the plane. So we start with just two points. And then what we do is we create a grid from those points where each of those points, they think about a parallelogram, and then it just repeats. So if you have such a grid at this point, it's very easy to say what is the smallest point in the grid. that's closest to the origin. That's pretty easy if you give the grid as two points that are neatly orthogonal. So that's what they call a good basis. But you can also give the same grid by giving a point that's very far away, two points that are very far away and close together.
10:18Those two points can also generate the same grid. But that's what's called a bad basis. It's a basis where it's not that clear to see where the actual smallest point in the grid is. a picture is worth here more than a thousand words, but maybe you can add a link to a picture about this. Yeah. I mean, I think conceptually it makes a lot of sense, right? Where if you're imagining this plane, if we're looking at a point that's very close to the origin, you can be very zoomed in. It's able to be very high level of fidelity, high detail. You have two points. Okay. But you're still looking in very good fidelity.
10:52Whereas if it's very far out, conceptually, you're having to zoom way out and it's hard to see any level of detail yes also when they're close together it's really hard to see how will things cancel out if you start adding and subtracting them but actually on the plane you can i mean it's a fun thing to run an algorithm for it if you're living in a spectrum it's actually pretty easy to figure this out in the plane right because that's just two dimensions but it turns out that if you do this in a space that has a thousand dimensions it's not just x and y but a thousand different directions then this becomes computationally very, very hard.
11:25And that's the basis of lattice-based cryptography. So I'm going to use the example of the multiplication and factoring, because that one I understand personally more than I understand the elliptic curve one. In that example, the way that the public and private works is you say, okay, if we know the private, we can do the multiplication route. We just show the end version. We both got to the same thing, but somebody just seeing that end version, they can't factor it. In the lattice, what is the equivalent here? Like, what am I sharing with my counterparty or how do I get to some sort of shared basis for encryption?
11:57So actually, do you know about Diffie-Hellman, the clock things? Only somewhat. Why don't you explain it and then we can go with it. Diffie-Hellman is a classical one. It's based on discrete log where each of us starts with a secret number, A and B. And we do this using modular arithmetic. So it's like time on the clock. I have a secret B, you have a secret K, right? For Cameron and boss. And we both agree on the basis number, let's say two. So I compute two to the B and modulo, I don't know, the big prime number we choose, and you compute two to the K. You send two to the K to me, and I send two to the B to you.
12:33Going from two to the B, figuring out, I mean, if it's normal numbers, it's easy to take a logarithm. If you see two to the B to then see what is B, but if you do this modulo or prime, this is actually hard. This is called the discrete logarithm problem. Well, hard for us now with our puny classical computers, but with a quantum computer, it's easy. Okay, so that's the public key, 2 to the B. My public key, 2 to the K is your public key. Now, you've got my public key, 2 to the B, and what you can do is you can exponentiate in your K. So you can do 2 to the B, 2 to the K, and I can do 2 to the K, and I can exponent in B.
13:14So 2 to the K, 2 to the B. And what we end up with is both of us end up with 2 to the B times K. So we both got the same shared number, which we can use as a secret to then do AES. So this is called Diffie-Hellman. And with lettuces, you kind of do the same, but then with adding a lot of noise. So it's like a noisy version of this. That makes a ton of sense, actually. That's really helpful. So you're each starting with essentially this like small, easy to understand piece. And then you layer it and you end up with this. Okay, this is way out in the world. This is hard to decrypt. My colleague, Chris Patton, he wrote together with Peter Schrauber, one of the designs for the scheme.
13:58He wrote a nice blog post with this analogy, explaining it some more. I really don't do it justice in five minutes, but we can add a link to it. Yeah, we can go and check that out. So if you're looking for it, Google will turn it up, I'm sure. Okay, cool. So that, I think, helps us understand a little bit more about an example of post-quantum cryptography. And so you're saying, essentially, if we're using modern browsers for web traffic, we're pretty much all protected from... That's bad news. Almost. Okay. We're protected against Harvest now decrypt later. That's where I was going to go. Yeah, we're protected against Harvest now decrypt later.
14:32But there was this recent announcement from Google that I think has shifted the threat model a little bit. Yeah, so Q-Day. Q-Day is the day that we expect there will be a cryptographically relevant quantum computer. One that's powerful enough to actually crack real keys used in production. And if you think that Q-Day is far away, then it's really about the harvest now, dig up later, right? It's about, I'm still using, if we're honest, I'm still using passwords I've been using 10 years ago. I don't want to change those passwords. I want them to be secure today. So if QDA is far away, it's the harvest now decrypt later.
15:06But we don't just need to fix the harvest now decrypt later, a bit of it. We also need to fix the authentication, the certificates bit of it. Because just as we explained, we had this shared secret, this 2 to the B to the K, which we can then use for AES. But we did this exchange. But how do I know that I'm actually talking to you, right? Yeah, yeah. How do you know that you're sending your secret to actual Kevin and not someone else? Yeah, it might be someone in the middle who does this dance with me and with you separately and then re-encrypts everything, right? The classical man in the middle attack.
15:37So the way that that is solved is that we use certificates to authenticate. So after we do this thing, you would send me a certificate signed by a certificate authority, which says, I'm Kevin. I have, I don't know, what's your personal website? In TLS, the CA says you can trust this public key for doing connections with this particular domain. So the key agreement ensures that you have a secure connection, but you don't know with whom. And the certificates make sure that you're talking to the right person. Now, there's no deployment of post-quantum certificates today. It's all classical certificates, which is fine.
16:16Until Q-Day. Yeah, until Q-Day, right? Because come Q-Day, it's not just about an active attack, right? because ComQ Day has these root certificates of big certificate authorities. A quantum computer just has to crack one of them. I mean, each browser trusts a whole bunch of them, not just Stance. It's hundreds of authorities that are trusted. A quantum computer just has to crack one of them and it then can create a certificate trusted by basically any browser or basically everyone uses the same kind of trust infrastructure as the browsers. That's a huge problem. And so when you have that in place now, suddenly the consequences of this is essentially whoever owns this quantum computer can set up a man in the middle to anywhere well not just man in the middle because that sure they can do a man in the middle but they don't need to be in the middle they can just if i crack a ca key i can create my own certificate i don't necessarily have to be in the middle it depends on what it is right i can if i'm on a on your network i don't even have to talk to the actual server i can just respond as if I were the real server, right?
17:19It's just not in the middle. It's just you talk to no one else but me. But it's even scarier with things like, for instance, if you have a phone, the way it trusts a software update is using a public tool. If you have a Tesla or some other car that does over the wire updates or other things. Yeah. So last year I bought a new secondhand car, which is new enough that it has a remote unlock and all this kind of jazz, but old enough that it probably won't get any post-quantum updates. I don't want to buy a new car. Let's hope at least we can turn off the remote control functionality. One of the best practices in software is to have auto-update mechanisms, right?
17:59That you can quickly push in a software update for zero day. Every software update mechanism becomes a remote code execution for quantum attackers. So what do we do? You mentioned for fighting against decryption for this harvest now decrypt later. We have alternate approaches that we know work that we've been deploying out through at least critical pieces of software like browsers and things like that. Do we know the answer? What does post-quantum authentication look like? Yeah, so maybe also in the previous one to say, actually, on our view, we can see how many of our clients already can do the post-quantum key agreement.
18:41And that's now more than 65 % already are protected. I mean, that's pretty good. Yeah, of course, we want higher. We want 95%. 100 % ideally, we never get to 100%. 95 % would be nice, but it's pretty good, yeah. But we turned that on in 2022, and it took until now to get to 65%. We know how to do post-content authentication. We have the algorithms. It's trickling down in software as we speak, and people are starting to move faster. Amazing what threats will do, right? Yeah, yeah, yeah, yeah. Things move fast. I mean, people start only working when the deadline is near anyway, right? If we're completely honest.
19:22So we have the algorithms. We're finishing up the final little standards, how to do it in the protocols, and it's just about deploying. And I think there's good news and bad news here. I think like a lot of software development, there's a 90-10 rule here, Where in the vast majority of cases, it will not be a very difficult upgrade. In a sense, it's just a different type of certificate. It's just you have to keep your software up to date. You just install a different kind of certificate and you're secure. But it's a 10 % of cases that are really difficult. It's the cases where you critically depend on cryptography baked into hardware, where you can't replace the hardware.
20:01It's when you depend on the box that someone bought before you joined the company. Does the vendor still exist? What does it actually do? It's these hard cases for several reasons that you need to service, which makes it hard and also by its urge to start looking to even know what the deal is. But luckily, probably if you just use modern stuff, TLS, it will probably be reasonably straightforward. Every AI team eventually hits the same wall. The models are solid, the infra is solid, but the data coming in is hours old because the pipeline is batch when it should be streaming and nobody's had time to fix it.
20:43That's not a modeling problem. That's a pipeline problem. Estuary gives you CDC, batch, and streaming in one platform. 200 plus connectors, live in hours, not weeks. Your AI is only as good as your pipeline. estuary.dev If you're running Postgres in production, you've probably felt the moment analytical queries start fighting your transactional workload. Most teams end up adding a second database and all the pipeline complexity that comes with it. Tiger Data, creators of TimescaleDB, takes a different approach. We extend Postgres with hybrid row and columnar storage so one table handles both writes and analytical scans.
21:20Native compression cuts storage costs up to 95%. Continuous aggregates keep dashboards live without bash jobs. and it scales to petabytes without you re-architecting. Companies like Cloudflare, Octave Energy, Schneider, Axpo, and Floco run production workloads on Tiger Data today. No stale data, no second system to operate, just Postgres. Managed for you, ready for the workload you're building toward. Try it free at tigerdata.com. You know Fidelity is a financial services leader, but did you know that inside Fidelity is a community of technologists working together to shape the future of finance and tech?
21:54Fidelity is always investing in tomorrow, from emerging tech to cutting-edge tools that will transform what comes next. Their technologists are encouraged to keep learning so they can expand their skill sets, explore new ground, and stay ahead of this rapidly evolving industry. And right now, Fidelity is hiring technologists to join their team. Fidelity technologists get the best of both worlds, startup energy that's grounded in the stability of a financial institution. That means support, resources, and amazing benefits. Bring your skills to a culture where you're empowered to dream big and build the tech that drives an organization and makes a real impact on people's lives.
22:33Find out more at tech.fidelitycareers.com. That's tech.fidelitycareers.com. Fidelity is an equal opportunity employer. So let's start with the straightforward ones, and then we can dig our way down into the deeper ones. So to deploy this out, it sounds like first you probably need the certificate authorities themselves to be updating, having another approach. And then it's for users. It's like a software upgrade. It's like, okay, next version of Chrome, next version of SSH and all these other different things. They're going to use post-quantum authentication. Yeah. So Chrome already announced their roadmap on when they will accept post-quantum certificate authorities and they will start accepting them in Q1 of 2027.
23:18So probably we will see the first ones then. So one thing that is new is that you will need two certificates. Because the thing is, not everyone can upgrade at once. Maybe if you have an internal network, you can just replace everyone, have a flag day, flip the switch. But if you have some kind of serious system or maybe even just a few different teams in a big organization, you can't get it done all at once. So you need to be able to deal with clients and servers that both are not upgraded yet. So on the server side, that means that a server needs to be able to install both a traditional RSA or an ECC certificate, but also a post-content certificate.
23:57Oh, that's right. So it's not just the root certificate over at the authority that needs, like this actually needs to get deployed out to anyone with a web server, essentially. Yeah, yeah, of course. It makes sense, but I hadn't made the connection somehow. So yeah, okay. So anyone running your own web server, you've got NGINX doing something or whatever, you're going to need to update. next time you do a certificate update you need to have two of them yeah so hopefully a lot of people do certificate automation right so you don't do this certificate installing yourself you get acme and some kind of acme client to do it for you so hopefully that's easy that's maybe the 90 case at this point i that feels generous actually i don't know if we're up to 90 of people hosting servers are already using like acme i don't know i mean it's something you can do today right so even though there are no post-quantum certificates today you get at least the certificate automation today.
24:44Another thing you can do is check whether your application server can actually install two certificates. A lot of pieces of software assume there's just the one certificate, right? Just one slot. Whereas you really need at least two slots here. Although if it turns out it's really hard to get application servers to move, we might need to define an ugly certificate format where we squeeze in two certificates into one. But let's hope we won't need that. How bad would that be? Because I, you know, once Once again, having been burned before, I suspect there will be a long tail of application servers that are not going to be updating.
25:19Oh, for sure. For sure. That's the reality, right? We can't have the slow movers hold back the fast movers, right? And also, one of the things is you need to, for instance, if you go to an office and you go to the parking lot and there's the turnstile, does that thing top BQ? If we want to upgrade that, do we need to replace the whole thing? I mean, is it worth it? Do we really care if someone with a quantum computer can have free parking? It's fascinating. It reminds me of the whole Y2K scare, except we have orders and orders and orders of magnitude, more deployed software and hardware at this point.
25:56And also the cryptography. We've had 50 years to put cryptography basically everywhere. And usually we hide it. And once cryptography is there, you don't want to touch it, right? Yeah, it's working. It's fine. unless it's really broken people don't really touch software right cryptography so yeah of course yeah so okay interesting so let's dive a little bit more so imagine you're in a world where you own some of this software right the 80 90 i'm just deploying new software i don't i'm not building the software it's somebody else's job to make this except two certificates whatever i just need to roll out updates but now let's step back and say okay we're a bunch of software developers Probably some of us have software where this is actually relevant.
26:37So what do we need to do then? Is this like just dropping in some new libraries or are there bigger changes? Are there performance considerations? Like what does this look like? So the big things are common best practices, right? So I already mentioned keep software libraries up to date, be able to install two certificates, do certificate automation if you can do it. So those are generally good advice that you can do today. On internal PKI, you can already use it. If your software library supports it, then you can already use and deploy post-quantum certificates. So you can already do that today for internal networks.
Read the full transcript
27:09For public CAs, you have to wait until 2027. Now, on the things that can go wrong, post-quantum signatures are larger. Elliptic curve signatures, they're only 64 bytes. And because they were so small and fast, we used them basically everywhere. If we had a problem, we solved it with an extra signature. So when you make a TLS connection, there's typically six signatures that the server sends to the client. So now they're not small anymore. An MLDSA 44, which seems to be the most commonly used post-quantum signature, if I'm reading the T-leaves correctly, that is two and a half kilobytes. Sending it six times per connection.
27:47Wow. Yeah. Okay. So we're looking at about 15 kilobytes from server to client on the handshake. If you go to YouTube, that doesn't really matter, right? if you go to YouTube. But it does matter in some other cases. So two reasons. Performance. If you look at all the connections that are made with Cloudflare over Quick, so that's mostly browsers, about half of them transfer less than eight kilobytes. So if you just do a drop-in there, then it means that we're adding like... We've tripled the payload, yeah. Yeah, it means that half of the connections transfer. Three quarters of that would just be certificates instead of data.
28:23The actual impact is also still... And use input is also a question, but it doesn't look good, right? Because we want to turn this stuff on by default. And if there's potential for performance degradation, we don't want to complain. So to be able to turn it on by default, we need to have that no one can complain about the performance. We do have tricks here. So what we're doing is we're redesigning the way certificates work. We're doing batch signing, which is called Merkle to certificates. But there's all kind of cool stuff we can dive into. But for the edge, it doesn't matter. it's still a kind of a certificate that you need to install and you'll already need to update but all in all that's what as a software developer you need to do doesn't really change there but then there's performance but then there's also the second thing which is protocol ossification which is that even though that tls has been designed to be flexible to allow multiple signatures to allow small keys large keys in practice when the flexibility in the protocol is not used, the joint also suffice.
29:21So we saw this actually with the migration to post-quantum key agreement, which is already running now. That's also larger. It's one kilobyte instead of 32 bytes. And so the first flight in the TLS connection, you always used to be just one packet, and now it's two packets. And 99 % of the cases, that is completely fine. But we found that in 1 % of the cases, it just wouldn't work. It would break. and the causes would vary. Some middle boxes, some firewalls, like firewalls, also some load balancers couldn't do it. So it's very bad. So the path here was just slowly roll it out until somebody complains.
30:03Yeah, yeah. Now it's me, Jen, hold it, wrap it up some more. And in the end, we got there. So that's another problem, protocol authentication. But the funny thing there is, is that I think it was a while back where Chrome was at 10%. So we, at Cloudflare, we enabled it for all our zones. And Chrome was at 10%. Everything was looking good. And then they ramped up to 100%. So 10 % of all Chrome clients were already using PQ key agreement all the time. Then they ramped up to 100%. You would think that if you have an organization where 10 % of the users with Chrome doesn't work for a reason, that they would report it.
30:38But no. So ramping up from 10 % to 100%, there were a bunch of new bug reports of organizations where only until literally everybody's Chrome was not working, then only a complaint came in. I'm guessing a lot of this is the, well, it works for me. Crazy, right? Somebody might have experienced it, filed it to their IT. Their IT is like, hey, it's working for me. It's fine. With this, I don't want people to take away that there could be problems. Because these problems are actually rare. So that's one. But another thing is you only figure out these problems by trying it. It's really hard to predict.
31:12Just try it and see. Before we move on from this, one quick question on the performance side. So we talked about the increased size of the keys. Thinking particularly about places where we embed cryptography in small devices, what's the computational requirement look like? Is it substantially more overhead there? So that's actually a funny thing. So you think big key means slow. That's actually not the case. I mean, if the network is the bottleneck, then the key is a problem. But computationally, it's actually very light. The computations involved in net-space cryptography are actually typically faster than elliptic curves, which are already known for their speed.
31:49Okay. With embedded devices, though, the thing that gets them is not necessarily the computation, but it's the memory requirement. Yeah. So for elliptic curves, you only need something like not more than 200 bytes of RAM to compute with them. But with MLChem, which is the post-quantum key agreement, you do need about five kilobytes of RAM, which is for some devices a problem. Yeah, for sure. Not usually an issue over in our web world on laptops, but yeah, I've been playing with Embedded recently and suddenly all these limitations are real again. Definitely, yeah. Okay, so let's talk a little bit more about timelines and roadmaps.
32:30My impression is we'd all been sort of operating under the assumption that QDay was far away. And we were mostly worried about the harvest now decrypt later. What does the timelines look now? Because we've seen it was Google was the big one that caught my eye. But I think there have been a flurry of shifts in terms of projections of when QDay is going to happen. and so like yeah what are we looking at and what is the roadmap to being ready so ever since i started working in this field it always felt far away and it was always like yeah probably somewhere after 2035 and one thing to understand is that there's not one approach to quantum computing there are multiple different approaches you have the silicon based the transmon ion trap based, neutral atom based, photonics, all kinds of different approaches.
33:23And each of these approaches, they have their own list of challenges. Ten years ago, the list of challenges was so far. The question was, is even one of them going to make it, right? Then over the years, each of them, none of them fell away. They all kept hanging around and most of them put also on the frontier. But still, everyone, 2035, yeah, yeah, it became kind of a magic number. And also, a lot of regulators started to standardize with deadlines between 2030 and 2035. Typically, 2030 was for the more critical things and 2035. But there's a mix between 2030 and 2035 on regulatory deadlines.
34:06So far, that felt also reasonably comfortable. that is until just the last few months. What happened is that to understand progress of quantum computing, it's actually three layers. It's three fronts where progress compounds. So you have the hardware, how far along is the actual physical device that runs it? But these physical devices, these are all analog. They are like noisy. So each quantum bit, each qubit, it's not perfect in an actual device. Some approaches have them inherently better than other approaches, but still none of them are perfect. And for any real computation, you need to do what is called quantum error correction.
34:50And that's the second layer, the second front on which progress can be made is which error correcting codes do you have and can you use on your quantum computer. And the third front of advances that can be made is on the algorithm itself. I mean, you know that if you do a first attempt at implementing some algorithm, it might not be the fastest way to get to something. And if you have a 3x4 that does something in Assembler, it can be quite a bit faster. Again, so with quantum computers. So what we've seen. So when we originally started, we thought we would need about 200 million physical superconducting qubits to break RSA 2048, 200 million.
35:31Then over the years, it was whittled down to 20 million. now 1 million with just superconducting qubits. And then there came out a paper just recently of Google, which said, oh, actually, these elliptic curves, these can also be cracked very efficiently. They only require, on superconducting, only 200 ,000. And then, so that was one. There's a much more efficient way to attack elliptic curves, which makes it a lot smaller. but then another thing is is that so that was a google's paper where the salient thing is is that they didn't publish the algorithm the only thing that they did this is starting to get dangerous we're not publishing the algorithm we're only publishing a what is called a zero knowledge proof that we actually know the algorithm fascinating yeah i'm happy they told us they made the improvement it's honestly reminiscent of what's going on in the ai space too where it's like we're We're not going to make our newest models public.
36:28We're just going to crack all sorts of security issues and bring people in on that. Similarly here, it's like, oh yeah, we have the ability now. You better get ready. We're not going to make that available because somebody will use it. But here you go. So there's an algorithm side. There's also the middle there. Yeah. So the top is already shrinking a lot. The middle is the error correcting codes. And there has been tremendous progress there as well. and in particular of a startup called Oratomic. They show that if you have a particular kind of quantum computer, it doesn't work with everyone. It works with neutral atoms.
37:02It works with ion trap, what they call reconfigurable. It's where you can move qubits around. So with silicon, they're basically locked in place. You can only do neighboring interactions. Whereas with the reconfigurable, with the neutral atoms, you can move them around. And if you can move them around, you can do non-local error correcting codes. There they showed that you only need 10 ,000 physical qubits to break P256's electric curve. Whoa, whoa, whoa. So if I'm hearing you correctly, they got a 20x improvement of mapping from physical qubits to logical qubits. Yeah. Wow. That's another improvement.
37:36Actually, the 10 ,000 number is a caveat. It needs to run for... To actually run it to break the key, it requires something like a month or so or two. So probably you would require something like 20 ,000 to do it in a more reasonable time. I mean, what's the projected classical time to break one of these keys, right? Practically infinite, right? I mean... Right, so a month is pretty good, but yeah. And then the hardware side, where if you look at each of these approaches, they're hammering away at their challenges, right? And each of them still has their big engineering challenges to solve. But at the moment, you really have to believe now that every single one of them hits a wall to not believe that it's coming and especially the neutral atom one which was a bit of a black sheep it wasn't really on anyone's radar until recently because in the longest time they didn't even weren't even able to trap a single neutral atom now they have grids of like 6 000 neutral atoms not a computer yet It's 6 ,000, I mean, 6 ,000, 10 ,000, 6 ,000, 10 ,000.
38:42It's a grid of 6 ,000 neutral atoms that they can trap. But it's not a functioning computer yet. It's not that you can do actually all the operations. But they have shown how to solve each of these engineering challenges have been solved separately. So now it's about integration. As we know, integration is hard work. There's a lot of work there. But 2035 is looking a little overly optimistic. is what you're saying. We cannot exclude the possibility that we see one in 2030 already. It's or earlier. 2029 even, maybe 1 % chance. Google put a date on it, right? They are like, we think that you've got to be ready by 2029.
39:22Google says we are going to be ready by 2029. That's our target as well. We are going to be fully post-quantum secure by 2029. Yeah, because it's starting to get incredibly uncomfortable. So let's talk then about what it takes to get to that full post-quantum security. What does, we talked about the sort of key exchange piece. You've already got that rolled out quite a bit. We talked about the need for the certificate authority and pieces on that. But like, how are you breaking apart these different pieces and the rollout? Walk me through what it takes to get there by 2029. Yeah, so this is a big project, right?
39:58But it's not like a single push because it's, I mean, they're easy and hard cases or easy, the straightforward case. But even the straightforward case is first you need to make sure that your internal CAs or the actual CAs are there. You need to make sure, then you need to provision the new root certificates on the clients. Then you need to provision, of course, you need to update the servers, the software and the server and the clients to understand these new certificates. Then you need to provision the new certificates next to the old certificates on all of the servers. and then you're not done yet because installing post-quantum editing support for it is not enough.
40:34You also need to turn off support for quantum-funerable crypto. Otherwise, you have a downgrade attack. And after that's all said and done, you probably also want to rotate all your secrets. So even though this is well understood, the steps here, but it's not one push. It's like maybe three, four pushes. It's a matter of years, not of months. So that's one. But at least there, the things are reasonably well understood. Software support is coming. So OpenSSL already has support for MLDSA, software support and other libraries are certainly coming. The thing that is important now as well is to bubble up the hard cases, right?
41:09So cases where you put a JWT into your URL. If that JWT is using a post-quarton signature of one and a half kilobyte, that will bring you a URL, right? That's not going to work. Headers, a lot of servers, even clients are not happy if your headers are chunky. Hardware dependencies, bespoke protocols. Something like WireGuard. WireGuard really uses that things fit into single packets. That's not an easy upgrade either. There are some suggestions there. So one track is preparing just a straightforward case. And another track is trying to bubble up quickly these hard cases. Things that need actual tough decisions on how to proceed.
41:49And then there's a third track, which is dependencies, vendors. right because even though you can do anything all right if your vendor doesn't upgrade in time well what can you do so because i've had to work with vendors before that immediately puts me down the road of well we're not going to make it what are the consequences we get to 2029 and maybe you're like most of the way there but you've got a few vendors that have not updated or something like that what are the impacts what are the cascades what does this look like in the downside case this is actually the exercise you can do tomorrow right just assume we got it all wrong it's already quantum computer what happens what's the impact what do we need to focus on now that you can do right because actually it's usually because you can also i love cryptography i think we did a great job of the last decade to make encrypted secure connections the baseline and i really want to keep that but to reduce the panic of it it's also important to start from what is the actual business continuity impact if this happens are there any mitigating circumstances can we detect if this happens how can we solve this in different ways i can't prescribe it will differ persist in the system some of them you will discover oh i thought it wasn't bad but it's actually really bad and others you discover uh we can do some different things we can fix things in different ways we can it wasn't load bearing that can be one example maybe we can just put in a post-quantum vpn or the like maybe we do design things maybe we replace it anyway or we accept the risk right But there's a whole bunch of options.
43:21But it's really important to understand this top-down, right? Because if you start bottom-up, where you just make an Excel sheet of where are the keys, well, that key exists doesn't tell you what the key does, right? You need to know the context of what is this product, what is it trying to achieve. You need to have a top-down understanding of the risk. What keeps you up at night looking at this? What doesn't? I like my car. I don't want to replace my car. i've long had a habit of calling smart devices surveillance devices because they even in a classical cryptography world so many of them are so hackable but cars and software controlled cars sound terrifying in a world where you can hack through them hopefully they'll just get a software update where they disable the software update or something like this i mean they should so the thing is in a way let me end with a more positive note right because data leaks are not new every once in a while a huge amount of data is leaked and also adversaries gaining access to systems where they shouldn't and running around and extortion that's also an everyday occurrence so we know how security teams around the world know how to deal with this they're trained to deal with this and how to work around it the only thing is that's really important is that the difference is with quantum, it will come all at once, right?
44:41In a way, Mythos is like a preview where the rate of explodes is going up. Luckily with Mythos, it can only find errors and bugs that were already in the software, right? It's not going to find something, errors that are on there. But with quantum, it will come all at once. So don't panic, but I mean, at least get started early enough. Yeah, for sure. Awesome. Well, we're getting close to the end of our time. Is there anything we haven't talked about that you think would be good to leave our listeners with? Just get started with updating your library. I mean, probably the biggest part of the work will be just the usual things.
45:13Upgrading that library that's been using that library from 2011. Just the basic things. And in most cases, it will be relatively straightforward. If you're in a big bank that's still on mainframes using COBOL. Actually, banks, the financial sector is one of the branches that has been very much on top of PQ for a long time. At least the banks I see at conferences. So yeah, I'm less worried there. Also, there's this funny thing where if your system is old, it's hard to upgrade. You're in trouble. But if it's old enough, it uses symmetric photography again, which doesn't happen. Right, right. There's a sweet spot.
45:52That's hilarious. Awesome. Well, thank you. Appreciate it. This is super educational for me, and it'll be an interesting couple of years. Sure will be. Thank you. Great to be here. I've been here.
From the publisher
Most of the cryptography securing the internet today rests on mathematical problems that classical computers cannot solve in any reasonable timeframe. That assumption is now being tested. Recent advances in quantum computing have dramatically compressed timelines, and many in the industry have set a target of full post-quantum security by 2029, meaning a complete migration
The post Preparing for Q-Day appeared first on Software Engineering Daily.
