start	end	text
0	4900	All right. Welcome back, everybody. Our next talk will be Sarah McCarthy giving her talk
4900	8600	on QuantumSafe Instantaneous Vehicle-to-Vehicle Communication.
15000	20200	Hello. Thanks for having me here. This is my first DEF CON, and I'm enjoying it so far. I'm
20200	25660	meeting very interesting people. So I'm from the Center for Secure Information Technologies,
25660	30540	which is part of Queen's University Belfast, Northern Ireland. And today I'm going to talk
30540	34740	about an aspect of our research into practical QuantumSafe cryptography.
36880	41960	So, as Christian Paquin explained yesterday, there's a requirement for the establishment
41960	47660	of QuantumSafe cryptography. So I'm going to reintroduce this topic and the motivations
47660	53580	for our research. I will then introduce identity-based encryption, which is an advanced
53580	59520	cryptographic primitive, and then describe our software design aimed at constrained devices,
59520	63740	such as vehicle-to-vehicle communication. I do have a demo, but it wasn't showing up on the
63740	69600	screen, but we can give it another go. So currently, cryptography is underpinned by
69600	75060	hard mathematical problems, such as integer factorization and the discrete log problem,
75060	82140	and these are infeasible to break with current computing. However, in 1984, Shor's algorithm
82140	88260	was proposed. And when this is run on a quantum computer, it can solve integer factorization and
88260	94460	discrete log problem within a feasible amount of time. Therefore, if a quantum computer comes
94460	100040	along, our primitives that we use today, such as RSA and elliptical curve cryptography,
100040	106420	which are based on these problems, will be broken. There's also Grover's algorithm,
106420	112820	which was proposed in 1996, and it threatens the symmetric key primitives. However, we can
112820	119080	evade this algorithmic attack by doubling the key sizes. So, symmetric key cryptography is safe
119080	124640	for now, but public key cryptography will be dead under the realization of a quantum computer.
126320	130380	In response to this, researchers are looking at replacing traditional problems
130380	135900	with more complex problems, such as lattice-based, code-based, multivariate-based,
135900	140220	hash-based, and misogyny-based. These are all different branches of mathematics.
140860	147940	There are many community efforts into this quantum-safe cryptographic research. For example,
147940	153580	standards bodies in the US and Europe, NIST and Etsy, are looking towards standardizing
153580	159580	quantum-safe primitives. Google trialed a quantum-safe key exchange in its Chrome browser in
159580	166320	2016. European projects, such as SafeCrypto, have been looking at practical implementations
166320	172360	of quantum-safe primitives. There is an annual conference, PQCrypto, which brings together
172360	179080	academics and researchers from industry every year, and government bodies, such as the National
179080	183500	Cyber Security Center in the UK, are also looking at quantum-safe cryptography.
185180	191360	To further emphasize the threat, here are some news articles and headlines that have been
192320	197440	out in the past couple of years, and it's about researchers are both building quantum computers
197440	203320	and protecting against quantum computers. So, quantum computing power can be measured in
203320	209120	qubits, and the number of qubits attained is increasing. However, Andrea's talk on Thursday
209120	216280	indicated that over 4,000 qubits are required to factor a 2048-bit number using Shor's algorithm.
216740	224780	If we look in March 2018, Google only reached 72 qubits. We have a long way to go, but we argue
224780	230160	we need to be thinking about this problem today. For example, if we put a satellite into space
230160	236580	today, it's going to need to be secure for 40 to 50 years, and if a quantum computer comes during
236580	243940	that time, the security which it relies upon will be broken, and they won't be able to be used.
243940	251120	The Moscow inequality conceptualises this, so if we set X as a desired lifespan of the security
251120	256800	of the product, Y the research and development time of the crypto, and Z the time until the
256800	263380	realisation of a quantum computer, if X plus Y is less than Z, there is time to act, but if it's
263380	268260	more than Z, it's going to be too late. So, it's important to look at quantum-safe alternatives
268260	278520	today. So, lattices, or lattices, are the one of the contenders for quantum-safe cryptography.
279380	286220	They were first introduced in 1996, and they have many advantages, making them the leading
286220	293480	contender of quantum-safe alternatives. We have efficient, they're known for their efficiency,
293480	299280	understanding of the hardness of their underlying problems, and their ability to be extended to
299280	304180	advanced primitives such as identity-based encryption, which is when the user's public key
304180	310400	is based on its public ID, or homomorphic encryption which allows computation on encrypted
310400	318500	data. So, this is a two-dimensional lattice defined by basis vectors B1 and B2. Every vector
318500	323620	in the lattice can be expressed as a linear combination of its basis vectors with integer
323620	329980	coefficients. Hard problems around lattices, such as finding the shortest vector in the lattice,
329980	335520	or the closest point in the lattice to a given point in the space, are these problems upon which
335520	341720	we can base our cryptographic primitives, as they're known to be infeasible to be broken
341720	347820	by a quantum computer. So, lattices allow for cryptographic agility, they have mathematically
347820	352920	hard problems, and they have shown promising efficient implementations which are competitive
352920	361100	with traditional crypto use today. However, they have large key sizes in comparison to traditional
361100	367840	crypto, for example, over one megabyte compared to 256 bits. They're also vulnerable to side
367840	374160	channel attacks because lattices utilize a lot of bespoke components which are not used in
374160	379900	crypto today. So, we're basically reinventing the wheel when it's coming to protecting against
379900	386420	power analysis, timing attacks, and fault attacks. The underlying mathematical theory is still
386420	393940	relatively new, and it's still undergoing major cryptanalysis. For example, we can introduce
393940	401960	structure to the lattices in order to increase the efficiency of the schemes. However, as of yet,
401960	407360	there are no known vulnerabilities, but this has not been proven that it doesn't introduce a
407360	416440	security risk. In 2016, NIST announced the transition to quantum safe public key cryptography
416440	422840	for suite B of its recommended algorithms. They invited the research community to submit
422840	427660	public key encryption schemes, digital signature schemes, and key encapsulation mechanisms.
428220	434180	So, in the first round, lattices accounted for over one third of the submissions, and NIST
434180	438580	selected the most promising candidates to go through to the second round, and those who didn't
438580	444080	make it were dropped due to a lack of confidence in their security or inefficiency. But by the second
444080	450120	round, lattices accounted for almost one half of the candidates. And additionally, they're the only
450120	458000	family to have submissions in round two in all three types of schemes. So, this reinforces our
458000	465640	confidence and assurance in lattices. Identity based encryption removes the need for a large
465640	473820	scale public key infrastructure by using the user ID as a public key. So, here's a diagram showing
473820	478820	identity based encryption scheme. The key generator generates master public and private
478820	486940	keys for the whole system. And the extractor uses a user's ID to generate a private user key for
486940	493920	them. If Alice wants to send a message to Bob, all she needs is Bob's public ID and the master public
493920	499520	key to encrypt the message. She then sends it to Bob, and Bob can decrypt using his private user
499520	510950	key. The advantages of identity based encryption include there's no need for the sender to obtain
511090	517770	a certificate. Therefore, they can send a message more instantaneously. Timestamps can be combined
517770	524450	with identity to accommodate key refresh and reification. There's no need for preregistration
524450	530690	of a user onto a database. They can be extended to further primitives, such as signatures,
530690	536030	broadcast encryption, key agreement, and public key encryption schemes with keyword search.
536030	541270	They also mitigate the need for a trusted certificate authority and decryption capabilities
541270	547270	can be delegated, for example, to temporary devices or to members of staff within a workforce.
548570	554190	However, there's danger of key escrow as the center authority has access to all private keys
554190	559710	and therefore can decrypt any message. Communication channels from the central
560260	566570	authority are required to be secure. Key reification could add complexity, for example,
566570	572110	if a key needs revoked before its expiry date. And there's a requirement to check the uniqueness
572110	582320	of user IDs to prevent two users obtaining the same private key. So, today, IBE is used
583020	590480	for commercial solutions focusing on email and file encryption. It's also suitable for
590480	596900	closed networks, such as sensor networks. And the UK emergency services currently uses the
596900	605220	Etsy standardized Tetris scheme for its communications. And since 2018, it has used
605220	611440	the elliptical curve based IBE scheme due to the instantaneous communication capabilities.
612920	618420	And today, we consider the use of instantaneous communication required for vehicle to vehicle.
618420	623140	However, these applications currently are all non-quantum safe.
625040	630900	So, I'm now going to show an animation to show how identity-based encryption can be used for
630900	640590	vehicle to vehicle communication. So, as an example, consider two autonomous cars in constant
640590	648290	contact with the 5G network. The key generator produces the private key of each user by using
648290	654530	its already established unique user identity. In this case, the license plate of the car.
654970	660010	If the green car wants to send a message to the blue car, it only needs to know the blue car's
660010	666910	license plate and the master public key. And the license plate guarantees its authenticity.
667490	673230	Only the blue car can decrypt this message using the associated private key.
673710	678270	Similarly, if the fleet manager wants to send a message to all cars in the system,
678270	683310	it simply needs their identities and does not need to maintain a database of public keys.
686070	692910	The first lattice-based IBE scheme with practical parameters was proposed in 2014.
693510	699510	And it used special structured entry lattices to reduce the key sizes, which are between two and
699510	705310	four kilobytes. And a lattice sampler which samples short vectors within the lattice to
705310	710130	create the private information. And then proved upon the quality of this, therefore,
710130	716970	it outputs shorter lattice vectors, making it more secure. So, all encryption and decryption
716970	721510	operations take approximately one millisecond on a moderately powered laptop and it can also
721510	730030	be extended to a digital signature scheme. In 2017, my team proposed algorithmic and
730030	735290	software design optimizations to bring the scheme even more within the realm of practicality.
735310	740410	These included use of the number theoretic transform, parameter recommendations,
740410	745730	bronze modular GCD, Barrett reduction, the cumulative distribution table sampler and
745730	751210	the tiny SHA3 hash function. We also focused on making it constant time in order to mitigate
751210	757430	side channel attacks. So, here are some of our performance results. I'd just like to highlight
757430	764950	the 80-bit security level and the 190-bit security level. So, how does this compare to existing
764950	771030	implementations? Well, in comparison to the proof of concept implementation of the original paper,
771030	775610	you can see massive performance gains, particularly in the encrypt and decrypt components.
777850	783610	And in comparison to traditional IBE schemes, well, this first one, Cox, is based on
783610	790090	quadratic residues. However, its extract is much quicker than ours, but the large ciphertexts
790090	797370	render it impractical. The Bowen-Franklin scheme is based on pairings on elliptical curves,
797370	803170	and as you can see, we improve upon its extract function, and our encrypt and decrypt greatly
803170	810710	improve upon both schemes. So, we have obtained promising software results, and the encrypt and
810710	816130	decrypt has also been implemented on a microcontroller, such as found in the engine control
816130	821670	unit of cars, and the results of this were two orders of magnitude faster than pairings-based.
822970	828830	And the fast results allowed for instantaneous mission-critical push-to-talk applications,
828830	836070	and emergency and real-time communications. And the input identifier is flexible. It can be a
836070	843310	MAC address, an email address, a unique ID number, anything that you want. So, I do have a demo,
843310	848410	but it wasn't showing up on the screen. So, if anyone wants to come up and see it after,
848410	855050	and it's not showing up, you're very welcome to come, and it involves some, like, interaction.
855050	860630	So, it's quite fun. So, basically, it shows how quickly our identity-based encryption scheme can
860630	871130	work, and how, if we change the user identity, then it can, if you send messages to its old
871130	877590	identity, they won't be able to decrypt. So, thank you very much for your time, and I'd just
877590	882010	like to give some acknowledgments to my colleagues and former colleagues who have helped with this
882010	889930	work. Thank you. All right, and now the floor is open for questions. If you have questions,
889930	902510	just line up here in the middle portion of the room and ask your question. Anyone? All right.
903210	904910	Thanks, Sarah. Thank you.
