start	end	text
0	4720	All right everybody, thanks for being here. We're going to kick off our next talk with speaker
4720	11580	Christian Paquin and he'll be covering migrating to quantum safe crypto to protect against the
11580	24140	quantum hacker. All right, thank you very much. Thank you. I'm very happy to be back this year
24140	33240	to discuss our progress towards migrating to post-quantum cryptography. The work I'm
33240	40480	presenting today is in collaboration with a lot of people, some in my team at Microsoft Research,
40480	46560	also with some other organizations, but for this particular work has mainly been done with
46560	53840	Douglas Sibila at University of Waterloo. So I don't know if you remember, or some of you
53840	61380	might not have been born, 20 years ago when South Park introduced these very weird characters,
61380	68460	little gnomes, and they went around and they had a plan to make money, a kind of an interesting
68460	75220	business plan. They would go around steal people's underpants and then with some unknown way they
75220	83000	would try to make a profit. I'll get back to these guys later. But on an unrelated note, also something
83000	88880	that happened 20 years ago is that I started to study quantum computing in my graduate studies
88880	97160	at the University of Montreal. It was a fascinating subject and I kind of abandoned it. I came back to it
97960	104920	a few years ago, this time not trying to use quantum computing but trying to defend against it.
106540	115600	Because I'm sure you all know that... was that not on before? Okay, so I'm sure you all know that
116160	121340	quantum computers, although they would be fantastic for the field of algorithmics,
121340	124820	you can solve a lot of problems more efficiently, for the world of cryptography
124820	132920	it's really bad news. Because a quantum computer would break due to Shor's algorithm.
133300	140080	It would break RSA and DSA elliptic and BCDH and all the elliptic curve variants
140820	147680	essentially because it can solve the underlying mathematical problems on which these schemes are
147680	155000	based. Namely they can factor and find a discrete log of numbers very efficiently in polynomial time.
155400	162280	What does that mean? It means that a quantum computer would break all the public key crypto
162280	169680	we use today. And by that what I mean is that it would break HTTPS, TLS, it would break SSH,
169680	175810	would break peer-to-peer communication messaging systems like Signal, break certificates,
176300	180720	software update channels, and bitcoins. If somebody has a quantum computer it could steal
180720	186720	all the bitcoins. And there's another algorithm that's important in quantum computing it's called
186720	193240	the Groover's algorithm. It affects hash functions and symmetric primitives like AES,
193240	199480	but that's not a big problem. We can just double the key sizes, the hash sizes, and we're fine.
199480	205810	Shore is really the main problem here. And there's a wide spectrum of
208960	214820	estimates of when a quantum computer will be built. Some people say it will never be built,
214820	221640	some people say it's going to be done in five years, but there's a wide consensus in academia
221640	227280	and experts that say a specialized quantum computer could be built within a decade or two to break
228400	235540	RSA. So that means that we need to start thinking about migrating to quantum-safe cryptography.
236340	242940	So quantum-safe cryptography or post-quantum crypto is not cryptography that runs on a
242940	250140	quantum computer. It's a type of algorithmic schemes, cryptographic schemes that run on
250140	255460	normal computers, but for which we know no way to break them with quantum computers.
257020	264720	So I get asked often, like, why do we care now? Why don't you just tell me a year before the
264720	269840	quantum computer is going to be built and then we're going to scramble and rush to fix everything
269840	276660	like we did for Y2K a year before? That's a valid argument. The problem is that the data we encrypt
276660	284520	today on the web is at risk. It is at risk of being captured now, stored for a couple of years,
284520	292000	and then decrypted. So if you're sending important data, trade secrets, or if you're a
292000	297900	whistleblower and sending confidential information, then if this data can be decrypted in 10 years and
297900	304460	ruin your life, then you need to start protecting it differently today. Another problem is that
304460	308540	once we're ready to transition, it's going to take a long time to change the standards.
308540	315340	TLS, SSH, all these things will take years to update. And consequently, also, it will take
315340	321300	some time to update the software stack, all the code. There's this notion of crypto agility
321300	328220	to program your software to be able to replace algorithms. We've done that many times,
328220	333880	replacing MD5 with SHA-1, SHA-1 with SHA-256. So we're used to that, but you'd be surprised
333880	339520	how many places RSA is just hard-coded in some code bases. So it might be hard to transition
339520	345900	some software stacks. And also, these new algorithms, they don't necessarily function
345900	351640	like the old ones. Some of them have huge keys, they run slower, so it might have a critical
351640	358020	impact on some software. Bottom line, if you have data that needs to be secured in 10 years,
358020	362160	all these steps backwards, we kind of need to do that today.
364040	367820	We're back to these guys now. So now they have a new idea how to make money.
367860	372560	They don't need to collect underpants anymore. They can simply collect ciphertext,
372560	377540	wait a few years, and then they can turn out a profit when they have access to a quantum computer.
379220	384780	Fortunately, on the crypto side, we're on top of things. So NIST, the National Institute of
384780	392900	Standards and Technologies, they started this effort to provide new standards to replace RSA
393660	404100	and ECDH and all these things. They started in 2017. They asked the community to propose new
404100	411620	schemes. There were 69 accepted schemes that were submitted. And in January of this year,
411620	418580	they started round two. So Thanos happened and a bunch of these just got snapped away.
418580	424480	And then some more got merged together because they were very similar. And now we're left in
425820	434920	right here with 26 schemes. And we're two weeks away from a workshop organized by NIST where the
434920	439760	submitters will discuss these round two candidates, what updates they did in the second round.
439760	446640	And if all goes well, then within three to five years, NIST is going to publish some new standards.
446760	455000	So it's coming up fairly soon. So our goal is to experiment with these new schemes and see what's
455000	461520	the impact on the software we use today. So this project was started by the University of Waterloo
461520	468180	and we joined along with other many collaborators to create a framework in which you can integrate
468180	473800	your new crypto schemes. And in turn, we can take these and integrate them in higher level software.
474700	480300	So the open quantum safe project is an open source project. It's available at this URL.
480720	485700	Our goal is to integrate all the round two schemes. We're on the way of doing that. And
486380	493380	we also have integrations into open SSL, open SSH, and also open VPN, which allow you to try
493380	498760	and deploy these things, experimenting with post-quantum cryptography.
498940	505580	What's new, what we did this year, is we kind of completed the roadmap of all the use cases.
505580	511140	So we can do full post-quantum and also the hybrid case, classical plus post-quantum,
511140	518020	and both the key exchange and the authentication, the signature part, for both TLS 1.3 and SSH.
518460	523360	We also have 1.2 support. I'll talk about it in a second, but it's not as complete.
523380	528830	And we also implemented wrappers, so you can use the library from C++, C Sharp, or Python.
531200	539880	So using this framework, we did some case studies and analysis of different ways you can plug in
539880	548660	these algorithms in our target protocols, SSH and TLS. So we just released a paper describing this.
549820	552920	It's going to be presented at the NIST workshop in more details.
554780	559700	And we also have an extra collaborator on the paper, Eric Crockett from Amazon,
559700	565700	who provides also some insight from their S2N SSL integration.
566840	570540	And I will present a few results from this analysis
572040	578220	to give you an idea of what is entailed when you try to migrate to post-quantum cryptography.
579080	585620	So first, I mentioned this before, but we support what we call hybrid deployments.
585840	591000	So hybrid means that if you take a post-quantum algorithm, you don't want to transition to it
591000	598500	right away. You don't want to dump RSA and start using a picnic signature, because these are fairly
598500	607520	recent. RSA has been there since 76. There's been a lot of cryptanalysis done on it, so we don't know.
607520	613080	These post-quantum algorithms may be broken in five years, not even by a quantum computer,
613080	618220	but maybe by a classical computer. Maybe there's a flaw in the algorithm that we haven't seen.
618800	627580	So how to achieve more safety is to combine a classical algorithm with a post-quantum one.
627580	633760	So you take, let's say, PCDH, and you combine it with a Psyche algorithm,
633760	640340	and then you create a new one. And the resulting communication will be secure if any of the two
640340	646400	is secure. So if there are no quantum computers, then you're safe. You have your elliptic curve
647540	651520	defilement. And if there is a quantum computer, then your communication will still be secure
652080	655220	because you would have protected with a post-quantum one.
656960	662240	So TLS, SSH, they already have this notion of negotiating algorithms. The client sends
662240	667020	its support list, and the server responds. They negotiate which algorithm they'll pick.
667220	671880	But we don't have a way to pick two algorithms at the same time and combine them. So that's
671880	677300	where we have to work. And there are multiple ways to do that in the list in the paper.
679240	684960	The simplest one is just to create a new scheme. It's like, you know, P&J sandwich. You know,
684960	689740	peanut butter and jelly and just combine. It's the new thing. It's P&J. So the same thing,
689740	694340	we can take a classical algorithm, a post-quantum one, combine them, and that's a new thing.
694400	698600	The great thing is that this is backward compatible. So when you say I support these
698600	703320	algorithms, you just name the new one, which is a combination of both. And if the other
703320	710780	peer supports it, you can have this exchange that provides extra security. And there are a bunch of
710780	716900	more advanced ways to negotiate the two algorithms separately. And they're a bit more complicated.
716900	724580	They require protocol changes and might affect a few items. And the things that you need to take
725280	730260	to care about when you design these is, okay, how is it going to affect backward compatibility,
730260	737100	performance? Because, for example, in TLS 1.3, when the client sends its first message to request
737100	742620	communication, it has the ability to precompute some data. So assuming you're going to pick ECDH
742620	748060	is a precomputation for this exchange. But if I'm going to send three proposals and I have to
748060	753740	compute pre-calculations for each, I'm consuming data, the data is bigger. So we don't want to
753740	762880	introduce too much more problems or more data, increase the bandwidth requirements, and we don't
762880	770600	want to add communication messages and affect the data flow too much. So these are all things that
770600	776060	we take in consideration. The first thing we've implemented and the one that we use for our
776060	779660	experiments is the first one I mentioned, the combo scheme, because it is the simplest to
779660	789260	implement minimal changes in OpenSSH and also doesn't affect backward compatibility. So it's
789260	799340	easier all around. So for the TLS use cases that we consider, we have some work in TLS 1.2. The
799340	808580	more recent work in TLS 1.3, the base protocol only supports elliptic curve type exchanges, ECDH.
809600	816840	RSA is not even there anymore. So we have to masquerade our algorithms as curves. So we
816840	824380	pretend to be an elliptic curve and then we can run. So we don't have to modify the stack.
824380	831280	And one problem is the size of these things. As I mentioned, some schemes have very large
831280	837360	public keys or very large encryption systems or signatures. And the protocol specifies a
837360	844620	maximum size. In this case, 2 to the 16 bytes for public key and 2 to the 24 for certificates,
844620	851400	for example. And some schemes are bigger than that, so they wouldn't fit. But also OpenSSL has
851400	857700	smaller limits. Because RSA is not that big. It's a main thing that's used. So they don't want to
857700	863300	provide this empty buffer where people could dust them. So they reduce this limit. So at some
863300	870360	places, we had to tweak, remove some of these limits in OpenSSL to be able to run our experiments.
872000	879080	OpenSSH is kind of similar. But it has a bigger limit. It's 2 to the 32. So all the
879540	886740	proposed round two schemes would fit there in theory. OpenSSH also has its internal limits
886740	893040	that we had to tweak to fit our algorithms at some places. And in this case, we support both
893040	900560	the client and server public key authentication. So it's kind of a full coverage of what we want
900560	905960	to achieve here. Just as a summary of what we tried,
905960	909860	is a table that shows for the key encapsulation. So the key exchange.
912500	916760	So as I mentioned at the beginning, the OQS slide, there were some algorithms that are in there,
916760	921460	some that are not. And there's no particular reason to why schemes are excluded other than
921460	924900	the fact that people involved in the project contribute their own schemes. And the other
924900	929560	ones we're trying to fill them by taking implementations that we can find by the
929560	934080	submitters. So at some point, we hope to have all the NIST candidates in that table.
936640	944000	Yellow checkmark here, for example, Frodo, has larger artifacts that we needed to tweak
944000	951480	OpenSSL internal limits to be able to fit in there. NTS, which is a code-based scheme here,
951480	963860	like Macleese also is a similar scheme, which had very large public keys, and we're not able
963860	970500	to fit them in the software. We had a problem. And the spec in theory would support that size,
970500	975500	but we were not able to make it work. So it's a good reason to try these experiments
976160	981120	in practice, because even in theory, you say the size should fit, there's some resulting,
981120	988660	there's a lot of code paths in the software that didn't work. For the signatures, we have a lot
988660	994760	more of these yellow boxes, meaning that we needed to augment the internal size in OpenSSL
994760	1002060	and OpenSSH to fit these large signatures or public keys. And we only had two failures,
1002060	1008100	picnic level three and five were expected, because the signature size were bigger than
1008100	1014680	what's allowed by the protocol. The round two version of picnic all fits, so they reduced,
1014680	1022960	they did some optimization that allowed picnic two to be used in TLS. And on the SSH side,
1022960	1027840	we had some failures with the rainbow, some more higher level parameter sets.
1028620	1040320	So now I'd like just to show you a quick demo of SSH. So if you know and use, if you know SSH,
1040920	1046500	that's going to look, it should look exactly as how you used to see it. So the only thing we did
1046500	1053400	is add these post-quantum algorithms and nothing is different. If you've never seen an SSH connection,
1053400	1060420	that's just going to look a little bit weird. Sorry for the unreadability of these consoles.
1061040	1066000	But what I'm starting on the right hand side is a server. It's expecting a
1067960	1081760	ECDHT with the NIST curve P384 combined with a psych algorithm. There it is. And on the left
1081760	1088080	hand side, it's going to be a client requesting the same algorithm. And I've put the debug output
1088080	1093200	there. So it's just to show something on the screen. Otherwise, it would just be nothing.
1093480	1099180	And we see the connection was successful. The authentication was done with the picnic
1099900	1108020	hybrid, the picnic signature, and also an ECDSA. So the point I'm trying to make here is that
1109380	1118260	we modified these software stacks, but they work exactly as you did before. They did before.
1118260	1124280	If you've deployed SSH before, one step that I skipped was the creation generation of the
1124280	1129980	key pair and added it to the authorized set on the server side. So it works exactly the same.
1130060	1135620	Which means that you can basically go out and try it and deploy it even.
1136480	1143720	So what's next? For us, is what we want to add more of the round two schemes,
1143720	1149980	the one we're missing. So we can have a full list of all the algorithms. And we want to do
1149980	1156400	some performance testing. We did some tests a year ago with round one candidates, and it was
1156400	1161200	very promising. The fast lattice schemes, for example, were competitive and sometimes even
1161200	1168860	faster than state-of-the-art ECDH. And some slower one, which might not be suitable for
1170880	1176340	multiple connections a second, like on an SSL server, could be great for more one-on-one
1176340	1183120	interactions in a messaging system or SSH. So you really have a broad choice of deployment options
1183840	1190380	if you're a system integrator. And we also want to tackle more protocols. There's all sorts of
1190380	1197360	things that needs to be made quantum safe. We want to start looking into that. And for you,
1197360	1203400	an interesting thing to consider is, are you working with projects or with software that
1203400	1209160	protects data, that needs to be secure for a couple of years, for 10 years? And if so,
1209160	1216380	you might want to start using post-quantum cryptography to protect this data,
1216380	1224020	either integrating in your code or using some of our forks and deploy them, SSH or VPN.
1224560	1230040	All right. So that's my time. Thank you for your attention. I'll be posting the slides
1231140	1235360	right after the talk. And I'm happy to take some questions. Thank you.
1235380	1244760	All right. Thank you. If you have questions, please come up to the human microphone. That is me.
1246880	1254180	Come on down. Can you come up and... thanks. Form an orderly line.
1256680	1262000	My question was just, obviously, I haven't looked at the GitHub repo yet, but did you
1262000	1271760	use the OpenSSL module API to build your provider? Or did you hack OpenSSL to extend it?
1272020	1274640	Yeah. The engine API you're talking about? Yeah.
1274720	1280860	Okay. So no, we didn't. So the engine API in OpenSSL, there's a way to provide an alternate
1281320	1285660	implementation. So if you have RSA and you implement RSA in hardware, you can create an
1285660	1292760	engine to plug it in. So since these were new algorithms unknown to OpenSSL, we add to modify
1292760	1298840	OpenSSL itself. And OpenSSL is in two layers, the crypto layer and the SSL layer. The crypto layer,
1298840	1304300	you could maybe get away with using the engine. But in the SSL layer, where you define specs
1305440	1308300	or specifications for the actual algorithms, that didn't work. So
1308980	1314660	we modified the code directly. We have a fork. You can see the diff between the original project.
1316040	1321800	I just have a question. I mean, obviously you're aware that IBM has actually created
1321800	1328540	the Q1 system, correct? Because I was at CES in January and that's where they showcased it.
1328540	1332140	And I don't know if you know anything about it, but knowing what it is, it's
1332140	1339060	legit. How do you think that's going to help your field of migrating regular, like what you were
1339060	1345180	talking about? How do you think that the creation of the IBM Q1 system will help? Maybe not you,
1345180	1352040	but like whenever they streamline it more, how do you think the creation of the IBM Q1 system
1352040	1357060	is going to help you and the people that come after you in this particular...
1357060	1362520	So yeah, so there's a lot of vendors that have work on quantum computing and provide specialized
1362520	1367160	chips. A lot of what's out today, the D-Wave system and some others, they're very specialized
1367160	1371740	and they're not general computers to do all these things. So the estimates I gave at the beginning,
1371740	1378720	10, 15 years, is the output of very serious quantum computer experts that took everything
1378720	1387900	in consideration, research, time, money invested, and they give a 50% chance to have something in
1387900	1393300	10, 15 years, including all this development. None of this is surprise work. You see the
1393300	1398420	scaling of quantum computer and we have to plan that pessimistically. If you're trying to defend
1398420	1404680	against it, then our mark is like 10, 15 years. I mean, I just wanted to get your opinion on
1404680	1409960	how you think, even though it might not be the Q1 system itself that helps you, like the later
1409960	1416440	iterations of quantum computing. Do you think that will just streamline the migration from regular
1416440	1426880	to PQC? I mean, it's like all this stuff, the migration doesn't use quantum computers at all.
1426880	1431180	We're just like, if they exist, they threaten what's in today and you need to migrate to this
1431180	1435660	stuff. So what's going to trigger this is NIST is going to do their, they're going to have new
1435660	1440000	standards and then the protocols will update. And what we're trying to kind of kickstart is
1440460	1444560	you might want to migrate before all that takes place, because that could be, you know, five,
1444560	1450820	seven years and all the data that you encrypt today until then is at risk to be decrypted later.
1450820	1456180	So if you want to migrate to something, a hybrid scheme, then that you have the tools to do that
1456180	1461800	today. Expecting that one of these systems, D-Wave, IBM, Microsoft is working on them,
1461800	1467160	Google, everybody has a quantum computing team that somebody will have a functioning one in,
1467160	1474820	you know, 10, 15 years. Hi, does any of the algorithm being evaluated
1475480	1480460	builds any potential application in an IoT environment where bandwidth, computational power
1480460	1488220	and latency are critical issues? Yes. So there's a lot of different flavors of algorithms.
1488460	1495240	Some are very big, very small, very slow, very fast. And some of them that might not be competitive
1497780	1503800	in speed with some other like fast lattice one, they will give them advantages to themselves
1503800	1508160	saying that, oh, we have very short keys. We fit in very small embedded systems.
1508160	1513760	So this is the selling point to some of these. And this said that they won't pick a winner.
1513960	1520220	They're more likely to pick a bunch of them for different use cases, including IoT,
1520220	1525200	which is a very important scenario. That's all the time we have for questions,
1525200	1529220	but hopefully you can be available afterwards outside. Yes, I can stay here.
1529220	1531680	All right. One more round of applause for our speaker.
1531680	1532640	Thank you very much.
