AEGIS
A Fast Authenticated Encryption Algorithm Hongjun Wu Bart Preneel
Nanyang Technological University KU Leuven and iMinds
DIAC 2016 AEGIS 1
AEGIS A Fast Authenticated Encryption Algorithm Hongjun Wu - - PowerPoint PPT Presentation
AEGIS A Fast Authenticated Encryption Algorithm Hongjun Wu Bart Preneel Nanyang Technological University KU Leuven and iMinds DIAC 2016 AEGIS 1 AEGIS: A shield carried by Athena and Zeus DIAC 2016 AEGIS 2 Different Design
Nanyang Technological University KU Leuven and iMinds
DIAC 2016 AEGIS 1
DIAC 2016 AEGIS 2
AEGIS: A shield carried by Athena and Zeus
Different Design Approaches:
3 DIAC 2016 AEGIS
DIAC 2016 AEGIS 4
– AEGIS-128L is 0.25 clock cycles/byte on Intel Skylake (long messages)
DIAC 2016 AEGIS 5
– 128-bit key, 1024-bit state
– 128-bit key, 640-bit state
– 256-bit key, 768-bit state
DIAC 2016 AEGIS 6
– Parallelizable: locally – No security reduction but easy to analyze – Not resistant to nonce reuse – Performance: size/speed tradeoff
7 DIAC 2016 AEGIS
8
– Inspiration: Pelican MAC
– Our design: Save the state after each AES round, then construct stream cipher from MAC
AES (10R)
K
AES (4R)
x2
AES
(4R) AES (10R)
K x1
8 DIAC 2016 AEGIS
– Parallel AES round functions in each step so as to fill the AES instruction pipeline – AEGIS-128L can make full use of the AES instruction pipeline of Intel Haswell and Skylake processors
DIAC 2016 AEGIS 9
larger state: 5 x 128 bits but simpler operation: 1 AES round still easy to analyze
AES(1R)
S3
AES(1R)
xi S0
AES(1R)
S1
AES(1R)
S2
AES(1R)
S4 length
AEGIS
(10R)
K IV K IV
AEGIS
(1R)
x1
AEGIS
(1R)
x2 AEGIS
(7R)
tag
10 DIAC 2016 AEGIS
– a difference in ciphertext passes through at least 4 AES rounds
being distributed to at least 4 words
– AEGIS encryption is a stream cipher with nonlinear state update function
11 DIAC 2016 AEGIS
– AEGIS-128
– AEGIS-256
12 DIAC 2016 AEGIS
13 DIAC 2016 AEGIS
– Tiaoxin extends AEGIS to larger state with more complicated state update function
– Larger state size in stream cipher design normally leads to faster speed – Long message (on Skylake, Supercop-2016-08-06)
– 1536-byte message (on Skylake, Supercop-2016-08-06)
14 DIAC 2016 AEGIS
– FPGA implementation of AEGIS-128L (Tao Huang)
– 65 nm ASIC implementation of AEGIS-128 (Debjyoti Bhattacharjee, Anupam Chattopadhyay, DIAC 2015)
ASIC, with larger area (60% more)
15 DIAC 2016 AEGIS
– For AEGIS, the secret key remains strong, so there is little compromise of encryption security (since the attacker can access the decrypted plaintext, the encryption security of a single message is not a concern here)
DIAC 2016 AEGIS 16
– If the communication protocol terminates/restarts when authentication fails, then there is no compromise of authentication security
DIAC 2016 AEGIS 17
– Software: targeting platforms with AES-NI – Also fast in hardware
DIAC 2016 AEGIS 18