ROM ⇒ PRF (secret-prefix hashing)
Statement
In the random oracle model with oracle , let be polynomially bounded and let be or . Let have key space and range and domain , with outputting and . In the PRF game relative to , the adversary queries as well as , where and for sampled independently of . Every making at most queries to , computationally unbounded and with any number of queries to , has
so is a PRF against every adversary making queries to — folklore.
Sketch
Answer and from lazily sampled tables and call a query to bad if for some . In world 0 the entries are read only through until a bad query, and they are uniform and independent of the rest of , so the two worlds are identical until a bad query and the fundamental lemma of game playing bounds the advantage by the probability of a bad query in world 1. There is independent of everything sees, so each of its at most queries begins with with probability at most — folklore.
Notes
- The bound is tight up to a factor : the adversary that queries at one point and for distinct guesses , and outputs when some answer of equals that of , has advantage , where is the probability that one of independent uniform values in hits a given one — folklore.
- With replaced by a Merkle–Damgård hash function and the domain , for at least the length of , the construction is not a PRF, and as a MAC it is forgeable: depends on only through , and by length extension is computed from the public hash key, , and , without , for every and that keep the extended input in the domain (No fixed-construction reduction from CRHF to MAC (secret-prefix MAC)) — standard. Tsudik observed that cannot be used as a MAC of under key — BR93 (Section 6).