Documentation

CslibFrontier.Crypto.Computational.OneWay.WeakNotStrong

A weak one-way function that is not strongly one-way #

If one-way functions exist, then some weak one-way function is not strongly one-way Goldreich, Exercise 7.3 (Cslib.Crypto.OneWay.exists_weakOneWay_not_oneWay).

The draft gives no guideline. The construction lets the first input bit choose between the identity and f: g(1 x) = 1 x and g(0 x) = 0 f(x) (Cslib.Crypto.OneWayEasyHalf.easyHalf). Returning the challenge inverts g whenever the first bit is 1, so with probability at least one half, and g is not one-way. An inverter for g that succeeded with probability at least 3/4 would invert f on the challenges 0 f(x) with probability at least one half (Cslib.Crypto.OneWayEasyHalf.succProbability_inversionGame_succ_le), so g is weakly one-way with the polynomial p(n) = 4 of Definition 7.4.

Main definitions #

Main results #

References #

Identity on inputs whose first bit is 1; 0 f(x) on an input 0 x (and on the empty input, read as 0 followed by the empty word).

A preimage of 0 f(x) under easyHalf f has a tail that is a preimage of f x.

The inverter for f from an inverter for easyHalf f: prefix the challenge with 0, run the given inverter one length up and drop the first bit of its candidate.

Inversion reduction. At length n + 1, half of the inputs are easy, and on the other half the inverter for easyHalf f is an inverter for f at length n.

Returning the challenge inverts easyHalf f with probability at least one half at every positive length.

easyHalf f is weakly one-way when f is one-way: every efficient inverter fails with probability strictly greater than 1/4 from some length on.

easyHalf f is not one-way, for every f: returning the challenge succeeds with probability at least one half.

Goldreich, Exercise 7.3: if one-way functions exist, then some weak one-way function is not strongly one-way. Weak one-wayness is Cslib.Crypto.WeakOneWay (Definition 7.4: some positive polynomial p bounds the failure probability of every uniform strict PPT inverter below by 1 / p(n) for all sufficiently large n); strong one-wayness is Cslib.Crypto.OneWay (Definition 7.1).