Definition-Based Crypto Versus Crypto-Based Definitions

Often well hidden, cryptography appears at many different places, in many different devices. One single cryptographic scheme may be used in various different settings. This gives rise to a fundamental yet basic question: how to capture the properties that a cryptographic scheme actually needs to offer? How are we ensured that our fancy schemes do what they are supposed to do?

The answer to this boils down to security models. Security models have as goal to describe (i) what properties a cryptographic scheme should satisfy in order to fulfill practical desires, and (ii) what practical applications should satisfy in order to properly use the scheme. It is therefore important to have a good understanding of the used security models. This two-fold goal of security models also outlines two approaches to security model design: security models that capture practical use cases and which the cryptographic schemes should obey, or security models that capture the security achieved by the cryptographic schemes and which the practical use cases should follow.

Unfortunately, there is no security model that “fits all”: there are many different cryptographic schemes, many different use cases, and many different types of bad guys. For example, for cryptographic hash functions, some applications need collision resistance (think of the Flame virus [14]), some need one-wayness (passphrase protection), and some need that the hash function behaves like a random oracle (Fiat-Shamir [4]). The theoretical indifferentiability framework of Maurer et al. [8] suggests that a hash function “behaves like” a random oracle and implies collision resistance and others, but the model may be too strong for certain applications.

For keyed cryptographic primitives, the situation is even more complex. We will elaborate on authenticated encryption and on tweakable block ciphers.

Authenticated Encryption

For authenticated encryption, subject of the previous flowery epistle at this blog, there appears to be a proliferation in security models. One may wonder if that is a good thing: some models merely serve as selling point for the scheme introduced alongside it (no examples given). On the upside, some definitions in the direction are definitely worthwhile, the diversity of models partly originates from the diversity of applications:

  • Nonce-based AE [12]: a unique nonce is used for every new authenticated encryption evaluation. The nonce essentially mimics a re-randomization of the scheme;
  • Nonce-misuse AE [13]: security does not rely on the presence of a unique nonce: two identical encryptions lead to the same result, but if a single bit in the input data differs, the results look mutually independent. It is known that nonce-misuse AE is more expensive than nonce-based AE in the sense that the scheme needs to process the input data twice;
  • Online nonce-misuse AE [5]: tries to get the best of both, being online (hence one-pass) but offering nonce-misuse resistance only up to prefix, meaning that identical prefixes result in identical outcomes, but once a difference in the messages appears, the remainder is random.

Besides this separation, there are many other differences in the security models: what is the underlying primitive (public permutation or secret (tweakable) block cipher), does the adversary learn unverified plaintexts (RUP [2,3]), is the adversary allowed to make queries blockwise, etc.. A quick calculation suggests that these separations already give rise to 3×2×2×2=24 definitions.

Agreed, this computation is misleading and slightly manipulative. On the other side, it does expose a trend in the proliferation of security models that virtually every scheme comes with its own security model. This “crypto-based definition” approach has two negative consequences:

  • It is hard to compare various schemes that have the same functionality but different security models;
  • It may be hard for practitioners to actually use these schemes once the definitions become more and more complex.

Instead, it should ideally be the case that one or a few right definitions are developed, and that these definitions are the base line for the development of cryptographic schemes. The CAESAR competition, and the related recent attention to authenticated encryption, has been fuel for various research in this directions. For example, the topic of (online) nonce-misuse AE has lead to heated discussions over last years [1,7,10], recent research has lead to a better understanding of security under release of unverified plaintext, and robust authenticated encryption aims to cover the strongest possible adversaries [6].

Tweakable Block Ciphers

Tweakable block ciphers differ from the good old ancient block ciphers in the acceptance of a tweak, a free parameter used to tweak the cipher (hence the name). It adds flexibility to the design: while a normal block cipher is just a deterministic function, encrypting the same message to the same ciphertext, a tweak can be used to refresh the block cipher, making two encryptions of the same message mutually independent. There is a strong correlation between authenticated encryption and tweakable block cipher as the former uses a nonce to re-randomize the scheme. In light of this, it is no surprise that one of the most well-known tweakable block ciphers, XEX [11], is introduced alongside OCB2 and finds many more applications in various CAESAR candidates.

XEX is a block cipher based scheme and gives birthday bound security in the standard cipher model. Concretely, XEX-with-AES gives 64-bit security, provided that no-one can break AES faster than that. Approaches to get beyond birthday bound security exist, but these are quite expensive: if you want 2^(rn/(r+1)) security where n is the state size, you need at least r block cipher calls. For r going to infinity, this yields asymptotically optimal security, but not exact optimal security.

At FSE 2015, I introduced a tweakable block cipher based on just two block cipher calls that achieves optimal 2^n security [9], and an interesting follow-up result will appear at ASIACRYPT 2016 [15]. This approach seems to contradict what’s said in previous paragraph, but only as the schemes at FSE 2015 and ASIACRYPT 2016 are analyzed in a structurally different model: the ideal cipher model, where the underlying block cipher is assumed to be an ideal cipher. This is a significantly stronger model, and results in the two models are fairly incomparable.

The contrast between results in the two models is fascinatingly huge: in the standard model, one needs ∞ block cipher calls to get optimal security, while in the ideal model, one only needs 2. This gap has inspired us recently, and in a currently unpublished work we showed that the gap is, in fact, structural: in the ideal cipher model, under some reasonable assumptions, it is impossible to get optimal security using <<∞ block cipher calls.

Thus, in the ideal cipher model you can achieve things you can’t achieve in the standard model. Or, stated differently, in the standard model things are impossible that are possible in the ideal cipher model. There is no reason yet to believe that the ideal cipher model proofs at FSE 2015 and ASIACRYPT 2016 are pretentious, and in light of this it is valid to ask which of the models is “the right one.” Preliminary intuition says it is the standard model. For some types of schemes, that’s true, but there are schemes for which existing literature doesn’t justify that intuition.

Maybe it is best to abandon generic constructions and go for dedicated tweakable block ciphers all the way. Back to the time block ciphers were still called “Hasty Pudding Cipher.”

References

[1] Abed, F., Forler, C., List, E., Lucks, S., Wenzel, J.: Don’t panic! the cryptographers’ guide to robust authenticated (on-line) encryption (2015), http://www.uni-weimar.de/de/medien/professuren/mediensicherheit/research/nonce-misuse-on-line-ae

[2] Andreeva, E., Bogdanov, A., Luykx, A., Mennink, B., Mouha, N., Yasuda, K.: How to securely release unverified plaintext in authenticated encryption. In: ASIACRYPT 2014, Part I. LNCS, vol. 8873, pp. 105–125

[3] Barwell, G., Page, D., Stam, M.: Rogue decryption failures: Reconciling AE robustness notions. In: IMACC 2015. LNCS, vol. 9496, pp. 94–111

[4] Fiat, A., Shamir, A.: How to prove yourself: Practical solutions to identification and signature problems. In: CRYPTO ’86. LNCS, vol. 263, pp. 186–194

[5] Fleischmann, E., Forler, C., Lucks, S.: Mcoe: A family of almost foolproof on-line authenticated encryption schemes. In: FSE 2012. LNCS, vol. 7549, pp. 196–215

[6] Hoang, V.T., Krovetz, T., Rogaway, P.: Robust authenticated-encryption AEZ and the problem that it solves. In: EUROCRYPT 2015, Part I. LNCS, vol. 9056, pp. 15–44

[7] Hoang, V.T., Reyhanitabar, R., Rogaway, P., Vizár, D.: Online authenticated-encryption and its nonce-reuse misuse-resistance. In: CRYPTO 2015, Part I. LNCS, vol. 9215, pp. 493–517

[8] Maurer, U.M., Renner, R., Holenstein, C.: Indifferentiability, impossibility results on reductions, and applications to the random oracle methodology. In: TCC 2004. LNCS, vol. 2951, pp. 21–39

[9] Mennink, B.: Optimally secure tweakable blockciphers. In: FSE 2015. LNCS, vol. 9054, pp. 428–448

[10] Reyhanitabar, R.: Carefull with misuse-resistance of online aead schemes (2014), CAESAR mailing list

[11] Rogaway, P.: Efficient instantiations of tweakable blockciphers and refinements to modes OCB and PMAC. In: ASIACRYPT 2004. LNCS, vol. 3329, pp. 16–31

[12] Rogaway, P.: Nonce-based symmetric encryption. In: FSE 2004. LNCS, vol. 3017, pp. 348–359

[13] Rogaway, P., Shrimpton, T.: A provable-security treatment of the key-wrap problem. In: EUROCRYPT 2006. LNCS, vol. 4004, pp. 373–390

[14] Stevens, M.: Counter-cryptanalysis. In: CRYPTO 2013, Part I. LNCS, vol. 8042, pp. 129–146

[15] Wang, L., Guo, J., Zhang, G., Zhao, J., Gu, D.: How to build fully secure tweakable blockcipher from classical blockcipher. In: ASIACRYPT 2016. LNCS, to appear

 

Thanks to Bart Mennink for writing this blog post.