Mr Julius CAESAR: round 3

The Emperor’s Club is an 2002 American drama film. In the Emperor’s Club one is to be crowned ‘Mr. Julius Caesar‘ in a competition which puts the top 3 students of a class in a contest where they are asked questions regarding Classics.

CAESAR [1] is also the name of another competition which has been running since 2014  in the ‘Emperor’s Club’ of the cryptography world. While my impression was that the name CAESAR either had something to do with the classical Caesar cipher reference in cryptography, or it was an abbreviation for Competition for Authenticated Encryption: Security, Applicability, and Robustness, I was not so certain any more after watching the film. Similarly to that film, many of the CAESAR contestants are amongst the top students of their classes. The topic here is also Classics, albeit Classics in Cryptography: symmetric encryption and authentication. More precisely, the aim of the CAESAR competition is to inspire its contestants to reinvent classical symmetric encryption and authentication into a dedicated authenticated encryption algorithm. And the outcome here, as in the film, promises eternal glory and fame to its winners. Or one may believe this to be the message behind the promised final recommendation for adoption of the winning designs in various practical settings.

Competitions like CAESAR are not a novelty in cryptography. I have witnessed the ECRYPT Stream Cipher Project [2], the NIST SHA-3 competition [3], the password hashing competition [4] and most curiously the ongoing snake oil competition [5] – the new cryptographic commodity. One of the most practically impactful competitions thus far has been the NIST block cipher competition [6]. It resulted in the AES block cipher [7] standard. Such cryptographic competitions have been successful and welcome due to their stance for open and public analysis. Their more transparent evaluation and selection process has been a large part of the drive behind the adoption of AES and the rise of subsequent competitions, such as the CAESAR one.

CAESAR is particularly relevant in practice because authenticated encryption is a must almost anywhere in the digital world: ranging from protection of data at rest to data in transmission. Imagine you need to send your special picture to your friend. Certainly, if you live by the presumption: I have nothing to hide 1, then you can just go ahead and our job is futile. But if for some reason you want that picture to be seen by only your friend, then you encrypt it under a key shared with your friend (also known as a symmetric key). As good as this appears, encryption alone will not protect you in the unfortunate event of data modifications or errors occurring on your encrypted picture. That can lead to, for example, your friend retrieving a completely different picture than the intended one or none at all. To provide adequate protection here, one has to add an authentication mechanism to the encryption and it is where authenticated encryption is mandated.

But why go for a dedicated authenticated encryption solution?

One can indeed combine an existing encryption with an existing authentication scheme to achieve secure authenticated encryption [8,9], yet in practice this has proven to be rather error-prone as the attacks on protocol versions of SSH, SSL and TLS [10,11,12,13] exemplify. The general message when combining off the shelf encryption and authentication has been one of restraint from DIY approaches. Furthermore, there are numerous efficiency benefits to be gained from a dedicated authenticated encryption solution.

Driven by the practical needs for more easy-to-use, efficient and secure dedicated authenticated encryption solutions, the CAESAR competition [1] was initiated in 2014. In the first round 57 designs were submitted. Last month (August, 2016), we learned the names of the 15 designs selected for the third round: ACORN, AEGIS, AES-JAMBU, AES-OTR, AEZ, Ascon, CLOC and SILC, COLM, Deoxys, Ketje, Keyak, MORUS, NORX, OCB, Tiaoxin.

The review committee of CAESAR has subsequently instructed the third-round submitters to clearly indicate the prioritized list of use cases for their designs. The CAESAR committee has also suggested three categories of use cases. Below is the original list as identified by the CAESAR committee:

Use Case 1: Lightweight applications (resource constrained environments).

* critical: fits into small hardware area and/or small code for 8-bit CPUs

* desirable: natural ability to protect against side-channel attacks

* desirable: hardware performance, especially energy/bit

* desirable: speed on 8-bit CPUs

* message sizes: usually short (can be under 16 bytes), sometimes longer

Use Case 2: High-performance applications

* critical: efficiency on 64-bit CPUs (servers) and/or dedicated hardware

* desirable: efficiency on 32-bit CPUs (small smart phones)

* desirable: constant time when the message length is constant

* message sizes: usually long (more than 1024 bytes), sometimes shorter

Use Case 3: Defense in depth

* critical: authenticity despite nonce misuse

* desirable: limited privacy damage from nonce misuse

* desirable: authenticity despite release of unverified plaintexts

* desirable: limited privacy damage from release of unverified plaintexts

* desirable: robustness in more scenarios; e.g., huge amounts of data

5 of the third-round candidates ACORN, ASCON, SILC and CLOC, JAMBU and Ketje classify as lightweight designs. These mostly have a design based on a permutation as an underlying building block. A personal favorite of mine is the second-round lightweight PRIMATEs candidate with its PRIMATEs-APE variant which additionally offers important defense in depth features.

The largest use case group in this round is the high performance one with 7 candidates: AEGIS, AES-OTR, Deoxys, MORUS, NORX, OCB and Tiaoxin. Here, we observe a more heterogeneous group in terms of underlying structure; permutations and block ciphers, with a preference for the AES block cipher and reduced-round variants of it.

The category with the least number of designs is the defense in depth one. It includes AEZ, Keyak and COLM. These designs offer stronger security guarantees, such as security against misuses of the nonce (a non-repeating initial value) and in scenarios where the decrypted ciphertext is available to an adversary before the verification part has been completed. As a member of COLM design team, I see our design well-placed in this category offering a desirable balance between strong security and good efficiency. One of the main advantages of COLM is that COLM builds on the AES block cipher in a simple design mode making it extremely easy to use.

Many of the third-round candidates specify a different use case group for a secondary choice of their parameters. But still high performance and general purpose applications appear to be the primary target. Lightweight schemes come close in numbers with the ubiquitous invasion of  the IoT and the authenticated encryption solutions required there. While defense in depth offers the best security guarantees, the design options there appear the least overall. The wording of that third defense in depth category also implies to me a very specialized demand for security. Yet, in my view, the listed defense in depth qualifiers imply simply adequate security for general applications. I believe the list of misuses in this third category is to be protected against at large and should also be achievable by the majority of the CAESAR designs.

In the following months of the competition, we expect to see optimized design implementations and further security analysis pointing to either weaknesses or validating the strengths of the candidates. Software and hardware implementation results and comparisons [14, 15, 16] , events such as the DIAC workshop [17], the CAESAR mailing list [18], and the numerous research works in the area are just some of the places which accommodate a public discussion, evaluation and contribute to the decision process.

Some of the more difficult questions I’ve encountered regard the recommendations for more concrete CAESAR use cases. For example, does TLS 1.3 (the next generation in the SSL/TLS family of cryptographic protocols that protect sensitive communications on the Internet) need to support defense in depth, or high performance, or both? And if TLS 1.3 is to be launched with its present cipher suites, then are CAESAR finalists supposed to be in the waiting list of TLS 1.4? Or are the CAESAR designs considered to be part of the new IoT or secure messaging standards? Who knows …

[1] https://competitions.cr.yp.to/caesar-submissions.html

[2] http://www.ecrypt.eu.org/stream/

[3] http://csrc.nist.gov/groups/ST/hash/sha-3/

[4] https://password-hashing.net/

[5] https://snakeoil.cr.yp.to/

[6] http://csrc.nist.gov/archive/aes/

[7] J. Daemen, V. Rijmen: Rijndael for AES. AES Candidate Conference 2000: 343-348

[8] M. Bellare, C. Namprempre: Authenticated Encryption: Relations among Notions and Analysis of the Generic Composition Paradigm. J. Cryptology 21(4): 469-491 (2008)

[9] C. Namprempre, P. Rogaway, T. Shrimpton: Reconsidering Generic Composition. EUROCRYPT 2014: 257-274

[10] M. Albrecht, K. Paterson, G. Watson: Plaintext Recovery Attacks against SSH. IEEE Symposium on Security and Privacy 2009: 16-26

[11] T. Duong, J. Rizzo: Cryptography in the Web: The Case of Cryptographic Design Flaws in ASP.NET. IEEE Symposium on Security and Privacy 2011: 481-489

[12] S. Vaudenay: Security Flaws Induced by CBC Padding – Applications to SSL, IPSEC, WTLS …. EUROCRYPT 2002: 534-546

[13] N. AlFardan, K. Paterson: Lucky Thirteen: Breaking the TLS and DTLS Record Protocols. IEEE Symposium on Security and Privacy 2013: 526-540

[14] https://bench.cr.yp.to/ebaead.html

[15] https://github.com/mjosaarinen/brutus

[16] Cryptographic Engineering Research Group (CERG) at GMU. (2016, June) CAESAR Hardware API, full specification, https://cryptography.gmu.edu/athena/index.php?id=download

[17] http://www.nuee.nagoya-u.ac.jp/labs/tiwata/diac2016/

[18] mail to: crypto-competitions+subscribe@googlegroups.com

Thanks to Elena Andreeva  for writing this blog post.