**On The Exact Security of Message Authentication Using Pseudorandom Functions**

*Ashwin Jha and Avradip Mandal and Mridul Nandi*

**Abstract: **Traditionally, modes of Message Authentication Codes(MAC) such as Cipher Block Chaining (CBC) are instantiated using block ciphers or keyed Pseudo Random Permutations(PRP). However, one can also use domain preserving keyed Pseudo Random Functions(PRF) to instantiate MAC modes. The very first security proof of CBC-MAC, essentially modeled the PRP as a PRF. Until now very little work has been done to investigate the difference between PRP vs PRF instantiations. Only known result is the rather loose folklore PRP-PRF transition of any PRP based security proof, which looses a factor of $O(\frac{\sigma^2}{2^n})$ (domain of PRF/PRP is $\{0,1\}^n$ and adversary makes $\sigma$ many PRP/PRF calls in total). This loss is significant, considering the fact tight $\Theta(\frac{q^2}{2^n})$ security bounds have been known for PRP based EMAC and ECBC constructions (where $q$ is the total number of adversary queries).
In this work, we show for many variations of encrypted CBC MACs (i.e. EMAC, ECBC, FCBC, XCBC and TCBC), random function based instantiation has a security bound $O(\frac{q\sigma}{2^n})$. This is a significant improvement over the folklore PRP/PRF transition. We also show this bound is optimal by providing an attack against the underlying PRF based CBC construction. This shows for EMAC, ECBC and FCBC, PRP instantiations are substantially more secure than PRF instantiations. Where as, for XCBC and TMAC, PRP instantiations are at least as secure as PRF instantiations.

**Category / Keywords: **secret-key cryptography / MAC, CBC, EMAC, XCBC, FCBC, TMAC, domain preserving PRF, PRP

**Original Publication**** (with major differences): **IACR-FSE-2017

**Date: **received 21 Feb 2017, last revised 11 Mar 2017

**Contact author: **ashwin jha1991 at gmail com

**Available format(s): **PDF | BibTeX Citation

**Note: **An abridged version of this paper appears in FSE 2017/ToSC Vol 2017. This is the full version.

**Version: **20170311:074008 (All versions of this report)

**Short URL: **ia.cr/2017/172

**Discussion forum: **Show discussion | Start new discussion

[ Cryptology ePrint archive ]