1 00:00:00,000 --> 00:00:00,520 All right. 2 00:00:00,520 --> 00:00:01,880 Welcome back, everybody. 3 00:00:01,880 --> 00:00:08,600 Our next talk will be Sarah McCarthy giving her talk on QuantumSafe Instantaneous Vehicle-to-Vehicle Communication. 4 00:00:15,000 --> 00:00:15,960 Hello. 5 00:00:15,960 --> 00:00:17,380 Thanks for having me here. 6 00:00:17,380 --> 00:00:20,120 This is my first DEF CON, and I'm enjoying it so far. 7 00:00:20,120 --> 00:00:22,100 I'm meeting very interesting people. 8 00:00:22,320 --> 00:00:29,220 So I'm from the Center for Secure Information Technologies, which is part of Queen's University Belfast, Northern Ireland. 9 00:00:29,220 --> 00:00:34,740 And today I'm going to talk about an aspect of our research into practical QuantumSafe cryptography. 10 00:00:36,880 --> 00:00:44,120 So, as Christian Paquin explained yesterday, there's a requirement for the establishment of QuantumSafe cryptography. 11 00:00:44,120 --> 00:00:49,500 So I'm going to reintroduce this topic and the motivations for our research. 12 00:00:49,600 --> 00:01:01,800 I will then introduce identity-based encryption, which is an advanced cryptographic primitive, and then describe our software design aimed at constrained devices, such as vehicle-to-vehicle communication. 13 00:01:01,800 --> 00:01:05,660 I do have a demo, but it wasn't showing up on the screen, but we can give it another go. 14 00:01:07,000 --> 00:01:18,320 So currently, cryptography is underpinned by hard mathematical problems, such as integer factorization and the discrete log problem, and these are infeasible to break with current computing. 15 00:01:19,220 --> 00:01:23,540 However, in 1984, Shor's algorithm was proposed. 16 00:01:23,660 --> 00:01:31,980 And when this is run on a quantum computer, it can solve integer factorization and discrete log problem within a feasible amount of time. 17 00:01:32,840 --> 00:01:43,020 Therefore, if a quantum computer comes along, our primitives that we use today, such as RSA and elliptical curve cryptography, which are based on these problems, will be broken. 18 00:01:44,120 --> 00:01:52,100 There's also Grover's algorithm, which was proposed in 1996, and it threatens the symmetric key primitives. 19 00:01:52,100 --> 00:01:56,780 However, we can evade this algorithmic attack by doubling the key sizes. 20 00:01:57,320 --> 00:02:04,640 So, symmetric key cryptography is safe for now, but public key cryptography will be dead under the realization of a quantum computer. 21 00:02:06,320 --> 00:02:17,640 In response to this, researchers are looking at replacing traditional problems with more complex problems, such as lattice-based, code-based, multivariate-based, hash-based, and misogyny-based. 22 00:02:17,640 --> 00:02:20,220 These are all different branches of mathematics. 23 00:02:20,860 --> 00:02:26,960 There are many community efforts into this quantum-safe cryptographic research. 24 00:02:26,960 --> 00:02:35,360 For example, standards bodies in the US and Europe, NIST and Etsy, are looking towards standardizing quantum-safe primitives. 25 00:02:35,580 --> 00:02:41,180 Google trialed a quantum-safe key exchange in its Chrome browser in 2016. 26 00:02:41,620 --> 00:02:48,960 European projects, such as SafeCrypto, have been looking at practical implementations of quantum-safe primitives. 27 00:02:48,960 --> 00:03:03,500 There is an annual conference, PQCrypto, which brings together academics and researchers from industry every year, and government bodies, such as the National Cyber Security Center in the UK, are also looking at quantum-safe cryptography. 28 00:03:05,180 --> 00:03:20,280 To further emphasize the threat, here are some news articles and headlines that have been out in the past couple of years, and it's about researchers are both building quantum computers and protecting against quantum computers. 29 00:03:20,900 --> 00:03:27,000 So, quantum computing power can be measured in qubits, and the number of qubits attained is increasing. 30 00:03:27,180 --> 00:03:36,280 However, Andrea's talk on Thursday indicated that over 4,000 qubits are required to factor a 2048-bit number using Shor's algorithm. 31 00:03:36,740 --> 00:03:41,360 If we look in March 2018, Google only reached 72 qubits. 32 00:03:42,080 --> 00:03:47,400 We have a long way to go, but we argue we need to be thinking about this problem today. 33 00:03:47,560 --> 00:04:03,940 For example, if we put a satellite into space today, it's going to need to be secure for 40 to 50 years, and if a quantum computer comes during that time, the security which it relies upon will be broken, and they won't be able to be used. 34 00:04:03,940 --> 00:04:22,940 The Moscow inequality conceptualises this, so if we set X as a desired lifespan of the security of the product, Y the research and development time of the crypto, and Z the time until the realisation of a quantum computer, if X plus Y is less than Z, there is time to act, 35 00:04:22,940 --> 00:04:25,520 but if it's more than Z, it's going to be too late. 36 00:04:25,700 --> 00:04:29,420 So, it's important to look at quantum-safe alternatives today. 37 00:04:31,360 --> 00:04:38,520 So, lattices, or lattices, are the one of the contenders for quantum-safe cryptography. 38 00:04:39,380 --> 00:04:48,720 They were first introduced in 1996, and they have many advantages, making them the leading contender of quantum-safe alternatives. 39 00:04:49,360 --> 00:05:06,900 We have efficient, they're known for their efficiency, understanding of the hardness of their underlying problems, and their ability to be extended to advanced primitives such as identity-based encryption, which is when the user's public key is based on its public ID, 40 00:05:06,900 --> 00:05:11,480 or homomorphic encryption which allows computation on encrypted data. 41 00:05:11,960 --> 00:05:17,600 So, this is a two-dimensional lattice defined by basis vectors B1 and B2. 42 00:05:17,600 --> 00:05:24,960 Every vector in the lattice can be expressed as a linear combination of its basis vectors with integer coefficients. 43 00:05:25,400 --> 00:05:43,240 Hard problems around lattices, such as finding the shortest vector in the lattice, or the closest point in the lattice to a given point in the space, are these problems upon which we can base our cryptographic primitives, as they're known to be infeasible to be broken by a quantum computer. 44 00:05:44,460 --> 00:05:55,860 So, lattices allow for cryptographic agility, they have mathematically hard problems, and they have shown promising efficient implementations which are competitive with traditional crypto use today. 45 00:05:56,460 --> 00:06:06,240 However, they have large key sizes in comparison to traditional crypto, for example, over one megabyte compared to 256 bits. 46 00:06:06,340 --> 00:06:15,660 They're also vulnerable to side channel attacks because lattices utilize a lot of bespoke components which are not used in crypto today. 47 00:06:15,660 --> 00:06:23,620 So, we're basically reinventing the wheel when it's coming to protecting against power analysis, timing attacks, and fault attacks. 48 00:06:24,160 --> 00:06:31,300 The underlying mathematical theory is still relatively new, and it's still undergoing major cryptanalysis. 49 00:06:31,300 --> 00:06:40,840 For example, we can introduce structure to the lattices in order to increase the efficiency of the schemes. 50 00:06:40,840 --> 00:06:48,520 However, as of yet, there are no known vulnerabilities, but this has not been proven that it doesn't introduce a security risk. 51 00:06:50,380 --> 00:06:59,380 In 2016, NIST announced the transition to quantum safe public key cryptography for suite B of its recommended algorithms. 52 00:06:59,400 --> 00:07:07,660 They invited the research community to submit public key encryption schemes, digital signature schemes, and key encapsulation mechanisms. 53 00:07:08,220 --> 00:07:23,240 So, in the first round, lattices accounted for over one third of the submissions, and NIST selected the most promising candidates to go through to the second round, and those who didn't make it were dropped due to a lack of confidence in their security or inefficiency. 54 00:07:23,420 --> 00:07:28,200 But by the second round, lattices accounted for almost one half of the candidates. 55 00:07:28,760 --> 00:07:35,360 And additionally, they're the only family to have submissions in round two in all three types of schemes. 56 00:07:35,940 --> 00:07:40,640 So, this reinforces our confidence and assurance in lattices. 57 00:07:42,560 --> 00:07:51,560 Identity based encryption removes the need for a large scale public key infrastructure by using the user ID as a public key. 58 00:07:52,120 --> 00:07:56,080 So, here's a diagram showing identity based encryption scheme. 59 00:07:56,080 --> 00:08:00,600 The key generator generates master public and private keys for the whole system. 60 00:08:00,760 --> 00:08:07,760 And the extractor uses a user's ID to generate a private user key for them. 61 00:08:08,160 --> 00:08:15,720 If Alice wants to send a message to Bob, all she needs is Bob's public ID and the master public key to encrypt the message. 62 00:08:15,720 --> 00:08:20,400 She then sends it to Bob, and Bob can decrypt using his private user key. 63 00:08:24,690 --> 00:08:31,950 The advantages of identity based encryption include there's no need for the sender to obtain a certificate. 64 00:08:31,950 --> 00:08:35,430 Therefore, they can send a message more instantaneously. 65 00:08:36,330 --> 00:08:41,670 Timestamps can be combined with identity to accommodate key refresh and reification. 66 00:08:42,710 --> 00:08:46,670 There's no need for preregistration of a user onto a database. 67 00:08:47,230 --> 00:08:56,030 They can be extended to further primitives, such as signatures, broadcast encryption, key agreement, and public key encryption schemes with keyword search. 68 00:08:56,030 --> 00:09:07,270 They also mitigate the need for a trusted certificate authority and decryption capabilities can be delegated, for example, to temporary devices or to members of staff within a workforce. 69 00:09:08,570 --> 00:09:17,090 However, there's danger of key escrow as the center authority has access to all private keys and therefore can decrypt any message. 70 00:09:17,830 --> 00:09:22,810 Communication channels from the central authority are required to be secure. 71 00:09:23,610 --> 00:09:29,690 Key reification could add complexity, for example, if a key needs revoked before its expiry date. 72 00:09:30,130 --> 00:09:36,850 And there's a requirement to check the uniqueness of user IDs to prevent two users obtaining the same private key. 73 00:09:40,240 --> 00:09:48,020 So, today, IBE is used for commercial solutions focusing on email and file encryption. 74 00:09:48,180 --> 00:09:53,460 It's also suitable for closed networks, such as sensor networks. 75 00:09:54,060 --> 00:10:02,540 And the UK emergency services currently uses the Etsy standardized Tetris scheme for its communications. 76 00:10:02,540 --> 00:10:11,440 And since 2018, it has used the elliptical curve based IBE scheme due to the instantaneous communication capabilities. 77 00:10:12,920 --> 00:10:18,420 And today, we consider the use of instantaneous communication required for vehicle to vehicle. 78 00:10:18,420 --> 00:10:23,140 However, these applications currently are all non-quantum safe. 79 00:10:25,040 --> 00:10:33,000 So, I'm now going to show an animation to show how identity-based encryption can be used for vehicle to vehicle communication. 80 00:10:36,690 --> 00:10:43,570 So, as an example, consider two autonomous cars in constant contact with the 5G network. 81 00:10:43,610 --> 00:10:51,670 The key generator produces the private key of each user by using its already established unique user identity. 82 00:10:51,690 --> 00:10:54,530 In this case, the license plate of the car. 83 00:10:54,970 --> 00:11:03,290 If the green car wants to send a message to the blue car, it only needs to know the blue car's license plate and the master public key. 84 00:11:03,570 --> 00:11:06,910 And the license plate guarantees its authenticity. 85 00:11:07,490 --> 00:11:13,230 Only the blue car can decrypt this message using the associated private key. 86 00:11:13,710 --> 00:11:23,310 Similarly, if the fleet manager wants to send a message to all cars in the system, it simply needs their identities and does not need to maintain a database of public keys. 87 00:11:26,070 --> 00:11:32,910 The first lattice-based IBE scheme with practical parameters was proposed in 2014. 88 00:11:33,510 --> 00:11:40,970 And it used special structured entry lattices to reduce the key sizes, which are between two and four kilobytes. 89 00:11:41,210 --> 00:11:47,430 And a lattice sampler which samples short vectors within the lattice to create the private information. 90 00:11:47,610 --> 00:11:54,230 And then proved upon the quality of this, therefore, it outputs shorter lattice vectors, making it more secure. 91 00:11:55,450 --> 00:12:04,250 So, all encryption and decryption operations take approximately one millisecond on a moderately powered laptop and it can also be extended to a digital signature scheme. 92 00:12:05,790 --> 00:12:15,290 In 2017, my team proposed algorithmic and software design optimizations to bring the scheme even more within the realm of practicality. 93 00:12:15,310 --> 00:12:27,930 These included use of the number theoretic transform, parameter recommendations, bronze modular GCD, Barrett reduction, the cumulative distribution table sampler and the tiny SHA3 hash function. 94 00:12:28,010 --> 00:12:32,930 We also focused on making it constant time in order to mitigate side channel attacks. 95 00:12:34,010 --> 00:12:36,450 So, here are some of our performance results. 96 00:12:36,450 --> 00:12:42,110 I'd just like to highlight the 80-bit security level and the 190-bit security level. 97 00:12:42,890 --> 00:12:46,410 So, how does this compare to existing implementations? 98 00:12:47,150 --> 00:12:55,610 Well, in comparison to the proof of concept implementation of the original paper, you can see massive performance gains, particularly in the encrypt and decrypt components. 99 00:12:57,850 --> 00:13:05,350 And in comparison to traditional IBE schemes, well, this first one, Cox, is based on quadratic residues. 100 00:13:05,350 --> 00:13:11,850 However, its extract is much quicker than ours, but the large ciphertexts render it impractical. 101 00:13:12,650 --> 00:13:25,070 The Bowen-Franklin scheme is based on pairings on elliptical curves, and as you can see, we improve upon its extract function, and our encrypt and decrypt greatly improve upon both schemes. 102 00:13:26,430 --> 00:13:41,670 So, we have obtained promising software results, and the encrypt and decrypt has also been implemented on a microcontroller, such as found in the engine control unit of cars, and the results of this were two orders of magnitude faster than pairings-based. 103 00:13:42,970 --> 00:13:51,710 And the fast results allowed for instantaneous mission-critical push-to-talk applications, and emergency and real-time communications. 104 00:13:52,370 --> 00:13:55,210 And the input identifier is flexible. 105 00:13:55,210 --> 00:14:01,910 It can be a MAC address, an email address, a unique ID number, anything that you want. 106 00:14:02,190 --> 00:14:05,310 So, I do have a demo, but it wasn't showing up on the screen. 107 00:14:05,310 --> 00:14:15,050 So, if anyone wants to come up and see it after, and it's not showing up, you're very welcome to come, and it involves some, like, interaction. 108 00:14:15,050 --> 00:14:16,270 So, it's quite fun. 109 00:14:16,350 --> 00:14:33,210 So, basically, it shows how quickly our identity-based encryption scheme can work, and how, if we change the user identity, then it can, if you send messages to its old identity, they won't be able to decrypt. 110 00:14:34,430 --> 00:14:42,570 So, thank you very much for your time, and I'd just like to give some acknowledgments to my colleagues and former colleagues who have helped with this work. 111 00:14:42,570 --> 00:14:43,490 Thank you. 112 00:14:44,850 --> 00:14:48,850 All right, and now the floor is open for questions. 113 00:14:48,850 --> 00:14:56,910 If you have questions, just line up here in the middle portion of the room and ask your question. 114 00:14:59,690 --> 00:15:00,730 Anyone? 115 00:15:01,290 --> 00:15:02,510 All right. 116 00:15:03,210 --> 00:15:04,150 Thanks, Sarah. 117 00:15:04,150 --> 00:15:04,910 Thank you.