A one-way function whose iterates are not one-way #
If one-way functions exist, then some one-way function f has iterates x ↦ f^[k |x|] x that
are not one-way, for every count k with k n ≥ 2 for all large n
([AB07], Chapter 10, Exercise 4). In particular this holds for k n = ⌈n ^ c⌉ with any
real c > 0. By contrast, iterating a one-way permutation by an efficiently computable count
that is eventually positive gives a one-way permutation; a count of zero gives the identity.
The construction starts from a one-way function g whose output length depends only on the
input length (OneWay.exists_fixedOutputLength). Call a word low-zero when its first
⌊|w| / 2⌋ bits are all false. Then
f x = 0^(|x| + 2 |g x| + 1)whenxis low-zero, andf x = 0^(|x| + |g x|) ++ 1 :: g xotherwise.
Both branches have length |x| + 2 |g x| + 1, so f has a single output length m n at each
input length n, as in the family of Definition 10.1. Every image of f is low-zero, so
f (f x) is the all-zero word whose length depends only on |x|. All inputs of one length
therefore share their second image, and every later iterate. The inverter for any iterate with at
least two steps simply answers 0^n. Inverting f itself still means inverting g, except on
low-zero inputs, which have probability at most 2^-(n / 2). The marker bit 1 makes the
challenge determine g x.
Main definitions #
Cslib.Crypto.IterateCounterexample.collapse: the one-way functionfbuilt fromg.
Main results #
Cslib.Crypto.IterateCounterexample.oneWay_collapse:fis one-way whengis one-way, through the strict-PPT reductionmarkInverter(isPPT_markInverter).Cslib.Crypto.IterateCounterexample.length_collapse,Cslib.Crypto.IterateCounterexample.iterate_collapse_eq: fixed output length, and equal second images for inputs of equal length.Cslib.Crypto.IterateCounterexample.not_oneWay_iterate_collapse: every iterate with eventually at least two steps is not one-way.Cslib.Crypto.exists_oneWay_not_oneWay_iterate,Cslib.Crypto.exists_oneWay_not_oneWay_iterate_ceil_rpow: the exercise, with a witness of polynomial-time fixed output length.
References #
- S. Arora, B. Barak, Computational Complexity: A Modern Approach, web draft 2007-01-08, Chapter 10, Exercise 4, printed p. 204 (PDF p. 220).
A word is low-zero when its first ⌊|w| / 2⌋ bits are all false.
Second images coincide. If g has fixed output length, then at least two steps of
collapse g send all inputs of the same length to the same word.
Iterates of collapse g are not one-way. For g of fixed output length and a count k
with k n ≥ 2 for all large n, the constant inverter answering 0^n inverts
x ↦ (collapse g)^[k |x|] x with probability one at every such length.
The inverter for g built from an inverter for collapse g: mark the challenge.
markInverter adversary is uniform strict PPT when adversary is.
Inverting collapse g succeeds at most as often as inverting g with the marked challenge,
plus the probability 2^-(n / 2) of a low-zero input.
Iterates of one-way functions need not be one-way ([AB07], Chapter 10,
Exercise 4). If a one-way function exists, then some one-way function f has a single output
length m n for all inputs of length n (with m polynomial-time in unary), as in the family of
Definition 10.1, and x ↦ f^[k |x|] x is not one-way for every count k with k n ≥ 2 for all
large n.
The exercise's counts ([AB07], Chapter 10, Exercise 4): if a one-way function
exists, then some one-way function f with polynomial-time fixed output length has
x ↦ f^[⌈|x| ^ c⌉] x not one-way for every real c > 0.