[00:00.000 --> 00:04.900] All right. Welcome back, everybody. Our next talk will be Sarah McCarthy giving her talk [00:04.900 --> 00:08.600] on QuantumSafe Instantaneous Vehicle-to-Vehicle Communication. [00:15.000 --> 00:20.200] Hello. Thanks for having me here. This is my first DEF CON, and I'm enjoying it so far. I'm [00:20.200 --> 00:25.660] meeting very interesting people. So I'm from the Center for Secure Information Technologies, [00:25.660 --> 00:30.540] which is part of Queen's University Belfast, Northern Ireland. And today I'm going to talk [00:30.540 --> 00:34.740] about an aspect of our research into practical QuantumSafe cryptography. [00:36.880 --> 00:41.960] So, as Christian Paquin explained yesterday, there's a requirement for the establishment [00:41.960 --> 00:47.660] of QuantumSafe cryptography. So I'm going to reintroduce this topic and the motivations [00:47.660 --> 00:53.580] for our research. I will then introduce identity-based encryption, which is an advanced [00:53.580 --> 00:59.520] cryptographic primitive, and then describe our software design aimed at constrained devices, [00:59.520 --> 01:03.740] such as vehicle-to-vehicle communication. I do have a demo, but it wasn't showing up on the [01:03.740 --> 01:09.600] screen, but we can give it another go. So currently, cryptography is underpinned by [01:09.600 --> 01:15.060] hard mathematical problems, such as integer factorization and the discrete log problem, [01:15.060 --> 01:22.140] and these are infeasible to break with current computing. However, in 1984, Shor's algorithm [01:22.140 --> 01:28.260] was proposed. And when this is run on a quantum computer, it can solve integer factorization and [01:28.260 --> 01:34.460] discrete log problem within a feasible amount of time. Therefore, if a quantum computer comes [01:34.460 --> 01:40.040] along, our primitives that we use today, such as RSA and elliptical curve cryptography, [01:40.040 --> 01:46.420] which are based on these problems, will be broken. There's also Grover's algorithm, [01:46.420 --> 01:52.820] which was proposed in 1996, and it threatens the symmetric key primitives. However, we can [01:52.820 --> 01:59.080] evade this algorithmic attack by doubling the key sizes. So, symmetric key cryptography is safe [01:59.080 --> 02:04.640] for now, but public key cryptography will be dead under the realization of a quantum computer. [02:06.320 --> 02:10.380] In response to this, researchers are looking at replacing traditional problems [02:10.380 --> 02:15.900] with more complex problems, such as lattice-based, code-based, multivariate-based, [02:15.900 --> 02:20.220] hash-based, and misogyny-based. These are all different branches of mathematics. [02:20.860 --> 02:27.940] There are many community efforts into this quantum-safe cryptographic research. For example, [02:27.940 --> 02:33.580] standards bodies in the US and Europe, NIST and Etsy, are looking towards standardizing [02:33.580 --> 02:39.580] quantum-safe primitives. Google trialed a quantum-safe key exchange in its Chrome browser in [02:39.580 --> 02:46.320] 2016. European projects, such as SafeCrypto, have been looking at practical implementations [02:46.320 --> 02:52.360] of quantum-safe primitives. There is an annual conference, PQCrypto, which brings together [02:52.360 --> 02:59.080] academics and researchers from industry every year, and government bodies, such as the National [02:59.080 --> 03:03.500] Cyber Security Center in the UK, are also looking at quantum-safe cryptography. [03:05.180 --> 03:11.360] To further emphasize the threat, here are some news articles and headlines that have been [03:12.320 --> 03:17.440] out in the past couple of years, and it's about researchers are both building quantum computers [03:17.440 --> 03:23.320] and protecting against quantum computers. So, quantum computing power can be measured in [03:23.320 --> 03:29.120] qubits, and the number of qubits attained is increasing. However, Andrea's talk on Thursday [03:29.120 --> 03:36.280] indicated that over 4,000 qubits are required to factor a 2048-bit number using Shor's algorithm. [03:36.740 --> 03:44.780] If we look in March 2018, Google only reached 72 qubits. We have a long way to go, but we argue [03:44.780 --> 03:50.160] we need to be thinking about this problem today. For example, if we put a satellite into space [03:50.160 --> 03:56.580] today, it's going to need to be secure for 40 to 50 years, and if a quantum computer comes during [03:56.580 --> 04:03.940] that time, the security which it relies upon will be broken, and they won't be able to be used. [04:03.940 --> 04:11.120] The Moscow inequality conceptualises this, so if we set X as a desired lifespan of the security [04:11.120 --> 04:16.800] of the product, Y the research and development time of the crypto, and Z the time until the [04:16.800 --> 04:23.380] realisation of a quantum computer, if X plus Y is less than Z, there is time to act, but if it's [04:23.380 --> 04:28.260] more than Z, it's going to be too late. So, it's important to look at quantum-safe alternatives [04:28.260 --> 04:38.520] today. So, lattices, or lattices, are the one of the contenders for quantum-safe cryptography. [04:39.380 --> 04:46.220] They were first introduced in 1996, and they have many advantages, making them the leading [04:46.220 --> 04:53.480] contender of quantum-safe alternatives. We have efficient, they're known for their efficiency, [04:53.480 --> 04:59.280] understanding of the hardness of their underlying problems, and their ability to be extended to [04:59.280 --> 05:04.180] advanced primitives such as identity-based encryption, which is when the user's public key [05:04.180 --> 05:10.400] is based on its public ID, or homomorphic encryption which allows computation on encrypted [05:10.400 --> 05:18.500] data. So, this is a two-dimensional lattice defined by basis vectors B1 and B2. Every vector [05:18.500 --> 05:23.620] in the lattice can be expressed as a linear combination of its basis vectors with integer [05:23.620 --> 05:29.980] coefficients. Hard problems around lattices, such as finding the shortest vector in the lattice, [05:29.980 --> 05:35.520] or the closest point in the lattice to a given point in the space, are these problems upon which [05:35.520 --> 05:41.720] we can base our cryptographic primitives, as they're known to be infeasible to be broken [05:41.720 --> 05:47.820] by a quantum computer. So, lattices allow for cryptographic agility, they have mathematically [05:47.820 --> 05:52.920] hard problems, and they have shown promising efficient implementations which are competitive [05:52.920 --> 06:01.100] with traditional crypto use today. However, they have large key sizes in comparison to traditional [06:01.100 --> 06:07.840] crypto, for example, over one megabyte compared to 256 bits. They're also vulnerable to side [06:07.840 --> 06:14.160] channel attacks because lattices utilize a lot of bespoke components which are not used in [06:14.160 --> 06:19.900] crypto today. So, we're basically reinventing the wheel when it's coming to protecting against [06:19.900 --> 06:26.420] power analysis, timing attacks, and fault attacks. The underlying mathematical theory is still [06:26.420 --> 06:33.940] relatively new, and it's still undergoing major cryptanalysis. For example, we can introduce [06:33.940 --> 06:41.960] structure to the lattices in order to increase the efficiency of the schemes. However, as of yet, [06:41.960 --> 06:47.360] there are no known vulnerabilities, but this has not been proven that it doesn't introduce a [06:47.360 --> 06:56.440] security risk. In 2016, NIST announced the transition to quantum safe public key cryptography [06:56.440 --> 07:02.840] for suite B of its recommended algorithms. They invited the research community to submit [07:02.840 --> 07:07.660] public key encryption schemes, digital signature schemes, and key encapsulation mechanisms. [07:08.220 --> 07:14.180] So, in the first round, lattices accounted for over one third of the submissions, and NIST [07:14.180 --> 07:18.580] selected the most promising candidates to go through to the second round, and those who didn't [07:18.580 --> 07:24.080] make it were dropped due to a lack of confidence in their security or inefficiency. But by the second [07:24.080 --> 07:30.120] round, lattices accounted for almost one half of the candidates. And additionally, they're the only [07:30.120 --> 07:38.000] family to have submissions in round two in all three types of schemes. So, this reinforces our [07:38.000 --> 07:45.640] confidence and assurance in lattices. Identity based encryption removes the need for a large [07:45.640 --> 07:53.820] scale public key infrastructure by using the user ID as a public key. So, here's a diagram showing [07:53.820 --> 07:58.820] identity based encryption scheme. The key generator generates master public and private [07:58.820 --> 08:06.940] keys for the whole system. And the extractor uses a user's ID to generate a private user key for [08:06.940 --> 08:13.920] them. If Alice wants to send a message to Bob, all she needs is Bob's public ID and the master public [08:13.920 --> 08:19.520] key to encrypt the message. She then sends it to Bob, and Bob can decrypt using his private user [08:19.520 --> 08:30.950] key. The advantages of identity based encryption include there's no need for the sender to obtain [08:31.090 --> 08:37.770] a certificate. Therefore, they can send a message more instantaneously. Timestamps can be combined [08:37.770 --> 08:44.450] with identity to accommodate key refresh and reification. There's no need for preregistration [08:44.450 --> 08:50.690] of a user onto a database. They can be extended to further primitives, such as signatures, [08:50.690 --> 08:56.030] broadcast encryption, key agreement, and public key encryption schemes with keyword search. [08:56.030 --> 09:01.270] They also mitigate the need for a trusted certificate authority and decryption capabilities [09:01.270 --> 09:07.270] can be delegated, for example, to temporary devices or to members of staff within a workforce. [09:08.570 --> 09:14.190] However, there's danger of key escrow as the center authority has access to all private keys [09:14.190 --> 09:19.710] and therefore can decrypt any message. Communication channels from the central [09:20.260 --> 09:26.570] authority are required to be secure. Key reification could add complexity, for example, [09:26.570 --> 09:32.110] if a key needs revoked before its expiry date. And there's a requirement to check the uniqueness [09:32.110 --> 09:42.320] of user IDs to prevent two users obtaining the same private key. So, today, IBE is used [09:43.020 --> 09:50.480] for commercial solutions focusing on email and file encryption. It's also suitable for [09:50.480 --> 09:56.900] closed networks, such as sensor networks. And the UK emergency services currently uses the [09:56.900 --> 10:05.220] Etsy standardized Tetris scheme for its communications. And since 2018, it has used [10:05.220 --> 10:11.440] the elliptical curve based IBE scheme due to the instantaneous communication capabilities. [10:12.920 --> 10:18.420] And today, we consider the use of instantaneous communication required for vehicle to vehicle. [10:18.420 --> 10:23.140] However, these applications currently are all non-quantum safe. [10:25.040 --> 10:30.900] So, I'm now going to show an animation to show how identity-based encryption can be used for [10:30.900 --> 10:40.590] vehicle to vehicle communication. So, as an example, consider two autonomous cars in constant [10:40.590 --> 10:48.290] contact with the 5G network. The key generator produces the private key of each user by using [10:48.290 --> 10:54.530] its already established unique user identity. In this case, the license plate of the car. [10:54.970 --> 11:00.010] If the green car wants to send a message to the blue car, it only needs to know the blue car's [11:00.010 --> 11:06.910] license plate and the master public key. And the license plate guarantees its authenticity. [11:07.490 --> 11:13.230] Only the blue car can decrypt this message using the associated private key. [11:13.710 --> 11:18.270] Similarly, if the fleet manager wants to send a message to all cars in the system, [11:18.270 --> 11:23.310] it simply needs their identities and does not need to maintain a database of public keys. [11:26.070 --> 11:32.910] The first lattice-based IBE scheme with practical parameters was proposed in 2014. [11:33.510 --> 11:39.510] And it used special structured entry lattices to reduce the key sizes, which are between two and [11:39.510 --> 11:45.310] four kilobytes. And a lattice sampler which samples short vectors within the lattice to [11:45.310 --> 11:50.130] create the private information. And then proved upon the quality of this, therefore, [11:50.130 --> 11:56.970] it outputs shorter lattice vectors, making it more secure. So, all encryption and decryption [11:56.970 --> 12:01.510] operations take approximately one millisecond on a moderately powered laptop and it can also [12:01.510 --> 12:10.030] be extended to a digital signature scheme. In 2017, my team proposed algorithmic and [12:10.030 --> 12:15.290] software design optimizations to bring the scheme even more within the realm of practicality. [12:15.310 --> 12:20.410] These included use of the number theoretic transform, parameter recommendations, [12:20.410 --> 12:25.730] bronze modular GCD, Barrett reduction, the cumulative distribution table sampler and [12:25.730 --> 12:31.210] the tiny SHA3 hash function. We also focused on making it constant time in order to mitigate [12:31.210 --> 12:37.430] side channel attacks. So, here are some of our performance results. I'd just like to highlight [12:37.430 --> 12:44.950] the 80-bit security level and the 190-bit security level. So, how does this compare to existing [12:44.950 --> 12:51.030] implementations? Well, in comparison to the proof of concept implementation of the original paper, [12:51.030 --> 12:55.610] you can see massive performance gains, particularly in the encrypt and decrypt components. [12:57.850 --> 13:03.610] And in comparison to traditional IBE schemes, well, this first one, Cox, is based on [13:03.610 --> 13:10.090] quadratic residues. However, its extract is much quicker than ours, but the large ciphertexts [13:10.090 --> 13:17.370] render it impractical. The Bowen-Franklin scheme is based on pairings on elliptical curves, [13:17.370 --> 13:23.170] and as you can see, we improve upon its extract function, and our encrypt and decrypt greatly [13:23.170 --> 13:30.710] improve upon both schemes. So, we have obtained promising software results, and the encrypt and [13:30.710 --> 13:36.130] decrypt has also been implemented on a microcontroller, such as found in the engine control [13:36.130 --> 13:41.670] unit of cars, and the results of this were two orders of magnitude faster than pairings-based. [13:42.970 --> 13:48.830] And the fast results allowed for instantaneous mission-critical push-to-talk applications, [13:48.830 --> 13:56.070] and emergency and real-time communications. And the input identifier is flexible. It can be a [13:56.070 --> 14:03.310] MAC address, an email address, a unique ID number, anything that you want. So, I do have a demo, [14:03.310 --> 14:08.410] but it wasn't showing up on the screen. So, if anyone wants to come up and see it after, [14:08.410 --> 14:15.050] and it's not showing up, you're very welcome to come, and it involves some, like, interaction. [14:15.050 --> 14:20.630] So, it's quite fun. So, basically, it shows how quickly our identity-based encryption scheme can [14:20.630 --> 14:31.130] work, and how, if we change the user identity, then it can, if you send messages to its old [14:31.130 --> 14:37.590] identity, they won't be able to decrypt. So, thank you very much for your time, and I'd just [14:37.590 --> 14:42.010] like to give some acknowledgments to my colleagues and former colleagues who have helped with this [14:42.010 --> 14:49.930] work. Thank you. All right, and now the floor is open for questions. If you have questions, [14:49.930 --> 15:02.510] just line up here in the middle portion of the room and ask your question. Anyone? All right. [15:03.210 --> 15:04.910] Thanks, Sarah. Thank you.