Let $H_k(x)$ be known to be a PRF from the family of PRFs defined by
- $H_k(x): \{0,1\}^{n} \times \{0,1\}^{n} \rightarrow \{0,1\}^{n}$, and then define
- $F_k(x) = H_k(x \oplus H_k(x))||H_k(x)$.
Here, addition is over $n$-bit integers modulo 2.
Question : Is $F_k(x)$ a PRF?
This question was presented at the end of my lecture notes but left as an exercise to the reader, and my intuition leads me to believe that this is not necessarily a PRF as I think there exists a counterexample where if the chosen $k$ yields a bad PRF from the family, then an attacker can choose inputs that will cause it to be obvious if the outputs are from $F_{k}$ versus a random function. However, I'm struggling to think of a way to define this $H_{k}$ for a bad $k$.
Any thoughts are helpful!