WEBVTT

00:00.000 --> 00:00.520
All right.

00:00.520 --> 00:01.880
Welcome back, everybody.

00:01.880 --> 00:08.600
Our next talk will be Sarah McCarthy giving her talk on QuantumSafe Instantaneous Vehicle-to-Vehicle Communication.

00:15.000 --> 00:15.960
Hello.

00:15.960 --> 00:17.380
Thanks for having me here.

00:17.380 --> 00:20.120
This is my first DEF CON, and I'm enjoying it so far.

00:20.120 --> 00:22.100
I'm meeting very interesting people.

00:22.320 --> 00:29.220
So I'm from the Center for Secure Information Technologies, which is part of Queen's University Belfast, Northern Ireland.

00:29.220 --> 00:34.740
And today I'm going to talk about an aspect of our research into practical QuantumSafe cryptography.

00:36.880 --> 00:44.120
So, as Christian Paquin explained yesterday, there's a requirement for the establishment of QuantumSafe cryptography.

00:44.120 --> 00:49.500
So I'm going to reintroduce this topic and the motivations for our research.

00:49.600 --> 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.

01:01.800 --> 01:05.660
I do have a demo, but it wasn't showing up on the screen, but we can give it another go.

01:07.000 --> 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.

01:19.220 --> 01:23.540
However, in 1984, Shor's algorithm was proposed.

01:23.660 --> 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.

01:32.840 --> 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.

01:44.120 --> 01:52.100
There's also Grover's algorithm, which was proposed in 1996, and it threatens the symmetric key primitives.

01:52.100 --> 01:56.780
However, we can evade this algorithmic attack by doubling the key sizes.

01:57.320 --> 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.

02:06.320 --> 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.

02:17.640 --> 02:20.220
These are all different branches of mathematics.

02:20.860 --> 02:26.960
There are many community efforts into this quantum-safe cryptographic research.

02:26.960 --> 02:35.360
For example, standards bodies in the US and Europe, NIST and Etsy, are looking towards standardizing quantum-safe primitives.

02:35.580 --> 02:41.180
Google trialed a quantum-safe key exchange in its Chrome browser in 2016.

02:41.620 --> 02:48.960
European projects, such as SafeCrypto, have been looking at practical implementations of quantum-safe primitives.

02:48.960 --> 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.

03:05.180 --> 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.

03:20.900 --> 03:27.000
So, quantum computing power can be measured in qubits, and the number of qubits attained is increasing.

03:27.180 --> 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.

03:36.740 --> 03:41.360
If we look in March 2018, Google only reached 72 qubits.

03:42.080 --> 03:47.400
We have a long way to go, but we argue we need to be thinking about this problem today.

03:47.560 --> 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.

04:03.940 --> 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,

04:22.940 --> 04:25.520
but if it's more than Z, it's going to be too late.

04:25.700 --> 04:29.420
So, it's important to look at quantum-safe alternatives today.

04:31.360 --> 04:38.520
So, lattices, or lattices, are the one of the contenders for quantum-safe cryptography.

04:39.380 --> 04:48.720
They were first introduced in 1996, and they have many advantages, making them the leading contender of quantum-safe alternatives.

04:49.360 --> 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,

05:06.900 --> 05:11.480
or homomorphic encryption which allows computation on encrypted data.

05:11.960 --> 05:17.600
So, this is a two-dimensional lattice defined by basis vectors B1 and B2.

05:17.600 --> 05:24.960
Every vector in the lattice can be expressed as a linear combination of its basis vectors with integer coefficients.

05:25.400 --> 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.

05:44.460 --> 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.

05:56.460 --> 06:06.240
However, they have large key sizes in comparison to traditional crypto, for example, over one megabyte compared to 256 bits.

06:06.340 --> 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.

06:15.660 --> 06:23.620
So, we're basically reinventing the wheel when it's coming to protecting against power analysis, timing attacks, and fault attacks.

06:24.160 --> 06:31.300
The underlying mathematical theory is still relatively new, and it's still undergoing major cryptanalysis.

06:31.300 --> 06:40.840
For example, we can introduce structure to the lattices in order to increase the efficiency of the schemes.

06:40.840 --> 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.

06:50.380 --> 06:59.380
In 2016, NIST announced the transition to quantum safe public key cryptography for suite B of its recommended algorithms.

06:59.400 --> 07:07.660
They invited the research community to submit public key encryption schemes, digital signature schemes, and key encapsulation mechanisms.

07:08.220 --> 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.

07:23.420 --> 07:28.200
But by the second round, lattices accounted for almost one half of the candidates.

07:28.760 --> 07:35.360
And additionally, they're the only family to have submissions in round two in all three types of schemes.

07:35.940 --> 07:40.640
So, this reinforces our confidence and assurance in lattices.

07:42.560 --> 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.

07:52.120 --> 07:56.080
So, here's a diagram showing identity based encryption scheme.

07:56.080 --> 08:00.600
The key generator generates master public and private keys for the whole system.

08:00.760 --> 08:07.760
And the extractor uses a user's ID to generate a private user key for them.

08:08.160 --> 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.

08:15.720 --> 08:20.400
She then sends it to Bob, and Bob can decrypt using his private user key.

08:24.690 --> 08:31.950
The advantages of identity based encryption include there's no need for the sender to obtain a certificate.

08:31.950 --> 08:35.430
Therefore, they can send a message more instantaneously.

08:36.330 --> 08:41.670
Timestamps can be combined with identity to accommodate key refresh and reification.

08:42.710 --> 08:46.670
There's no need for preregistration of a user onto a database.

08:47.230 --> 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.

08:56.030 --> 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.

09:08.570 --> 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.

09:17.830 --> 09:22.810
Communication channels from the central authority are required to be secure.

09:23.610 --> 09:29.690
Key reification could add complexity, for example, if a key needs revoked before its expiry date.

09:30.130 --> 09:36.850
And there's a requirement to check the uniqueness of user IDs to prevent two users obtaining the same private key.

09:40.240 --> 09:48.020
So, today, IBE is used for commercial solutions focusing on email and file encryption.

09:48.180 --> 09:53.460
It's also suitable for closed networks, such as sensor networks.

09:54.060 --> 10:02.540
And the UK emergency services currently uses the Etsy standardized Tetris scheme for its communications.

10:02.540 --> 10:11.440
And since 2018, it has used 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: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.

10:36.690 --> 10:43.570
So, as an example, consider two autonomous cars in constant contact with the 5G network.

10:43.610 --> 10:51.670
The key generator produces the private key of each user by using its already established unique user identity.

10:51.690 --> 10:54.530
In this case, the license plate of the car.

10:54.970 --> 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.

11:03.570 --> 11:06.910
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: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.

11:26.070 --> 11:32.910
The first lattice-based IBE scheme with practical parameters was proposed in 2014.

11:33.510 --> 11:40.970
And it used special structured entry lattices to reduce the key sizes, which are between two and four kilobytes.

11:41.210 --> 11:47.430
And a lattice sampler which samples short vectors within the lattice to create the private information.

11:47.610 --> 11:54.230
And then proved upon the quality of this, therefore, it outputs shorter lattice vectors, making it more secure.

11:55.450 --> 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.

12:05.790 --> 12:15.290
In 2017, my team proposed algorithmic and software design optimizations to bring the scheme even more within the realm of practicality.

12:15.310 --> 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.

12:28.010 --> 12:32.930
We also focused on making it constant time in order to mitigate side channel attacks.

12:34.010 --> 12:36.450
So, here are some of our performance results.

12:36.450 --> 12:42.110
I'd just like to highlight the 80-bit security level and the 190-bit security level.

12:42.890 --> 12:46.410
So, how does this compare to existing implementations?

12:47.150 --> 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.

12:57.850 --> 13:05.350
And in comparison to traditional IBE schemes, well, this first one, Cox, is based on quadratic residues.

13:05.350 --> 13:11.850
However, its extract is much quicker than ours, but the large ciphertexts render it impractical.

13:12.650 --> 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.

13:26.430 --> 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.

13:42.970 --> 13:51.710
And the fast results allowed for instantaneous mission-critical push-to-talk applications, and emergency and real-time communications.

13:52.370 --> 13:55.210
And the input identifier is flexible.

13:55.210 --> 14:01.910
It can be a MAC address, an email address, a unique ID number, anything that you want.

14:02.190 --> 14:05.310
So, I do have a demo, but it wasn't showing up on the screen.

14:05.310 --> 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.

14:15.050 --> 14:16.270
So, it's quite fun.

14:16.350 --> 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.

14:34.430 --> 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.

14:42.570 --> 14:43.490
Thank you.

14:44.850 --> 14:48.850
All right, and now the floor is open for questions.

14:48.850 --> 14:56.910
If you have questions, just line up here in the middle portion of the room and ask your question.

14:59.690 --> 15:00.730
Anyone?

15:01.290 --> 15:02.510
All right.

15:03.210 --> 15:04.150
Thanks, Sarah.

15:04.150 --> 15:04.910
Thank you.

