Length-preserving PRF ⇒ arbitrary-length SUF-CMA MAC (ECBC)

Fully-black-box reduction · standard model · BR05 · security loss: additive for queries totaling blocks, plus the PRF advantages of three adversaries, one per key, the first making queries and the others

Statement

Let be a length-preserving PRF, with domain and range for a polynomially bounded computable from in polynomial time, write , and let , with and , be its CBC-MAC on . ECBC has three independent keys , message space , and

A message occupies blocks. With replaced by independent uniformly random functions on , every adversary, of unbounded running time, whose queries total at most blocks distinguishes ECBC from a uniformly random function with advantage at most — BR05 (proof of Theorem 4). A hybrid over the three keys gives, for every efficient whose queries total at most blocks, efficient with

where makes at most queries and at most as many as , so ECBC is a PRF on against adversaries whose queries total polynomially many blocks — standard. By the argument of Length-preserving PRF ⇒ MAC, which uses only that the range is superpolynomial, with canonical verification is a perfectly correct UF-CMA-secure MAC on ; its is deterministic, so it is SUF-CMA-secure (Deterministic MACs), hence an arbitrary-length SUF-CMA MAC — standard.

Sketch

Over random functions, ECBC applies one of two independent random functions, chosen by whether was padded, to the CBC-MAC of the padded message, and padding is injective on the messages it applies to, so the answers are independent and uniform until two queries in the same class collide under CBC-MAC. Two distinct messages of and blocks collide under CBC-MAC over a random function with probability at most (Lemma 3), and summing over pairs of queries gives — BR05. In the hybrid, answers ‘s queries with its oracle in position , with lazily sampled random functions in the positions before and with under keys it samples in the positions after — standard.

Notes

  • With independent uniformly random permutations of in place of the three functions the bound is , the switching lemma adding at most for queries — BR05 (Theorem 4). By the same hybrid, ECBC under a PRP on is an arbitrary-length SUF-CMA MAC as well — standard.
  • On , ECBC is EMAC, , so the same bound covers EMAC on messages of any positive number of blocks — standard. FCBC, which uses or in place of in the last CBC step and so saves one call, has the bound over random permutations — BR05 (Theorem 5).
  • The bounds for ECBC, FCBC and XCBC are tight up to constant factors: for up to order , an attack whose queries total blocks forges with probability — BR05.
  • Without the final application of or , CBC-MAC on messages of varying length is forged after one query (No fixed-construction reduction from length-preserving PRF to arbitrary-length SUF-CMA MAC (plain CBC-MAC)) — folklore.