Thanks for that great introduction yeah I'm a senior research scientist at Sandbox so I'm in the quantum security group so as a company we do lots and lots of things quantum simulation optimization but yeah I'm here today to talk to you about the security aspect of things so yeah this whole talk is going to be about post quantum cryptography so I'm just going to give you a like a rundown of what's what's happened in the the landscape of post quantum and then give you some what's happening in the real world how people are experimenting with post quantum crypto and some of the projects that are being developed and then some of the projects that are being developed and been going on within standardizations with governments what tools we have that are post quantum secure so yeah just a quick primer on post quantum cryptography this is the only slide that has any quantum algorithms involved so this is like the good the bad and the ugly so we have Shor's algorithm we have Grover's algorithm both of these give us really cool speed ups in quantum hardware so we have an exponential speed up of factoring integers this obviously requires a large fault tolerant quantum computer and using this algorithm we actually break almost all of our public key crypto online that we use so this breaks RSA this is the integer factorization problem this breaks elliptic curve cryptography which requires a discrete algorithm problem Grover's algorithm is slightly different it affects our asymmetric uh schemes so this is something like AES or cha-cha this doesn't affect uh cryptography as much um basically it means we need to double the size of our implementation so if we're looking to get 128 bits secure we need to use AES 256. so that's how we that's how we fix that issue um but we're sure Shor's algorithm we need a whole revamp of the uh the asymmetrical schemes that we use um in our day-to-day lives so what we want really is a new method for public key encryption or a way in which we share a key and we need a way to do authentication again so some sort of signature scheme as well so the main thing that has been going on in this area is the NIST post-quantum standardization process so this began in 2016. NIST had a call for submissions in which they gave a list of uh things that they would like to see in this post-quantum effort 82 submissions were submitted and for the first round 69 of these were accepted so in the beginning some of these were either withdrawn or attacked so some weaknesses were found but in the end uh yeah 69 were accepted um and as the as as we see the progression uh of the years going by we see like a second round third round um basically NIST asks for more scrutinization on specific things so in the first round we might have seen more scrutinization on the crypt analysis the hardness problems the maths but the second and third rounds were more focused on how these schemes perform in the real world so the the code size the how how many operations per second we're getting how big are the keys um how does it perform in TLS for example so recently uh in July this year they um gave us the results so we got the first standards first set of standards so we got um a key encapsulation mechanism or a chem and we got three signature schemes so um four other schemes were put forward into like a fourth round um so they require a bit more scrutiny on the the hardness problems that they use and in uh and next year in this that we're also asking for more proposals for signature schemes so there'll be lots of different types of other um yeah and as well as NIST um we have um other standards bodies as well that are sort of following or have explicitly said they're going to follow what NIST have said so you're talking about the the German BSI um and see the French um standards bodies as well they recently said uh in in French we're happy with the selection of candidates that NIST have made um and even some of them also support alternatives or those that weren't selected by NIST so there's schemes called Frodo chem and classic McAleese which haven't been selected as standards yet but they like them because they're very very conservative um they're they're just not performing enough for for NIST um it's also worth noting that China um have their own post-quantum standards so they've been selected for about a year or two now and um so yeah we have we have some of those as well um so yeah you might be wondering like why uh why we need to worry and I think Mark had a had a slide on this as well a while ago so this is what we call the store now decrypt later problem so if you transition to post-quantum cryptography and you want your um your data to be secure for a certain period of time if you're if the practical quantum computer comes along before those two periods um like added together then you're gonna have um a vulnerable data um sensitive data that might be um readable by a bad actor or a government or yeah anybody that has access to a quantum computer so this is really important for companies that are trying to provide um patents or ideas that they might have that go into drugs or or financial transactions and things like that so um yeah you need to you need to worry about this not because we might see a quantum computer in 30 years but now we need to worry because people might call encrypted traffic um wait for it to be um readable by using algorithms paired with a computer so the standards that we have so um there were two main standards that we got out of the four these were both based on lattice-based cryptography so these were called crystals kyber and crystals dilithium um and yes they are related to Star Wars and Star Trek um so kyber is the chem and dilithium is the primary signature scheme um so the lattice-based cryptography is akin to a problem where if I give you a matrix A and a vector B where B equals A times S plus some noise vector uh find S um this is a very difficult problem this is a problem that quantum computers also find difficult as well as classical computers and it's equivalent to finding a short vector in a lattice the good thing about these two schemes is that they have their code bases um significantly overlap you can kind of see them as brother and sisters of each other um so when it comes to implementations and and designing instruction sets and things like that we might see a real push towards uh making these much more uh performant and yeah on different platforms different architectures uh Etc yeah so kyber was selected and dilithium was selected by this this is a quote from them um basically saying we really like these because they've been heavily studied uh over the last few decades the hardness problems um and they have really good performance overall in software and hardware and there's also been quite a lot um quite some look at this from side channels as well um and other kryptonite analytic tools um so yeah it's got a strong theoretical security basis and also it's really um good overall performance compared to some of the other schemes so there are two other signature schemes as well uh one of these is called Falcon and it's also based on matter space cryptography uh it has a slightly different performance profile so it's um it's very complex to implement so that might be one of the reasons why it wasn't selected as the primary candidate um but it um it has a lot of pros as well so the signature size is significantly smaller so when it comes to use cases where you have more constrained bandwidth then this scheme could be your preferred signature scheme and I think this is why it was chosen with dalitium because the lithium doesn't work for every every use case um and yeah it also has Fast verification so in a use case like a smart card for example we might see Falcon, a post-quantum implementation on smart cards, for example, and other use cases where you might need fast verification. Yeah, and also we have Sphinx Plus. So the other three schemes that were selected are lattice-based, and NIST didn't want to put all their eggs in one basket, so they wanted another hardness problem that was also post-quantum, and Sphinx Plus gives us this. It's based on the hardness of cryptographic hash functions. It doesn't really fit all use cases, a bit like Falcon, but it's got a solid conservative security, and yeah, I think this also has quite a lot of other use cases as well where we might prefer Sphinx, for example. So how do these schemes compare with each other? The Sphinx signature scheme is the biggest one there. No, it's not. It's dilithium. But yeah, you can see Falcon there is significantly smaller. But yeah, this is sort of the size we're looking at. Dilithium is fast, but it's, yeah, as I said, it might be a bit too large for some applications. And yeah, Sphinx Plus is very secure, but has a large signature. I don't know why it's not there. But yeah, this is just a comparison of some of the schemes that we have as candidates. So yeah, the schemes that were selected this year, they're going to be about one to two years' time. We're going to have to wait until they're actually formally written as standards, but we do have post-quantum standards. Okay. And I think we're going to have to wait for the next Sphinx to come out. These are the ones that were a bit more similar to Sphinx at the moment, but these weren't in the process because they slightly go out of the bound of what this we're looking for initially. But these are called stateful hash based signatures. These are quite similar to Sphinx, but they have slightly more nuance involved in their implementation and design. So these are, yeah, these are called XMSS and LMS. So you can find these under IETF RFCs. RFCs and they also go into they've also been adopted into this special publication yeah some there's some nuances in these designs so they require careful state management and thus they can only sign like a limited number of messages and so you really have to be careful when you when you do the implementations of these I believe there is in this document just describing how to do state management they are they're quite relatively slow compared to like the latter space schemes but they are standards now so if you really wanted to you do post quantum signatures now you can use these and be and use this the NIST standards so as I said we might see more scheme standardized in the future so NIST have some chems that have gone into a fourth round and they're also opening up more signature schemes in the future so what we have in the fourth round is we have four schemes yeah so one of these is Psyc which is a super singular isogeny based key exchange mechanism this was quite liked by the community I think because it's a key exchange mechanism it's a key exchange mechanism this was quite liked by the community I think because it's Psyc which is a key exchange mechanism this was quite liked by the community I think because it's used some similar maths to elliptic curve cryptography but very recently there have been quite a few attacks on these and they've almost been not wiped out but it's gonna be hard to see if they actually come back with fixes for the attacks I have a slide on this later on the other three are based on code based cryptography so that's using the maths of error correcting codes. These give quite nice nice key exchange mechanisms. So they're called Byte, Case, QC, and Classic McAleese. I think NIST just really wants some more scrutiny, some more analysis on the performance of them, and just to see if they need to, they've got these as a future standard. And next year, we're also going to see more submissions for signatures. There's been quite a lot of research on post-quantum signatures in the last few years. Really kind of cool, exciting ideas. So one of these is using what we call MPC in the head. So this is using multi-party computation. For example, there was a scheme actually in the competition called Picnic. NIST decided not to go with Picnic into like a fourth round. I think they saw some of the other research that has happened recently and thought they might have better submissions that are similar to Picnic. So that's going to be really exciting. And also, we get isogeny-based signatures as well. They can be quite slow, but if we get some more orders of magnitude sort of optimizations, they could be really interesting alternatives to Latinx. And so we're going to see how these things work. So yeah, the attack that was on Psyche. So this was very recently. I don't think the community yet has really got its head around this. Like, the nuances involved in the attack. But a lot of the experts in this niche field have all said they sort of believe the attack works. They... They... Yeah, they sort of validate that the attack works. There's some values here just to give you an idea of how devastating the attack was. So the Psyche P434 is like the 128-bit version. That's sort of breaking in about 10 minutes to an hour. And then the higher security levels originally, like, took maybe a weekend or a day or two. And then I think recently, they've cut that down using some more optimizations in the attack. So there's some really cool results there. I encourage you to look at that as well. There's some really nice ideas in that attack. And also, we had another signature scheme called Rainbow, which used multivariate quadratic equations to... As a hardness problem. This was also recently solved, recently sort of attacked. It wasn't as devastating as the Psyche one, but it did shave off quite a lot of the bits of security. So in particular, the 128-bit secure parameters were cut down significantly. I think the designers tried to move the parameter set up to cover that attack, but it still not... It still wasn't good enough. And NIST decided not to select this and move it forward. And yeah, the title of the paper that breaks it suggests you can do it in a weekend on a laptop. So yeah, these two attacks, they were recent. They were in the last two or three months, both of them. Some people can see these two things as not having trust in post-quantum crypto. But I think it shows that what the community are doing works. NIST had so many calls where they asked for more cryptanalysis and more scrutiny, and we finally have that. So it's good that we had that before it was made a standard. And you could kind of argue that these candidates were put in, were, you know, they made it to round three, which is like the last round before we got it in. these standards as finalists and alternatives and you could kind of argue that they were there so that we would scrutinize them more so we could have yeah um so yeah i mean nests have also said this in publications as well these problems were understudied so although the the psych attack was quite a surprise um having um results on crypt analysis for these hardness problems is not surprised because they're all relatively new hardness problems so how do you begin to sort of plug and play with these post-quantum candidates some people might be a bit skeptical about using post-quantum they might not believe in the quantum threat as much even with the storm out equipped later attack some people yeah they might not feel as secure using post-quantum when they're using the quantum threat as much um even with the storm out equipped later attack um some people yeah they might not feel as secure using post-quantum when they're have used elliptic curves and rsa for decades um and how do you deal with with trying to convince people that they they need to do this so um there is an approach that works for everyone basically so there's what we call hybrid algorithms or the hybrid approach so it's basically where we have a us standard so rsa or elliptic curve cryptography and we generate a um a shared secret for that and we also use a shared secret from a post-quantum chem of your choice um i'd obviously go with one of the the standards that we have uh that we've been given last month um so you generate both of these shared secrets and you concatenate these and use that as the one secret so this this is uh good for two reasons it's um it complies with uh u.s standards it complies with fit chips it complies with uh yeah the nest uh standards so you're still complying um and you're also you also need to break both uh chems in order to define that the entire shared secret so you can be secure in a post-quantum world and you can be secure even if your chem has let's say a weakness in the future you've still got rsa or elliptic curves to sort of back you up there yeah this is uh basically what i just said um so yeah you need to break both of these um shared secret mechanisms in order to to to find the overall shared secret and this is the technique that's actually being adopted by most if not all companies or protocols or yeah using this in the real world i go on to talk about this a bit later so yeah as i said most people are looking for hybrid so there's one example, i can think of, that is not actually going to go with the hybrid approach as far as i know the nsa have said this a few times that they're going to go with a strict post-quantum solution approach which has led to a bit of disagreement in the community it'll be interesting to see if they if they continue to sort of spread this , of go with that strategy and recently this year the the White House have also said everybody every federal agency needs to get ready for this transition to place quantum they've called all the agencies to find out where they use quantum vulnerable cryptography whether that's in data at rest or data at transit just so that they know what to transition what to migrate so yeah that's everything on the on the primer so I think I've kind of tried to build up a bit of a foundation there so you can sort of see where post quantum is being used in the real world but yeah as you as I'm sure you know public health is a very important part of this and I think it's important to keep cryptography is used everywhere in our day-to-day lives on the internet offline on our phones on all of our devices so you're looking at certificates VPNs TLS secure emails SSH all of these use cases they need to be transitioned to post quantum there's loads of others as well end-to-end encryption network infrastructure big data clouds and yeah everything will need to be transitioned but the important thing to realize is this is not a drop in you can't just pull out elliptic curves and drop in and post quantum everything needs to have a holistic approach or an ad hoc solution and yeah there's lots of different ways this is this are being addressed in the community so yeah I think it's important to understand that one thing that I perhaps didn't make clear already is that post quantum has a performance drawback I think we got really lucky with elliptic curve cryptography we have really fast implementations really small bandwidth small keys and this is definitely not going to be the case of place quantum so the way we deal with that in protocols such as TLS is going to be really interesting the ITF especially are working on lots of different working groups and we're trying to address specific problems that come with post quantum so yeah there's lots of work on TLS one proposal is called chem TLS which does TLS essentially without any handshakes signatures just using the chems themselves and yeah things that chems require that we've got differently from elliptic curves so so I think that's really important that we get a lot of information out of that and then things like that that chems require that we've got differently from elliptic curves so The Diffie-Hellman paradigm is something we have essentially lost, so this non-interactivity that we get from Diffie-Hellman key exchange, which was foundational in, for example, the signal protocol. Chems are interactive, so these really don't drop in and replace Diffie-Hellman. So, yeah, there's been research that I've looked into post-quantumizing the signal protocols, especially the double ratchet that's in the signal protocol itself. Yeah, and more secure, like internet, so we have more. More and more projects that the ITF are doing, so they're doing some really cool work. So, one thing that we will have to deal with when we use post-quantum is more fragments in TLS or in IKE. So, there's one core project that's looking to have an intermediate exchange, so this will help deal with more of the fragments. And this effectively borrows ideas that we're trying to... For denial of service, so effectively what we're doing with post-quantum is doing like a mini denial of service, so this is trying to help both things at the same time. Yeah, so more work on SSH, and we also have like, yeah, the open SSH have also integrated post-quantum as standard, as by default. They've gone with a scheme called Entry Prime, which is... Which is not selected by NIST as a standard, I don't know why, they might go with Kyber at some point in the future, but yeah, open SSH is post-quantum by standard now, using the hybrid approach, and yeah, some more VPNs work as well, so on WireGuard and open VPN, I looked into their schemes recently, and they were using Rainbow and Psych. One was using Rainbow, one was using Psych, but obviously it's in a hybrid setting, so it's kind of okay, but I hope they fix that at some point in the future. Yeah, more work on SQL email, OpenPGP. Yeah, I mean, there's loads and loads of stuff going on, there's loads of other standards bodies looking into this as well, the ITU, for example. And we're integrating this into things like Thunderbird as well. So that's kind of cool, X509, so yeah, there's lots of stuff going on here, and yeah, as I said, the stateful hash-based signatures are a standard, so we can begin to use these, and actually, although they're kind of tricky to implement, they have some really cool use cases where they're really suited, so software updates and secure boot are really ideal for their schemes, actually. So if you really wanted to, you could start using these in the real world. Yeah. Another use case that's kind of, we're considering is vehicle-to-vehicle communications. So one thing that's really key with them is the bandwidth restriction. So they were... As a lot of other products had been designed around the low bandwidth you get with elliptic curves, so one thing we're going to have to deal with in vehicle-to-vehicle is the fragments, basically. So we've had some work by one of our colleagues looking into how we deal with fragments, trying to get those down by using some optimization techniques so that cars don't start crashing into each other. So if we use post-quantum. So yeah, that was kind of a quick overview of how post-quantum is being used in the real world. There's some things, as I said, that we haven't really got at the moment. So I just thought I'd have a slide here going on like a wish list of what we might really want to see now that we have a KEM and a signature scheme that we can use. So, yeah. The non-interactivity that we got with ECTH gave us a lot of simplicity, but it was really ingrained in a lot of our protocols. So if we can come up with a way to have a non-interactive key exchange using a post-quantum paradigm, that would be ideal. I think the scheme that was broken, Psyc, kind of gave us that. We had a SIDH. But yeah, that was attacked. So I don't know if we can do this. I don't know if we can do this with other schemes like lattices and codes, but it might be something to look into. We have other protocols such as noise, which heavily relied on Diffie-Hellman as well. There have been proposals for post-quantum noise using KEMs, but I think they take quite a hit on performance. So whether we can gain that back somehow is another open problem. And similarly with the Diffie-Hellman, we have password-authenticated key exchange. And hack. And can we get a better performance with that protocol as well? DNSSEC has also a lot of restrictions, thanks to elliptic curves, small signatures, and vast verification. Can we do this in a post-quantum way? Or can we change? I don't think we can change this. And the same thing for the quick network protocol as well. So yeah, there's lots of open problems here. As well as like... Using post-quantum in blockchains. There's a recent study that said 25% of all Bitcoin are potentially vulnerable to a quantum attack, which is a lot of money. So this needs to be addressed. Post-quantum needs to be integrated into this. And how you do this, how you migrate to an inherently distributed system is a question that needs to be answered as well. So yeah, that was quite a heavy talk. I think I've gone a bit fast. But I hope what you take away from this talk is that, yeah, keep cryptographic agility in mind when you want to look to the migration to post-quantum. This will significantly ease the process, especially when it comes to things like cryptanalysis or just using different standards. So we have four standards now. They all have their own use cases. This is where they can be used. And if you have cryptographic agility, you can easily plug and play and use different schemes for different use cases. And also beware of not using NIST standards or NIST candidates, at least. So using other schemes that haven't been scrutinized by the community, I'd be very worried about doing that. And yeah, I mean, we've had some attacks. And don't be surprised. We don't see any more. This does mean that things are working. We're, as a community, we're working towards making secure implementations of post-quantum. There's some things that we still haven't looked at as much as AES or elliptic curves. Side channels, for example. Secure implementations. How this affects performance is also a problem that needs to be solved. And yeah, like I said, cryptanalysis attacks are expected and positive. I think, in my opinion. So yeah, it will take time as well. So I think we're looking at getting standards for these four schemes in the next couple of years. I'm sure we'll see some more scrutiny by then. Especially when it comes to what parameters we select for these schemes. And integrating this into the real world, into every use case that we need it for, is going to be a long process. Five to ten years, at least. Yeah, it's a long path. But there's lots of really smart people looking at this. So yeah, I wouldn't worry. I think that's everything I wanted to say. But I've got loads of time for questions. Thank you very much. Yeah? Just the whether they're using elliptic curves or the RSA is just going to be vulnerable to quantum attacks. So, yeah. . . . . The only thing, I mean, I haven't read all the literature on this, but I think they just have faith in the schemes that they've selected, that NIST have selected. I don't know why they're going with that. They're not the most open people, so yeah, I don't know. Sorry. Yeah. How long until a quantum computer? I think there was a study recently that I think 15 years, maybe. I think lots of researchers think that there'll be a quantum computer by 30 years. I think there's a survey on this. I can't think of who did it, but there is research on it. They basically asked... Well, physicists, when do you think there will be a quantum computer? Sorry? I'm not a quantum physicist. Yeah, I wouldn't be surprised, 15, 20 years, I'd say. Yeah. Yeah. Yeah. Yeah. Yeah. Yeah. Yeah. Yeah. Yeah. Yeah. Yeah. Yeah. Yeah. I think it depends on what they're proposing. So if you're going with a key sharing or a signature scheme, it's best to go through the traditional route of being a NIST candidate. But when it comes to maybe a protocol design, for example, you might want to rework TLS to suit post-quantum, for example. Then you can go through an IETF RFC, so you can propose a protocol change and then have scrutiny that way. So there are different ways to become a standard, but it depends on the paradigm, I guess. It does depend on signatures or chems, but it could be like three to four times. You're looking at like, yeah, four or five fragments at least in like a TLS or something. But on the other side, I mean, the computation time is quite fast for some of the latter schemes, so they kind of make up for it that way. But yeah. I think I'll... Oh, yeah, okay. Okay. Okay. so yeah the blockchain question I'm not 100% sure yeah sorry with the yeah with the so why China are doing it differently also not 100% sure but I can give you my two cents I think yeah they want a bit of control they want to be in charge of their own standards and they're not the only ones to do this so Russia have their own standards not place quantum but like they have in general they have their own standards Korea have their own standards yeah I'm not I'm not sure if China finished like it really depends on if you want to like sell stuff in the US if you want to sell like security products in the US you have to like use them as standard so I don't know if they'll all follow the the China like if the Chinese company wants to yeah um just maybe they're just going against the grain um sometimes they like some uh I can't remember which country it was that proposed a block cipher but it was very very similar to AES so they might and the the standards that China did end up going with are very similar to so um yeah um there's that so yeah um so uh will we need post quantum hardware acceleration um yes um yeah I mean you see that for all the standards we have now AES elliptic curves um uh so we you can kind of see that at the moment so I mean with the hash function for example so they all need hash functions in inside of them so um some even some implementations you can see that as as a bottleneck um in the implementation so having an instruction for that um so they use a uh the echar3 for in the in the process so having some more having speed ups for that is going to be um a good way to speed up the overall scheme um generating randomness as well um how they do that is going to be a key like way to speed things up or um a lot of the the candidates that were selected latter space uses NTT multiplication it's a different way to to multiply polynomials so um you can come up with a like an instruction to do that for example that would be also another way I think if you I think if you've got it you should you could you should use it but um you don't always have a GPU to to use um but yeah it would be it'd be super cool to see like how how fast they could get with like you know using a big percentage of the GPU or or something like that yeah yeah thank you um um um um um um so basically whether we should start experimenting with qkd and post quantum and yeah um i think that could be a good sort of academic um project or i i've seen quite a lot of research on this as well um it's um yeah qkd is um i don't know if it will ever become sort of an industry standard or uh something the governments will like allow or or encourage at least because nsa i know um ncsc they're not really interested in qkd so whether yeah i don't know how that would work after that sort of um strategy or that sort of saying after they've said that so um but as like as a concept or it has its use cases i think like finance for example or telecoms or i see lots of telecommunications companies use uh experimenting with qkd so yeah i think they sort of naturally go hand in hand post quantum and qkd so um yeah i think they could go quite well together um especially for the authenticated channel um so yeah i think it's definitely worth looking at i can't imagine someone of this hasn't gone to elliptic coast um yeah that's probably a good yeah it's probably a good thing to do um i just struggle to understand what their infrastructure looks like without yeah yeah do they still use sha1 um , yeah i mean um yeah like cryptographic agility like gives us some really cool ways to to migrate so like you can do like it can sort of be agnostic to post quantum as well like crypto agility on its by itself is like a really cool concept i think yeah it gives you a way to transition to anything like even if you want to get off sha1 like you could use cryptographic agility as well so so yeah yeah i think that's probably the most important thing to be able to think about okay i'm gonna stop thanks thanks everyone you