Questions tagged [one-way-function]

A function which is easy to compute but hard to invert (i.e. find preimages for). The existence of one-way functions implies the possibility of many useful cryptographic schemes. No one-way functions have so far been proven to exist, but many likely candidates exist.

A one-way function is a function which is easy to compute but hard to invert: given the output $f(x)$ of the function for some randomly chosen unknown input $x$, it should not be feasible to find an input $y$ (which may or may not equal $x$) such that $f(y) = f(x)$.

Formally, a function $f: \{0,1\}^* \to \{0,1\}^*$ is one-way if it can be computed by a polynomial-time algorithm, and if, for every polynomial-time randomized algorithm $A$, every polynomial $p$ and all sufficiently large $n$,

$$ \mathrm{Pr}[\; f(A(f(x))) = f(x) \mid x \in \lbrace 0,1 \rbrace^n \;] < \frac{1}{p(n)} $$

i.e. the probability the any algorithm $A$ can find a preimage for $f(x)$, where $x$ is a string of length $n$, tends to zero faster than the reciprocal of any polynomial $p$.

No functions have been proven to be one-way, and indeed even the existence of one-way functions is an open problem. However, there do exist so-called "universal one-way functions", which are known to be one-way if one-way functions exist at all.

If one-way functions do exist, this implies the existence of various useful cryptographic tools, including pseudorandom generators, pseudorandom function families, commitment schemes, message authentication codes, digital signatures and IND-CCA2 secure encryption schemes. It would also imply a positive answer to the open problem of whether P ≠ NP.

Despite the lack of any existence proof, various functions are commonly believed to be likely to be one-way (and these functions underlie much of modern cryptography). Some examples include the multiplication of large primes, modular exponentiation and various cryptographic hash functions.

Closely related to one-way functions are so-called trapdoor one-way functions, which are easy to compute but hard to invert unless one knows a secret key used to construct the function. (Obviously, constructing the function from the key must itself be a one-way process as defined above.) Trapdoor one-way functions are the foundation of public-key cryptography.

See also: , , ,

282 questions
11
votes
2 answers

How to show that a one-way function proves that P ≠ NP?

According to this, the existence of a one-way function proves P ≠ NP. What is the proof of this? One way to show this is that if P = NP, then any function is easy to invert. P and NP are about decision problems though, not computation…
Christopher King
  • 819
  • 5
  • 19
7
votes
2 answers

Is $f(x)\oplus x$ a one-way function?

Given that $f$ is a OWF and $|f(x)|=|x|$ for all $x$, is $g(x)=f(x)\oplus x$ necessarily also a OWF?
Pqqwetiqe
  • 73
  • 1
  • 3
6
votes
1 answer

If a permutation $f$ is not one way, what can we say about $f^{p(n)}$?

Consider a permutation $f:\{0,1\}^*\rightarrow \{0,1\}^*$, which is not a one-way function, i.e. there exists an efficient probabilistic adversary $\mathcal{A}$ and some polynomial $q(n)$ such that for infinitely many…
Ryan
  • 107
  • 4
6
votes
1 answer

Comparing two definitions of one-way function

I'm reading Rafael Pass's lecture notes on one-way function and came across two definitions. The first one is: A function $f$ is one-way if $f$ can be computed in P.P.T. and there exists no non-uniform P.P.T. $A$ such that $\forall x \in \{0,1\}^*,…
qweruiop
  • 326
  • 1
  • 9
5
votes
1 answer

One-way functions and P=NP

This site contains various discussions of one-way functions and their relation to P versus NP. Some of these discussions use a language $L=\{(x',y) ~\mid~ x'\le x \text{ and } f(x)=y \}$, where $f:\Sigma^*\to\Sigma^*$ is the one-way function and…
Alexis
  • 153
  • 4
5
votes
2 answers

Probabalistic Polynomial-time Algorithms & One-way functions

I've been reading up on probabilistic polynomial-time algorithms and one-way functions, and I was hoping to get some guidance on the topic. A textbook I'm reading states the following for one of the conditions for one-way functions: Hard to invert:…
GraceTone
  • 71
  • 2
5
votes
1 answer

Worst case one way function

the worst-case one way function is defined as follows $$\forall A \exists x : pr(A(f(x))\in f^{-1}(f(x)))\neq 1$$ can you give any example of such function?
A.Solei
  • 405
  • 2
  • 10
5
votes
2 answers

Composing two one-way functions such that the result is not a one-way function

Is it possible to have two distinct one-way functions (called, say, $h$ and $g$) such that their composition $h \circ g = [\, x \mapsto h(g(x)) \,]$ is not one-way?
abbas
  • 165
  • 1
  • 8
5
votes
2 answers

One-way function definition

I cannot understand why a one-way function $f$ is defined in this way $\text{Pr}(f(A(f(x))) = f(x)) < \frac{1}{p(n)}$ and not $\text{Pr}(A(f(x)) = x) < \frac{1}{p(n)}$ where $A$ is a randomized algorithm. Where is the difference? Is the second one…
Mirianna
  • 153
  • 3
4
votes
1 answer

Simple explanation of weak one way function

I find difficult to understand what a weak one way function is. From textbooks: $\exists$ poly $Q$, $\forall$ PPT $\mathcal{A}$ such that: $$\Pr[x\leftarrow\{0,1\}^n; y=f(x); \mathcal{A}(1^n, f(x))=x' : f(x')=y] \leq 1 - 1/Q(n)$$ What does this…
graphtheory92
  • 773
  • 5
  • 14
4
votes
1 answer

Is the concatenation of two one-way functions a one-way function?

Suppose we are given two one way functions $f$ and $g$. We define a new function h that is the concatenation of f and g. That is, $h(x)=f(x), g(x)$, where the comma indicates concatenation. We want to figure out whether this is a one way function or…
4
votes
1 answer

If $P \neq NP$ why doesn't this prove the existence of OWF?

i know that $P = NP \Rightarrow$ non existence of OWF. but i don't understand why the claim: $P \neq NP \Rightarrow$ existence of OWF is wrong? An intuitive answer would be enough.
odu9
  • 373
  • 1
  • 11
4
votes
1 answer

Is a random circuit likely to compute a one-way function?

I remember reading somewhere that (under certain reasonable assumptions) a Boolean circuit with many inputs and outputs (assume equal number for now) chosen at random will be a one-way function with high probability. Is this true?
Demi
  • 4,793
  • 1
  • 19
  • 39
3
votes
1 answer

Is $g(x)$, the first $(n -\log(n))$ bit of $f(x)$, a (strong) one-way function?

Given a (strong) n-bit-by-n-bit one-way function $f$, is $g(x)$, the first $(n - \log(n))$ bit of $f(x)$, a (strong) one-way function, too? When reading Prof. Sanjam Garg's Graduate Cryptography lecture notes, I came across this problem. I am trying…
Leo
  • 83
  • 8
2
votes
0 answers

Is the concatenation of two one-way functions a one-way function when each function takes different inputs?

Similar to this question, but having two seperate inputs for each length preserving one way function $f$ and $g$, i.e. $h: \lbrace 0,1 \rbrace^{2\kappa} \to \lbrace 0,1 \rbrace^{2\kappa}, h(x) = f(x_1)||g(x_2)$ where $x_1$ and $x_2$ are two $\kappa$…
amlearn369
  • 51
  • 1
1
2 3 4 5