1 00:00:00,000 --> 00:00:06,460 Welcome our next speaker, Christian Paquin on integrating post-quantum crypto into real 2 00:00:06,460 --> 00:00:18,080 life applications. Thank you, thank you. So welcome everybody to the last session in the 3 00:00:18,080 --> 00:00:23,740 crypto and privacy village. First of all I'd like to thank the organizers for the invitation. 4 00:00:23,980 --> 00:00:29,820 It's a great pleasure to come here at DEF CON to present my work and along with the work of 5 00:00:29,820 --> 00:00:36,380 my esteemed colleagues from the post-quantum crypto group at Microsoft research. And today I'll 6 00:00:36,380 --> 00:00:43,080 be talking about our experiments and incubation projects of integrating post-quantum 7 00:00:43,080 --> 00:00:50,920 cryptography into real life applications. So a little outline, very straight forward and 8 00:00:50,920 --> 00:00:57,760 logical. Start to introduce what is quantum computing, the quantum and then talk about what 9 00:00:57,760 --> 00:00:58,920 we need to do after that. 10 00:00:59,820 --> 00:01:06,700 So let's start with the post-quantum world and then I'll discuss our integration experiments. So 11 00:01:06,700 --> 00:01:12,560 first of all, so just a little poll. I'd like to know who's familiar, not just the word, but 12 00:01:12,560 --> 00:01:20,800 how quantum computing works in the room. Oh, fairly good. How about on YouTube? See that later 13 00:01:20,800 --> 00:01:28,420 in the comments. Okay, so we've all heard about quantum computing, at least the words. And we've 14 00:01:28,420 --> 00:01:29,800 been hearing the quantum revolution. So let's talk a little bit more about quantum computing. 15 00:01:29,820 --> 00:01:35,860 Quantum revolution is coming. Well, I've been hearing that for a very long time. I was a very 16 00:01:35,860 --> 00:01:43,940 young student at the University of Montreal, a bit, 20 years ago, was trying to studying quantum 17 00:01:43,940 --> 00:01:50,500 computing and quantum cryptography with under the supervision of Gilles Brassard, who co-created or 18 00:01:50,500 --> 00:01:56,300 co-discovered quantum key distribution and quantum teleportation. So it was really hard to be in 19 00:01:56,300 --> 00:01:59,800 that lab and do anything other than quantum. It was quantum everything. So let's talk about quantum 20 00:02:00,300 --> 00:02:01,920 cryptography. I was very young and I was training to be a cryptographer and then I decided to go and 21 00:02:01,920 --> 00:02:06,980 get a job. It was a bit hard to be applied cryptography and doing some quantum things at the 22 00:02:06,980 --> 00:02:12,800 time. So I went off becoming a quantum, or a crypto developer, work at a company, Zero 23 00:02:12,800 --> 00:02:18,280 Knowledge Systems, where we built a predecessor to Tor, did some PKI work. Then I went to a 24 00:02:18,280 --> 00:02:24,020 company called Credentica, where we built an anonymous credential system for PKI with privacy 25 00:02:24,620 --> 00:02:29,340 and technology, developed a U-Proof technology. I had a job there for a couple of years. I was a 26 00:02:29,340 --> 00:02:29,380 computer engineer, but I was working for YouTube and I was working for YouTube and YouTube is a very, 27 00:02:29,380 --> 00:02:29,400 very popular game. I was working for YouTube and YouTube is a very popular game. I was working for YouTube 28 00:02:29,400 --> 00:02:35,160 ended up at Microsoft. And then many years later I'm back at this quantum thing. But this time 29 00:02:35,160 --> 00:02:40,800 on the other side of the fence, not trying to build a quantum computer but trying to defend 30 00:02:40,800 --> 00:02:46,600 against it. And I'll talk about it a bit more. So it's hard to just keep track of what's going 31 00:02:46,600 --> 00:02:52,560 on. Every week there seems to be a new result, new quantum computer being built, bigger, 32 00:02:52,720 --> 00:02:58,600 many more qubits. I can't put slides anymore of a news report. Just put the search slide and 33 00:02:58,600 --> 00:03:06,220 search link and then you'll be able to find the results of the week. Also down the hall, my 34 00:03:06,220 --> 00:03:12,800 colleagues at Microsoft Research are building, are trying to build a quantum computer. And 35 00:03:12,800 --> 00:03:20,720 also, they just released this year a visual studio programming language, Qsharp, in which you 36 00:03:20,720 --> 00:03:24,800 can program a quantum computer. So we don't have the chip yet but when we do we'll be able to 37 00:03:24,800 --> 00:03:28,580 just plug in that software and be able to use it. So they're trying to build a quantum 38 00:03:28,580 --> 00:03:34,200 computer and they're trying really hard to do it. Which means for us, crypto specialists, we 39 00:03:34,200 --> 00:03:40,000 have to do some things to defend against it. We'll talk about it later. So first of all, what is 40 00:03:40,000 --> 00:03:46,520 a quantum computer? Well, very simply, it's just a machine that operates with the laws of 41 00:03:46,520 --> 00:03:52,600 quantum mechanics. Computers we have, they all operate with the classical laws of physics. We 42 00:03:52,600 --> 00:03:58,560 understood them. But when we start using smaller particles that follows different laws of physics, 43 00:03:58,580 --> 00:04:04,780 there's some really weird things that are happening. So first, the basic of a quantum 44 00:04:04,780 --> 00:04:11,040 computer is a qubit, a quantum bit. And unlike its classical counterpart, it's not either zero or 45 00:04:11,040 --> 00:04:17,640 one. It can be zero and one at the same time. A bit like that famous experiment, thought 46 00:04:17,640 --> 00:04:23,120 experiment of the cat that can be dead or alive, Schrodinger's cat. Well, a quantum bit can be 47 00:04:23,120 --> 00:04:27,980 zero and one at the same time. Which is great if you want to build algorithms with that. Because 48 00:04:27,980 --> 00:04:34,080 imagine you're trying to solve a problem, let's say trying to find a path in a maze. Well, if I 49 00:04:34,080 --> 00:04:39,520 can see zero is turn left, one is turn right, then you can put it both zero and one at the same 50 00:04:39,520 --> 00:04:44,660 time and then have both paths be taken at the same time. And all of the computation paths be 51 00:04:44,660 --> 00:04:50,580 followed at the same time. And at the end, one of your parallel paths of computation will have 52 00:04:50,580 --> 00:04:57,200 found the exit to the maze. The problem is that when you look at the solution, when you look at 53 00:04:57,200 --> 00:04:57,580 your quantum 54 00:04:57,980 --> 00:05:05,580 register, at your memory, this quantum superposition is not visible to you in the classical 55 00:05:05,580 --> 00:05:10,660 world. One state gets picked at random depending on the amplitudes alpha and beta of the quantum 56 00:05:10,660 --> 00:05:19,560 bit. And only one result at random gets returned to you. So great parallelism, not great output. 57 00:05:20,440 --> 00:05:27,660 So quantum algorithm designers, they have to find ways to use quantum interference like if you 58 00:05:27,660 --> 00:05:34,000 remember your physics class, this double slit experiment where you can put two holes in a piece of 59 00:05:34,000 --> 00:05:41,720 paper, shine some light and then kind of the wave properties of interference makes a little black 60 00:05:41,720 --> 00:05:46,280 white, black white pattern because the waves interfere at some points and where there should be 61 00:05:46,280 --> 00:05:54,520 lights, there's not because the light particles, they interfere, they cancel each other. So we can 62 00:05:54,520 --> 00:05:57,640 do the same with quantum algorithms where we can just, you know, write the random verse. You can see the 63 00:06:00,880 --> 00:06:05,460 destroyed and only the computation results that you want get popped up at the end of the 64 00:06:05,460 --> 00:06:13,580 computation. So it's very subtle and hard art to design quantum algorithms. But there's a few 65 00:06:13,580 --> 00:06:20,700 that are being around. Another strange property is that qubits can be entangled. Entangled 66 00:06:20,700 --> 00:06:27,620 means that imagine you have two coins and you take them apart and you flip them and you 67 00:06:27,640 --> 00:06:32,320 are going to get zeros and ones and double zeros, double ones, zeros and ones, ones and 68 00:06:32,320 --> 00:06:38,340 zeros. But if they are quantum coins and you have them interact in a special way and they 69 00:06:38,340 --> 00:06:43,240 become entangled then you can separate them and they can be very far apart and you flip them 70 00:06:43,240 --> 00:06:51,200 they are always either zeros or either tails or head or tails. You'll never see tail and head 71 00:06:51,200 --> 00:06:55,880 and head or tail. That's really weird. That freaked out Einstein. He called that a spooky 72 00:06:55,880 --> 00:06:57,620 action at a distance. Because you can't see tails and heads. You can't see tails and heads. 73 00:06:57,640 --> 00:07:02,420 Imagine that one coin would get a result and would need to send a faster than light signal to 74 00:07:02,420 --> 00:07:08,000 the other coin so it matches its response. So it's hard to understand what's going on but it's 75 00:07:08,000 --> 00:07:15,160 just an observable fact that these particles can be entangled and to always share a state across 76 00:07:15,160 --> 00:07:21,140 space. And that can be used in quantum algorithms as well. And quantum computers can be built 77 00:07:21,140 --> 00:07:27,460 with all sorts of things. The spin of an electron, the orientation of a photon. My colleagues, 78 00:07:27,460 --> 00:07:34,460 are betting on this topological computer being used with anions that could provide better 79 00:07:34,460 --> 00:07:42,380 stability with bigger machines. And Richard Feynman, a famous physicist, famously said that 80 00:07:42,380 --> 00:07:47,600 nobody understands quantum mechanics. You just get used to it. For us computer scientists, we 81 00:07:47,600 --> 00:07:53,040 don't really care. I don't ever care how it's built. It's just a black box and you give me these 82 00:07:53,040 --> 00:07:57,440 mathematical properties and we can design algorithms to solve new problems. So it's just a 83 00:07:57,440 --> 00:08:03,040 new class of problems. So it's all great. Some of my colleagues are very excited about that. 84 00:08:03,940 --> 00:08:10,480 Security folks are a bit more worried because although quantum computing provides great 85 00:08:10,480 --> 00:08:16,840 advances in many fields, in chemistry to find new ways to design molecules and optimization 86 00:08:16,840 --> 00:08:23,660 problems and machine learning, it has terrible consequences for cryptography because there are 87 00:08:23,660 --> 00:08:27,420 two algorithms. Ironically, the first two algorithms that I've known about, the first two 88 00:08:27,420 --> 00:08:32,460 algorithms that I've known 20 years ago, were only used to break cryptography almost. The 89 00:08:32,460 --> 00:08:41,380 first one here is the quantum menace. This is Peter Shore. Designed in 94, his famous 90 00:08:41,380 --> 00:08:50,620 algorithm that by doing what's called period finding in algorithms, it can be used to factor 91 00:08:52,780 --> 00:08:57,160 large numbers and find a discrete log of numbers. Which are the two problems, 92 00:08:57,160 --> 00:09:07,700 underpinning RSA and DSA and the elliptic curve variants, like ECDH, DSA. So using Shore, we 93 00:09:07,700 --> 00:09:13,600 can basically break most of the cryptography, all the public key cryptography that we use today on 94 00:09:13,600 --> 00:09:20,920 the internet. The other algorithm that's very important is the Grover algorithm. It allows 95 00:09:21,940 --> 00:09:27,140 database search and function inversion. It improves it by a square root function. So it's a 96 00:09:27,140 --> 00:09:34,600 factor. Essentially, it's kind of described as finding a needle in a haystack. It's able to find a 97 00:09:34,600 --> 00:09:40,940 unique solution to a function that you're looking for. And it can be used to help the brute 98 00:09:40,940 --> 00:09:50,260 force of finding a digest in an hash function or breaking block ciphers, like AES. And it has 99 00:09:50,260 --> 00:09:57,120 consequences, but they're not terrible. Because of the square root improvement, what we need to do to secure against the 100 00:09:57,120 --> 00:10:05,320 algorithm is just double the key. The key size of AES or double the hash size of Shore. 256 to 512. 101 00:10:07,360 --> 00:10:14,220 So, okay. Sounds bad. So how long do we have? When is this quantum computer going to be built? 102 00:10:15,840 --> 00:10:20,820 Well, there's been a lot of studies about that, trying to see what's the best estimate of when the 103 00:10:20,820 --> 00:10:27,100 Shore algorithm will be built. Micale Mosca is a Professor at Waterloo. I believe he's been 104 00:10:27,120 --> 00:10:35,680 as a often cited quote that by 2031 there's a half chance, a 50% chance that we'll get a 105 00:10:35,680 --> 00:10:43,920 quantum computer. And he revised that in 2017 to last year. This is one in six chance 10 106 00:10:43,920 --> 00:10:53,400 years ago. And another researcher, Simon Benjamin from Oxford, if you're willing to go 107 00:10:53,400 --> 00:10:58,100 Manhattan Project, meaning you just put all your effort as a big government behind it, then 108 00:10:58,100 --> 00:11:07,820 maybe, yeah, six to 12 years. Some of my colleagues also share this 2030 deadline or estimate. 109 00:11:08,120 --> 00:11:16,080 And that's a little diagram that shows you the difference between breaking RSA 2048 with a 110 00:11:16,780 --> 00:11:23,340 classical or quantum computer. So you need about a number of bits for the algorithm. And 111 00:11:23,400 --> 00:11:29,060 for a classical computer, it would take billions of years. So we're safe. We know that. For a 112 00:11:29,060 --> 00:11:34,080 quantum computer, depending on its operational speed, so at one gigahertz, for example, you 113 00:11:34,080 --> 00:11:45,660 would just get a few seconds. So it's a game changer. It breaks it totally. So now what we need 114 00:11:45,660 --> 00:11:50,820 to do, given the quantum people would be very optimistic. They'd say, yeah, we're going to 115 00:11:50,820 --> 00:11:53,380 build it soon. We've been trying. We're going to build it soon. So we're going to build it soon. 116 00:11:53,400 --> 00:11:57,900 So we don't, I don't necessarily believe that we're going to have a fully functional computer in 117 00:11:57,900 --> 00:12:07,560 12 years. But as security specialists, we have to be careful and assume the worst case and be ready 118 00:12:07,560 --> 00:12:13,160 to have something else. And we do need something else. We need alternatives, so-called quantum 119 00:12:13,160 --> 00:12:19,820 safe algorithms or post-quantum cryptographic algorithms, which are quantum algorithms that are 120 00:12:19,820 --> 00:12:23,380 secure against a quantum computer. It doesn't mean that they run on a quantum computer. They're 121 00:12:23,400 --> 00:12:27,900 secure. That doesn't mean that at all. And it's not quantum cryptography, which is another 122 00:12:27,900 --> 00:12:34,080 field, or quantum key distribution, which is using quantum mechanics to exchange a key. 123 00:12:34,220 --> 00:12:40,600 So these are all separate subjects. This is normal classical cryptography for which we don't 124 00:12:40,600 --> 00:12:49,260 know any classical or quantum algorithms to break them. And that is the big field of post-quantum 125 00:12:49,260 --> 00:12:53,380 cryptography, which is getting more and more attention. But, first of all, we want to make it 126 00:12:53,380 --> 00:12:58,340 first question we can get now is why would we care about this now? We'll think about it in 10 127 00:12:58,340 --> 00:13:02,220 years. We have time. We're busy. We have all sorts of things to do. We have block chains to 128 00:13:02,220 --> 00:13:08,680 implement and all sorts of things. Well, the main, one of the main reason, the big reason is 129 00:13:08,680 --> 00:13:14,620 that the secrets you have today are at risk. Not to be decrypted now, but they can be 130 00:13:16,540 --> 00:13:22,180 captured now, recorded now and decrypted later. All major countries have the capabilities now to 131 00:13:22,180 --> 00:13:28,320 just save the Internet traffic and decrypt it later at their leisure when they have a quantum 132 00:13:28,320 --> 00:13:37,720 computer. So that's very significant. Another more practical, but no less important item is 133 00:13:37,720 --> 00:13:43,300 that it takes a long time to update standards and software. So we need to understand today, so if 134 00:13:43,300 --> 00:13:49,260 we are to replace these algorithms, what does it mean to plug them in TLS and SSH and to 135 00:13:49,260 --> 00:13:52,160 update all our software stack? We know Microsoft has a lot of software that's been 136 00:13:52,180 --> 00:13:55,360 replaced. We have a lot of experience, you know, from the flame malware and all the 137 00:13:58,860 --> 00:14:06,020 attacking very old hash functions like MD5, you know, these MD5 collisions. We know it's been 138 00:14:06,020 --> 00:14:10,240 outdated, it's been replaced, but there's some very old software that's still running it in some 139 00:14:10,240 --> 00:14:14,640 weird configuration. It takes a long time to get rid of it. So we need to make sure that by the 140 00:14:14,640 --> 00:14:22,160 time the quantum computer is here, all the insecure algorithms are gone. And lastly, one of the 141 00:14:22,180 --> 00:14:31,260 things that's very important or to consider is the ability to use hybrid modes. So to be able to 142 00:14:31,260 --> 00:14:37,160 use classical cryptography with post quantum cryptography in a safety net to have best of both 143 00:14:37,160 --> 00:14:41,640 worlds of the two protections. And that's going to be an interesting scenario for a while. I'll 144 00:14:41,640 --> 00:14:49,740 describe that later. So most of the industry now is focused on the NIST competition. NIST is the 145 00:14:49,740 --> 00:15:00,040 National Institute of Standards and Technologies in the U.S. It is basically the de facto, they 146 00:15:00,040 --> 00:15:05,080 define the de facto standards for the cryptography used around the planet. Whatever NIST does 147 00:15:05,080 --> 00:15:13,280 typically is followed around the world. They basically made a call to replace the cryptography 148 00:15:13,280 --> 00:15:19,720 that we have today with post quantum versions. So they have this competition. It started in November of this last year. They're 149 00:15:19,740 --> 00:15:23,780 and they're basically looking for new signature and encryption 150 00:15:23,780 --> 00:15:29,060 mechanisms with five security levels and they got 64 151 00:15:29,060 --> 00:15:34,060 submissions in their competition. Nineteen signature 152 00:15:34,060 --> 00:15:38,020 schemes and the rest are encryption or key encapsulation 153 00:15:38,020 --> 00:15:43,260 mechanisms. So you can see all the details on that, at that 154 00:15:43,260 --> 00:15:48,040 link, all the submissions. And some of the work I'll be 155 00:15:48,040 --> 00:15:51,240 presenting later is integrating some of these in higher level 156 00:15:51,240 --> 00:15:54,660 applications. And they think that they're going to have like 157 00:15:54,660 --> 00:16:00,780 standards by 2022, 2024, so to let, to give us time to integrate 158 00:16:00,780 --> 00:16:09,400 so that we're ready by this 2030 deadline. So what do these 159 00:16:10,300 --> 00:16:13,480 post-quantum algorithms look like? We know we cannot base them 160 00:16:13,480 --> 00:16:16,580 on factoring and we cannot base them on discrete log because 161 00:16:16,580 --> 00:16:17,520 they're broken by sure. 162 00:16:18,260 --> 00:16:22,980 So there are many more families of mathematical problems that 163 00:16:22,980 --> 00:16:27,640 we can use to build new type of crypto systems. The first one, 164 00:16:27,700 --> 00:16:31,600 the most popular one, is the lattice based systems. They're 165 00:16:31,600 --> 00:16:37,760 based on mathematical lattices, and this one of them has been 166 00:16:37,760 --> 00:16:40,080 around for a long time and true, it's been around from the mid 167 00:16:40,080 --> 00:16:43,520 90s, always been competing with RSA but there was no ever reason 168 00:16:43,520 --> 00:16:43,780 to move away from RSA, so never got much traction in that way. 169 00:16:43,780 --> 00:16:48,020 true, it's been around since the mid 90s always been competing with RSA, but there was no ever reason to, to, to move away from RSA. So never got much tracking, so I'll just 170 00:16:48,020 --> 00:16:54,020 but now it's kind of, some people have been looking at it. And also being more newer 171 00:16:56,840 --> 00:17:04,740 versions, updated problems with provable security. For example, they're learning with error 172 00:17:04,740 --> 00:17:13,580 problem and it's ring version, the ring, RLWE. And I'll be presenting one scheme that's been 173 00:17:13,580 --> 00:17:19,600 designed by Peckert and some of my colleagues have been designing this scheme BCNS to plug it 174 00:17:19,600 --> 00:17:25,500 into TLS. It's been improved, optimized by another team and became New Hope. And then there's 175 00:17:25,500 --> 00:17:32,740 some other subsequent scheme like Frodo that comes back without the ring. I'll talk about it in 176 00:17:32,740 --> 00:17:38,680 a few seconds. Another family is the code-based systems. They're based on error-correcting 177 00:17:38,680 --> 00:17:42,760 codes. They've been around forever. And they've also been proposed as a public system 178 00:17:42,760 --> 00:17:49,400 at the same time as RSA. So they've been around for a long time. But they have some 179 00:17:50,540 --> 00:17:56,920 disadvantages. They're huge keys. So they were never considered as an alternative to RSA until 180 00:17:56,920 --> 00:18:05,920 now. And there's been a lot of code-based systems proposed, 19 of them out of the 64. Another 181 00:18:05,920 --> 00:18:12,180 one is multivariate systems. So they're based on essentially multivariable polynomials and you 182 00:18:12,180 --> 00:18:12,740 have to solve the problem. And then there's a lot of code-based systems that are based on 183 00:18:12,760 --> 00:18:19,900 all the equations. Also developed in the 90s and now nine submissions based on this family. 184 00:18:20,680 --> 00:18:26,480 The other one is hash-based systems. So these ones are also very old. A lot of these, the ideas 185 00:18:26,480 --> 00:18:33,380 are date back from a long time because cryptography researchers have been busy in proposing things. 186 00:18:33,520 --> 00:18:40,780 But in practice, we're very conservative. We pick the standard and we're not allowed to be creative 187 00:18:40,780 --> 00:18:47,220 and take new ideas in very often. Until we're forced to. So this one, signatures based on 188 00:18:47,220 --> 00:18:53,780 import signatures and Merkle, the co-inventor of public key cryptography, designed this Merkle 189 00:18:53,780 --> 00:19:04,440 signature scheme which is a tree of hash digest. And there's been newer proposal, LMS and XMSS. 190 00:19:04,840 --> 00:19:10,760 Extended Merkle signature scheme, I think that means. And these are the things that are 191 00:19:10,760 --> 00:19:15,420 probably considered for earlier adoption than what the NIST competition. Because they're very 192 00:19:15,420 --> 00:19:19,980 well understood. We know the impact of quantum computer on hash functions. And we know that 193 00:19:19,980 --> 00:19:24,000 Grover is optimal. So we know it's like the worst case scenario. We can go with that and we'll 194 00:19:24,000 --> 00:19:31,460 be safe. And there's some pros and cons with the hash tree versions. But at least we know that 195 00:19:31,460 --> 00:19:38,740 they'll be secure. And finally, there's the other category. There's seven of them. This one that 196 00:19:38,740 --> 00:19:44,260 we've been working on based on isogenies. There's been a talk last year in the village about it on 197 00:19:44,260 --> 00:19:51,700 SIDH. And another one from my colleague is based on symmetric ciphers and zero knowledge proofs 198 00:19:51,700 --> 00:19:58,520 called Picnic, a signature scheme. So there's a wide thing. So NIST and the Crypto Academia 199 00:19:58,520 --> 00:20:04,820 will be very busy to analyze all that. You know, you need a specialized PhD in each field to be 200 00:20:04,820 --> 00:20:08,720 able to understand one scheme, you know. So it takes a lot of, it's hard to find the right 201 00:20:08,720 --> 00:20:13,680 line, somebody with the knowledge to look at all of that. So it's, the whole industry is looking 202 00:20:13,680 --> 00:20:18,180 at that in detail. I don't want to go into details about these slides because they're very 203 00:20:18,180 --> 00:20:25,120 small. But these are slides from NIST after the competition deadline. It just showed some 204 00:20:25,120 --> 00:20:31,040 results of performance that they ran. You see a key size. So you see the different families. 205 00:20:31,240 --> 00:20:38,700 So lattices typically perform very well. And some others like the, you know, like the 206 00:20:38,720 --> 00:20:48,760 code base, for example, like very large keys, public keys. And so it might be more difficult to 207 00:20:48,760 --> 00:20:57,960 integrate. Same thing with signatures. I'll let you inspect the slides at your leisure to see the 208 00:20:57,960 --> 00:21:07,720 details. I'm just going to fast forward through that a little bit. So my colleagues, I've been 209 00:21:07,720 --> 00:21:11,720 dealing more with crypto integrations and programming these things. Some of my colleagues are 210 00:21:11,720 --> 00:21:17,220 actual mathematicians building these schemes. And these are the four collaborations we had in 211 00:21:17,220 --> 00:21:23,320 the competition. As you can see, it's always multi-organization teams. A lot of 212 00:21:23,320 --> 00:21:31,320 collaboration across the industry and academia to make these. So Frodo is essentially like New 213 00:21:31,320 --> 00:21:37,700 Hope, but without the ring assumption and the learning with error. So Frodo is usually the one to 214 00:21:37,720 --> 00:21:45,100 remove the ring, get it. And so it's, team felt it was more secure. The ring learning with 215 00:21:45,100 --> 00:21:50,840 error might not be as secure as we know because it's very new. And the, just learning with 216 00:21:50,840 --> 00:21:59,520 error counterpart is safer. It's slower, but it's safer. Psyche is updated SIDH. It allows you to 217 00:21:59,520 --> 00:22:07,700 reuse the keys. So felt it was a better design for the submission. Picnic as I described it a little bit. And QTesla is a little bit more of a 218 00:22:07,720 --> 00:22:13,580 ring learning with error signature scheme. So all the code is all open source of these things. Like all 219 00:22:13,580 --> 00:22:21,080 the submissions and you can take a look. And experiment with them. So one thing we did is trying to plug 220 00:22:21,080 --> 00:22:26,760 these into real life applications. Like in TLS and OpenSSL, see how it works. So after doing that a 221 00:22:26,760 --> 00:22:34,620 few time independently, it gets bothersome. So along with a colleague, Douglas Stibbele at 222 00:22:34,620 --> 00:22:36,340 McMaster, now he's at Waterloo. 223 00:22:37,820 --> 00:22:44,880 He started this project called Open Quantum Safe. And we joined and integrated our solutions and 224 00:22:44,880 --> 00:22:54,660 helped designing the signature API in that project. Essentially the goal is to have a framework where you 225 00:22:54,660 --> 00:22:59,320 can plug in all these post quantum algorithms. And then in turn you take the framework, this common 226 00:22:59,320 --> 00:23:05,260 API and integrate it into your applications. So that if you take that and plug it into OpenSSL and 227 00:23:05,260 --> 00:23:11,040 OpenSSH for free. And then you have a new scheme. Then you can just integrate it in OQS and then you get the 228 00:23:11,040 --> 00:23:18,860 integration into OpenSSL and OpenSSH for free. So it's very useful. It's been useful to us. It allows us to do 229 00:23:19,380 --> 00:23:26,260 prototyping really fast. And it's also open, right. So we're open to invitations. I don't know. A lot of 230 00:23:26,260 --> 00:23:35,100 people in this room, I'm sure some of them might know or have been involved with one of the 64 submissions. You might want to take submissions. If the core 231 00:23:35,260 --> 00:23:40,220 team didn't have time to take a new algorithm and plug it in, we're trying to do that. But you can accelerate that by 232 00:23:40,220 --> 00:23:46,460 submitting a pull request with your own algorithms and integrate it into OQS. If you want to see how it performs in 233 00:23:46,460 --> 00:23:55,040 TLS for example. There are two branches. One is the master branch. Which allow us to have a tighter integration and 234 00:23:55,040 --> 00:24:05,100 reusing a random number generator and all the constructs of OQS common code. And it's meant for integration into applications and with the goal to ship it. 235 00:24:05,260 --> 00:24:12,120 And there's a NIST branch which has a more lightweight approach. It's just to take the NIST submissions and easily integrate 236 00:24:12,120 --> 00:24:23,600 them without touching their code base too much and just to be able to compare them. So, okay. You get the link there. So feel free to come use 237 00:24:23,600 --> 00:24:34,840 that project or contribute to it. We're welcoming feedback and new contributions. Okay. So now I'll be talking a bit about the 238 00:24:34,840 --> 00:24:45,720 integrations that we've been doing. So the first one we did was in TLS 1.2. We've integrated into OpenSSL 1.0.1.0.2. OpenSSL has 239 00:24:45,720 --> 00:24:56,440 two layers. There's the bottom crypto layer and there's the top SSL layer. So for the to do key exchange we only had to touch the SSL layer. 240 00:24:56,620 --> 00:25:04,820 Because when there's the post quantum crypto we just branch off to OQS rather than using the low level crypto API. But you can see here the 241 00:25:04,840 --> 00:25:11,220 why we integrated the signature API in the PKI, we added to touch the PKI ASN1 infrastructure 242 00:25:11,220 --> 00:25:18,040 which is in the crypto layer. So that was a bit more work, actually a lot more work, but the 243 00:25:19,120 --> 00:25:24,560 result is that you're able to issue post quantum certificates and use them in TLS to do 244 00:25:24,560 --> 00:25:30,500 authentication. So for key exchange we have two modes. We define new cipher suites and we also 245 00:25:30,500 --> 00:25:36,660 defined hybrid cipher suites in which you essentially do a classical key exchange and a 246 00:25:36,660 --> 00:25:42,000 post quantum key exchange and then you take the results of both and concatenate them and that's 247 00:25:42,000 --> 00:25:47,440 what you feed into the as the master, premaster secret that gets fed into the key derivation 248 00:25:47,440 --> 00:25:55,440 function of TLS. And that gives you double the protection. So we might be worried that you're 249 00:25:55,440 --> 00:26:00,480 doubling the time or the efficient, the work so it might have a bad effect on the 250 00:26:00,500 --> 00:26:06,760 consequences on performance, but we'll see that's not that bad on the next slide. And we 251 00:26:06,760 --> 00:26:14,100 also, as I said, did the post quantum certificates and there were some problems there. Some of 252 00:26:14,100 --> 00:26:20,440 these schemes, for example, Picnic has a very large signatures. So the signature size in TLS is 253 00:26:20,440 --> 00:26:25,880 two to the sixteenth. So everything passed the level one of Picnic. There's level one, three 254 00:26:25,880 --> 00:26:30,440 and five. So everything, three and five didn't fit in TLS. So that's why it's useful to 255 00:26:30,440 --> 00:26:35,840 do these experiments right now. We can see and give feedback to the designers that, okay, it's 256 00:26:35,840 --> 00:26:41,280 a, this thing's too big, it won't fit. So the crypto designers might want to tweak their things, 257 00:26:41,460 --> 00:26:45,740 remove a few bits here and there so it fits into a known algorithms that are targeting. So 258 00:26:45,740 --> 00:26:51,300 that's why we're able to, in fact, this work was done before the submission, didn't fit, changed a 259 00:26:51,300 --> 00:26:58,580 few things and what was submitted to NIST made sure that it would fit into TLS. And also tested 260 00:26:58,580 --> 00:27:00,420 in Apache, 2.4. So that's why we're able to, in fact, this work was done before the submission, 261 00:27:00,440 --> 00:27:07,180 4.25 at that time and worked well. So we could deploy that and so can you. You can test it. 262 00:27:07,360 --> 00:27:15,940 Just download our fork and you'll be able to test that. If you don't have time to take notes in 263 00:27:15,940 --> 00:27:19,900 there, it's all in the open QuantumSafe project. Everything is listed there with all the projects 264 00:27:19,900 --> 00:27:25,620 and forks. So don't worry about that. So this is an interesting diagram that shows our 265 00:27:25,620 --> 00:27:30,420 experiments running these algorithms in TLS. So these are pre-NIST submissions. So, you can 266 00:27:30,420 --> 00:27:35,740 see that all the algorithms have either been optimized or changed to be more secure. So take 267 00:27:35,740 --> 00:27:40,420 the performance as a grain of salt here. With a grain of salt, but the, what's interesting is to 268 00:27:40,420 --> 00:27:47,940 see the trend. So ECDHE, the orange line here is the baseline. That's basically what's being 269 00:27:47,940 --> 00:27:54,960 used, favored today by web servers. We see that some of the post-quantum ones, like New Hope, is 270 00:27:56,140 --> 00:28:00,400 lattice ring learning with error, quite efficient, even more efficient than ECDHE. And we can see, 271 00:28:01,400 --> 00:28:01,760 I think, more common too, is the 272 00:28:01,760 --> 00:28:07,300 creative load on the top left. And the Frodo one is the same one, without the ring. So just a learning 273 00:28:07,300 --> 00:28:15,300 with error option. So slower. But, not as bad. These are connections per second. So here it's 900 up to 274 00:28:16,340 --> 00:28:24,700 1600 and ECDHE like 1200 or so. So it's not bad. Like things are going to have to give at some point. 275 00:28:24,700 --> 00:28:29,440 we can't have the same efficiency as we have today in the world where the quantum computer 276 00:28:29,440 --> 00:28:35,320 exists. But things are not catastrophic. We've seen some, you look at the specs of some of 277 00:28:35,320 --> 00:28:41,100 these crypto algorithms, the terrible key sizes and running time, but when you plug them in 278 00:28:41,100 --> 00:28:45,640 real life, like with the good settings, you see that it's not that bad. And the other 279 00:28:45,640 --> 00:28:50,340 interesting thing is that here we retrieve multiple payloads, like web pages of different 280 00:28:50,340 --> 00:29:00,700 sizes, one byte, 1K, 10K and 100K. So normal websites today, they're quite big. So the cost of 281 00:29:00,700 --> 00:29:06,580 the crypto gets amortized, like the more the bigger the website, the page, then the cost to do 282 00:29:06,580 --> 00:29:12,340 the TLS negotiation gets amortized with the download time of the page. So the more we get to 283 00:29:12,340 --> 00:29:19,500 normal sized pages, they all kind of merge together and the cost of the post quantum there is 284 00:29:19,500 --> 00:29:20,220 not very apparent. 285 00:29:20,900 --> 00:29:26,400 Bottom line, this stuff is quite practical and can be considered to be used today in hybrid 286 00:29:26,400 --> 00:29:31,640 mode. And the other thing I haven't mentioned is the hybrid modes. You have here ECDHE and you 287 00:29:31,640 --> 00:29:38,240 have here New Hope plus ECDHE, you run both in parallel. So very close to ECDHE, so the cost of 288 00:29:38,240 --> 00:29:45,000 New Hope. And the same thing with Frodo and Frodo plus ECDHE here. So you, so running the 289 00:29:45,000 --> 00:29:50,320 hybrid, which is the recommended way to go for a while, because you want the security of the 290 00:29:50,320 --> 00:29:57,980 classical system today with the protection against future quantum computer you want it now. And it 291 00:29:57,980 --> 00:30:07,020 doesn't cost you too much to have it. So it's a similar diagram with signatures. Also don't care 292 00:30:07,020 --> 00:30:13,040 about the numbers too much, but the clustering. We see that comparing here Picnic and RSA for the 293 00:30:13,040 --> 00:30:17,400 signature, just because that was the only algorithm available in OQS when we did that. That's 294 00:30:17,400 --> 00:30:20,300 pre-submission. And, um, I'm not sure if you can see it, but I'm not sure if you can see it. 295 00:30:20,300 --> 00:30:26,600 Yeah, so Picnic's more expensive, has a very big certificate, but at the end of the day, when you 296 00:30:26,600 --> 00:30:35,480 plug it in the real world, TLS, it's really not that bad. Okay, now most interesting, more 297 00:30:35,480 --> 00:30:42,960 recent work, the TLS 1.3 integration. So TLS 1.3 was officially released yesterday. And we 298 00:30:42,960 --> 00:30:50,280 already got it working in OQS, did that overnight. It's, you know, we've been doing a lot of 299 00:30:50,300 --> 00:30:57,220 work on the draft specs and the draft code, and this is the integration we did in OpenSSL 1.1 and 300 00:30:57,220 --> 00:31:03,980 beta 4. Um, so it's really nice to work with TLS 1.3. I'm just going to put all the information 301 00:31:03,980 --> 00:31:10,000 right there. Because it's a way nicer protocol, state machine is cleaner, so it's easier to, to 302 00:31:10,000 --> 00:31:14,880 deal with integration points. In particular, the key shares, that's where you put all the crypto 303 00:31:14,880 --> 00:31:20,280 information that you exchange. And it already supports hybrid with, with the, with the, with the 304 00:31:20,280 --> 00:31:25,160 pre-shared key, PS key and, and ECDHE. So there's already these mechanisms to negotiate 305 00:31:25,160 --> 00:31:32,120 multiple keys, which is nice that we can use. Um, the base spec, consider everything curves, 306 00:31:32,320 --> 00:31:36,340 because they only use elliptic curves. So we have to cheat and call ourselves curves, that's 307 00:31:36,340 --> 00:31:40,740 what we do to define new algorithms. But I figure that's going to be fixed at some point and 308 00:31:40,740 --> 00:31:46,020 somebody will write extensions, probably want to retrograde, retrofit RSA in there. I'm sure 309 00:31:46,020 --> 00:31:50,260 some people will do that. So, somebody will define, will agree at some point on the, on the, on the, on the 310 00:31:50,280 --> 00:31:56,660 post-quantum, uh, official ways to integrate. So right now, just to test and prototype, we just 311 00:31:56,660 --> 00:32:03,760 call ourselves curves. And, uh, we tested that in the NGX, uh, web server, just because Apache 312 00:32:03,760 --> 00:32:09,760 didn't support TLS 1.3 on the master branch when I tried that. But this web server did. Also, you 313 00:32:09,760 --> 00:32:15,100 can use curl to, to do your tests. And everything works. And the details are also on this, uh, 314 00:32:15,280 --> 00:32:17,080 open quantum safe wiki page. 315 00:32:20,280 --> 00:32:28,560 Alright. I wanted to, uh, how am I doing on time? Let's see. Oh, good. Um, I guess I'll 316 00:32:28,560 --> 00:32:34,520 finish the presentation first and now I'll get to the demo afterwards. So, a little bit about hybrid 317 00:32:34,520 --> 00:32:43,360 scenarios. Um, I've been talking about the key exchange hybrid and there are multiple ways to go 318 00:32:43,360 --> 00:32:47,900 about it. So the first one, the one that we have implemented is called the naive implementation. You 319 00:32:47,900 --> 00:32:53,140 essentially just do the classical key exchange and the post quantum one independently and then 320 00:32:53,140 --> 00:32:57,860 you just mix the results, you concatenate the results, feed that into the key derivation 321 00:32:57,860 --> 00:33:04,880 scheme. You just need to give a new name to this algorithm as a combo scheme, so you define a 322 00:33:04,880 --> 00:33:12,640 new, like a new identifier for that and then you can call it in your library. There are more 323 00:33:12,640 --> 00:33:21,440 advanced proposals out there, one by White and one by Stabila. They have different pros and 324 00:33:21,440 --> 00:33:27,240 cons, one that supports multiple key shares, you could mix classical and a lattice scheme and a 325 00:33:27,240 --> 00:33:33,100 code base scheme and like a multivariate scheme all in there to edge your bet. That's the 326 00:33:33,100 --> 00:33:37,300 roulette here, to edge your bet you don't have to pick a number, you can pick a color or a 327 00:33:37,300 --> 00:33:42,620 series of numbers, so to be safer. The other one is more advanced, it's called the 328 00:33:42,640 --> 00:33:48,960 more of a dual, just two schemes. And I did not implement that in this integration just 329 00:33:48,960 --> 00:33:53,880 because OpenSL was not ready, it didn't even support multiple key shares at the time, which is 330 00:33:53,880 --> 00:34:01,100 needed by the base spec, so when they do and we can take that code and upgrade it and do more 331 00:34:01,100 --> 00:34:10,500 advanced hybrid schemes. For PKI it's, we haven't done that yet, but it's a bit future work. 332 00:34:10,720 --> 00:34:12,540 It's also not as urgent. 333 00:34:12,640 --> 00:34:16,960 Because for key exchange, as I said, you can record the traffic now and decrypt it later, so the 334 00:34:16,960 --> 00:34:21,660 attack is valid today. For breaking the authentication, it's an active attack, so you need 335 00:34:22,720 --> 00:34:28,980 somebody to be able to break your signature or forge your certificate during the lifetime of the 336 00:34:28,980 --> 00:34:34,140 certificate. So let's say the certificate is valid for a year, so if we have quantum computer in 337 00:34:34,140 --> 00:34:42,620 ten years, in nine years we'll care about that. But we're starting to think about it, so in a year or two we'll probably have a solution to it. 338 00:34:42,640 --> 00:34:48,800 And the question is how do you convey two signatures in the TLS exchange, so do you have two 339 00:34:48,800 --> 00:34:55,130 certificates, do you have a certificate with two public keys, one in an extension, do you use the TLS 340 00:34:55,800 --> 00:35:02,320 extension mechanisms to provide a second public key, multiple ways to go around it, about it, and this 341 00:35:02,320 --> 00:35:08,540 paper is a good overview of all the problems that needs to be solved in that case. But as I said it's 342 00:35:08,540 --> 00:35:11,280 not as urgent for hybrid deployments today. 343 00:35:12,880 --> 00:35:20,980 But there are performance measures with TLS 1.3 that was run just on this machine, on local host between the 344 00:35:20,980 --> 00:35:28,640 client and server, just to get ballpark figures, so nothing's optimized, but just to get the ballpark. 345 00:35:28,720 --> 00:35:34,260 And that's with the schemes that were in OQS, some of the schemes. So we see again that the 346 00:35:34,260 --> 00:35:42,460 lattice, the ring version of the lattice performed very well, very comparable to ECDHE, which is the 347 00:35:42,640 --> 00:35:50,320 orange baseline. And when you remove the ring assumptions you get something like Frodo and it's not 348 00:35:50,980 --> 00:36:00,480 as efficient, but more trusty, more trustiness in it. And something like Entru, something like 349 00:36:00,480 --> 00:36:06,240 Psyc, which is really nice because it's very comparable to elliptic curves, the closest thing we 350 00:36:06,240 --> 00:36:11,600 have to elliptic curves, it can be a drop in replacements and a lot of protocols that assume 351 00:36:11,600 --> 00:36:12,620 elliptical curves. So we're still not sure about that. So we're going to have to wait and see. So we're 352 00:36:14,380 --> 00:36:21,920 unfortunately they don't perform as well. And for signatures we get the expected Q-Tkl1 lattice 353 00:36:21,920 --> 00:36:34,440 scheme, performs very well, as well as ECDSA with P256 and Picnic, it's simpler 354 00:36:34,440 --> 00:36:42,600 assumptions in a way, hash functions and performs just a bit slower than RSA. You can see that this is just 355 00:36:42,620 --> 00:36:48,120 a lot of work in TLS because it's an important protocol. We also did other 356 00:36:48,120 --> 00:36:57,940 integrations. One is SSH. SSH has another protocol. I mean it's similar to TLS in 357 00:36:57,940 --> 00:37:03,040 spirit. So you can go in and replace the crypto parts with the post quantum ones and it's 358 00:37:03,040 --> 00:37:12,600 another exercise that we did. And the latest software that we have is a fork of open SSH 7.7 359 00:37:13,040 --> 00:37:19,540 uses the key exchange algorithms in OQS. So the more we have and refresh that fork then the 360 00:37:19,540 --> 00:37:25,180 more algorithms we'll have in there. And it supports post quantum and hybrid modes for the 361 00:37:25,180 --> 00:37:31,020 key exchange only. No signatures yet. So I don't want to spend too much time on that because 362 00:37:31,020 --> 00:37:36,020 it's a little bit similar ideas. But you can check it out in our fork if you want to try it. 363 00:37:38,420 --> 00:37:42,600 So another interesting integration point that we have is open VPN. So this is a 364 00:37:42,620 --> 00:37:51,000 fork. So unlike other VPN solutions, open VPN uses TLS for its security. So which is nice. And 365 00:37:51,000 --> 00:38:00,560 it uses open SSL so we can use open SSL fork to protect the VPN exchange. And so we have a fork of 366 00:38:00,560 --> 00:38:05,540 open VPN that allows you to test the key exchange algorithms and use either RSA or 367 00:38:05,540 --> 00:38:12,600 Picnic certificate. So what's nice about that is that for a long time, we've been using open 368 00:38:12,600 --> 00:38:15,240 VPN for a long time. So it's available in the future. There's going to be applications that 369 00:38:15,240 --> 00:38:19,480 will never be updated, or it's going to take a long time to be updated. So there's gonna be a 370 00:38:19,480 --> 00:38:28,640 long tail set of applications that will not be quantum safe for a long time. So what you can do 371 00:38:28,640 --> 00:38:35,100 is just have your classical software running and just wrap it in a VPN post quantum VPN tunnel. 372 00:38:35,100 --> 00:38:39,920 channel. So then you don't have to touch the applications and you can just secure the channel 373 00:38:40,520 --> 00:38:50,220 and you get great protection against quantum computers in a centralized manner. So we tested 374 00:38:50,220 --> 00:38:55,380 that, for example, we built a client, a Raspberry Pi and Windows clients communicating with 375 00:38:55,380 --> 00:39:03,200 Azure VM, Linux VM and to do that also have your, did a little experiment. You have your 376 00:39:03,200 --> 00:39:08,740 mobile phones connect to an access point and then that thing calls your web services or post 377 00:39:08,740 --> 00:39:13,220 quantum VPN. So don't have to change the phone, don't have to change your applications. It's 378 00:39:13,220 --> 00:39:21,640 very cheap and easy way to achieve that. And that project is available also on our get up page. 379 00:39:22,080 --> 00:39:29,340 And you're welcome to try it. Another integration that we did was in hardware to see if we 380 00:39:29,340 --> 00:39:33,180 could actually write these post quantum libraries. So I'm going to show you how to do that. 381 00:39:35,140 --> 00:39:39,160 So we have a lot of different applications in secure hardware. So we partnered with UltimaCo, 382 00:39:39,480 --> 00:39:49,080 tried it on one of their HSM and essentially we just using their reference implementation of 383 00:39:49,080 --> 00:39:55,460 Picnic and compiled it for the HSM. A little bit of engineering there and then got it to work. 384 00:39:55,640 --> 00:40:00,700 Able to issue Picnic root certificates on the device and be able to issue end users RSA 385 00:40:00,700 --> 00:40:03,180 certificates and everything worked. So we have a lot of different applications. So we've got a lot of 386 00:40:03,200 --> 00:40:08,260 training works as expected and the details of that there can be found in the Picnic NIST submission. 387 00:40:08,500 --> 00:40:15,900 So if you're interested. So all this goes through to say that we've, post quantum cryptography 388 00:40:15,900 --> 00:40:22,280 is just cryptWorld algorithms. It's nothing fancy about it, it's just things that we've not 389 00:40:22,280 --> 00:40:26,720 studied for 20 years so they're new. But other than that it's just regular algorithms that can 390 00:40:26,720 --> 00:40:33,020 be integrated across all software stack and hardware. So at this point it's a matter of us in community 391 00:40:33,020 --> 00:40:33,180 of RSA. So using Joula and coming up with an interesting solution. So hopefully that's a big one. 392 00:40:33,180 --> 00:40:38,220 and if any of you have software that relies on cryptography, you can take these things and 393 00:40:38,220 --> 00:40:43,980 starting with the open quantum safe project and try to integrate it and see what breaks. So we 394 00:40:43,980 --> 00:40:55,680 want to see what breaks and know you as owner of crypto software, you want to see if you put 395 00:40:55,680 --> 00:41:00,100 these new algorithms what's going to break so you can be agile and be able to change it when 396 00:41:00,100 --> 00:41:04,260 it's ready. Not today, but in ten years when you'll have to change then you'll want to be 397 00:41:04,260 --> 00:41:09,520 ready and it's a good thing to try now and you can give feedback to these crypto designers. 398 00:41:09,700 --> 00:41:15,140 This competition is quite new, it's recent so these algorithms will be able to update 399 00:41:15,140 --> 00:41:21,500 themselves before the final. So if we find out that just by changing these properties, reduce 400 00:41:21,500 --> 00:41:25,720 the bit size by one or two, it's going to fit this application, it's good feedback for the 401 00:41:25,720 --> 00:41:30,080 designers of these algorithms. And hybrid solutions, important to know. So if you're 402 00:41:30,100 --> 00:41:35,180 thinking about using quantum computers, you have one thing to consider. And because it's cheap 403 00:41:35,180 --> 00:41:40,560 way as we've seen with TLS, it's not a big impact. But it could have a great protection for 404 00:41:40,560 --> 00:41:47,840 future proofing your data against quantum computers. And also centralized solutions like 405 00:41:47,840 --> 00:41:53,520 having a post quantum VPN allows you to get a blanket protection without modifying your legacy 406 00:41:53,520 --> 00:42:00,080 applications or touching all your applications today. So that's that. I'm going to switch to 407 00:42:00,100 --> 00:42:09,640 the TLS demo. I'm going to run it on local host because, you know, DEF CON. So I will not 408 00:42:09,640 --> 00:42:15,480 communicate with a real web server. But everything is real code running here. I apologize, it's 409 00:42:15,480 --> 00:42:26,660 very small. So let's see. I'm going to try to type and hold the mic at the same time. So what 410 00:42:26,660 --> 00:42:30,080 the first thing I'm going to do, this is in our open SSL demo. So I'm going to do a little bit of a 411 00:42:30,100 --> 00:42:35,880 fork. The first thing I'm going to do is generate a certificate. You can't really read, but it's 412 00:42:35,880 --> 00:42:41,020 the standard open SSL tune, the request tool to generate a certificate. The only thing that's 413 00:42:41,020 --> 00:42:49,060 different is I'm requesting a Q-Tesla key. All the rest is standard open SSL. So there it goes. 414 00:42:49,560 --> 00:42:59,020 It's very fast, as expected. Let me just print out the certificate. Okay. It looks like an RSA 415 00:42:59,020 --> 00:43:05,980 size key. Some postcode algorithms will just scroll a few screens until it ends. But Q-Tesla is a 416 00:43:05,980 --> 00:43:12,660 very compact scheme and very efficient being a lattice one. The key also works pretty well. So 417 00:43:12,660 --> 00:43:22,900 now I'm going to just start a server. So it's the S server tool specifying the certificate. Q-Tesla 418 00:43:22,900 --> 00:43:29,000 one. That's SRT and Q-Tesla key. And asking for TLS 1.3. Okay. So I'm going to do a little bit of a 419 00:43:29,020 --> 00:43:35,560 search. All right. There we go. And now on the other console, I'm just going to have the 420 00:43:35,560 --> 00:43:44,340 client. It's going to ask for Frodo. So it's going to be a Frodo key exchange with the 421 00:43:44,340 --> 00:43:48,940 authentication that's going to be provided with Q-Tesla. So it's a fully post quantum key 422 00:43:48,940 --> 00:43:56,580 exchange and authentication transaction. And it's going to talk to the port here. So there you 423 00:43:56,580 --> 00:43:59,000 go. It goes to the exchange. Got the certificate. All right. So now I'm going to go to the 424 00:43:59,000 --> 00:44:02,680 server. You're going to have to believe me what's written here because it's not very clear. 425 00:44:02,840 --> 00:44:12,760 But signature Q-Tesla one and the server. Oh, I actually asked for the hybrid. P256 here. So 426 00:44:13,760 --> 00:44:22,100 that's the hybrid scheme. So I did ECDHE with P256 curve and using Frodo. And we get TLS 427 00:44:22,100 --> 00:44:28,980 1.3 connection. So now let's try to deploy that to the server. So I'm going to go to the server. 428 00:44:33,260 --> 00:44:41,340 So I'm going to copy these certificates. I said copy Q-Tesla dot star into my NGINX configuration 429 00:44:41,340 --> 00:44:57,280 directory. It's asking for my password. First try. Very nice. So let me just 430 00:44:57,280 --> 00:44:58,980 see if I can do this. Okay. Okay. Okay. Okay. Okay. Okay. Okay. Okay. Okay. Okay. Okay. 431 00:45:11,840 --> 00:45:18,160 So I'm going to just look at the NGINX configuration. And we can see here I'm specifying the 432 00:45:18,160 --> 00:45:25,900 Q-Tesla certificate as the SSL certificate. And then the last line SSL protocol CLS 1.3. So 433 00:45:25,900 --> 00:45:27,600 I'm just going to start it. 434 00:45:38,540 --> 00:45:48,760 all right. The web server now is running and I'm just going to repeat my client call. Same 435 00:45:48,760 --> 00:45:54,380 thing so establish the communication and then we can make sure that the HTTPS connection 436 00:45:54,380 --> 00:46:01,820 works. I'm just going to get the default web page, get slash and I get the HTML welcome page 437 00:46:01,820 --> 00:46:11,100 back. All this calling from a TLS 1.3, post quantum client to TLS 1.3, post quantum server. 438 00:46:11,380 --> 00:46:17,380 Everything works well and you can deploy that and have fun today in hybrid mode. And get 439 00:46:17,380 --> 00:46:22,220 protection against the quantum computers that might be built in ten years or might actually 440 00:46:22,220 --> 00:46:24,280 been built in some very dark room. 441 00:46:24,380 --> 00:46:34,540 And very powerful organizations. So that completes the talk. I'll be happy to answer 442 00:46:34,540 --> 00:46:36,180 questions if you have any.