Computational security of hash-then-PRF on words #
The reduction samples a private hash key and forwards the digest of each valid word to its PRF challenger. Malformed words receive an empty reply without a call. A reply is read only up to the declared output width, even if the challenger returns a longer word.
This is the real-game step of [BS23], v0.6, §7.3, printed p. 264, toward (7.21).
The real law uses two independent uniform keys and the composition PRF.hashThenPRF from
(7.18). The hash is given on words with a polynomial-time domain test. Repeated queries are
allowed.
The query collector for Game 2 runs the same adversary against a fresh lazy random function and outputs the distinct valid queries in its cache. It is strict PPT and its output length is bounded by the adversary's query budget. Equation (7.22) is the ideal-game comparison: hashing before the random function changes the adversary's success probability by at most the probability that Game 2's collected queries contain a hash collision.
The resulting uniform strict oracle-PPT security theorem is the word form of Theorem 7.7.
The PRF key has n bits and the independently sampled hash key has keyLen n bits. The
ideal random function is sampled lazily on the valid message domain regardless of its size.
The two concrete bounds use the certified multi-query collector and the bounded fair-bit
collision-pair reduction.
Main definitions #
Cslib.Crypto.PRF.hashThenPRFWordReduction: the explicit word-oracle adversaryB_F.Cslib.Crypto.PRF.hashThenPRFWordRealGame: the real game under independent keys.Cslib.Crypto.PRF.hashThenPRFWordIdealRun: the decision and final cache in Game 2.Cslib.Crypto.PRF.hashThenPRFWordIdealQueries: the word query collectorB'_Hin Game 2.
Main results #
Cslib.Crypto.PRF.isOraclePPT_hashThenPRFWordReduction: uniform strict oracle PPT.Cslib.Crypto.PRF.isQueryBounded_hashThenPRFWordReduction: at most one call per input query.Cslib.Crypto.PRF.eval_prfRealGame_hashThenPRFWordReduction: its real PRF run has the law of Game 0 of the proof of Theorem 7.7.Cslib.Crypto.PRF.isPPTOn_hashThenPRFWordIdealQueries: a uniform strict PPT collector.Cslib.Crypto.PRF.nodup_valid_of_mem_support_hashThenPRFWordIdealQueries: collected queries are distinct and valid.Cslib.Crypto.PRF.length_le_of_mem_support_hashThenPRFWordIdealQueries: output length respects the adversary's query bound.Cslib.Crypto.PRF.advantage_prfIdealGame_hashThenPRFWordReduction_le: the comparison of the two ideal games.Cslib.Crypto.PRF.advantage_hashThenPRFWord_le_add_multiQueryandCslib.Crypto.PRF.advantage_hashThenPRFWord_le_add_collision: equations (7.20) and (7.19).Cslib.Crypto.PRF.computableInPolyTime_hashThenPRFWord: the composition's evaluator.Cslib.Crypto.PRF.hashThenPRFWord_indistinguishable: the asymptotic word security theorem.
Sample a keyLen n-bit hash key and run the adversary. Each valid query is hashed and
forwarded, and the reply prefix of length at most outLen n is returned to the adversary.
The reduction's query budget is at most that of the original adversary.
The word reduction is uniform strict oracle PPT when the hash evaluator, domain test and unary width schedules are polynomial-time, and the original adversary is strict oracle PPT.
The word real game for (7.18) in [BS23], v0.6, §7.3, printed pp. 262–264. Sample independent uniform hash and PRF keys, giving empty replies to invalid requests.
Polynomial-time evaluation of the composition. The unary parameter is framed before the framed pair of word keys and the message.
Real-game step of [BS23], v0.6, §7.3, printed p. 264. The reduction run against
the real PRF implements hashThenPRF under independent uniform keys. The input and output
width hypotheses ensure that the PRF's malformed-request check and reply cap preserve valid
answers. Invalid messages receive the empty word in both experiments.
Game 2 run for [BS23], v0.6, §7.3, printed p. 264. Return the adversary's decision
and the final cache of a lazy random function on valid words. Malformed words receive [].
The query-collecting step of Game 2 in [BS23], v0.6, §7.3, printed p. 264. Return the cache keys from the run against a fresh random function on the valid words.
The query collector is uniform strict PPT when the domain test and unary width schedule are polynomial-time and the adversary is uniform strict oracle PPT.
A supported output contains no repeated or invalid words.
A supported list contains at most as many entries as the adversary can query.
The ideal-game comparison #
Interpret the word hash's fixed-width keys and digests for the computational UHF games. The public setup supplies the key and digest widths.
The word-model ideal-game step (7.22) of [BS23], v0.6, §7.3, printed p. 264. The advantage between a random function called on hashed valid words and a random function called on the valid words themselves is bounded by the certified collector's success in Attack Game 7.2. Digests have the PRF's input width. Both games reject invalid words and answer repetitions consistently.
Concrete and asymptotic security #
Equation (7.20) of [BS23], v0.6, §7.3, printed p. 263, in the product-key word model. The advantage of the hash-then-PRF test is bounded by the PRF wrapper's advantage plus the certified collector's multi-query collision success.
Equation (7.19) of [BS23], v0.6, §7.3, printed p. 262, in the product-key word model. The single-pair wrapper uses the strict fair-bit sampler of Lemma 7.1.
Theorem 7.7 of [BS23], v0.6, §7.3, printed pp. 262–265, for product keys and
uniform strict oracle-PPT tests. The components provide efficient hash evaluation, domain
recognition, unary key and digest width schedules, computational UHF security, and PRF
security. The real game uses the composed evaluator with fresh independent keys. Its ideal
game uses one lazy random function on the same valid words. Invalid queries receive []
in both games and repeated queries are allowed. The composition's evaluator is certified by
computableInPolyTime_hashThenPRFWord.