Score:3

Why is a Feistel Network invertible?

ng flag

enter image description here enter image description here

As it is depicted above, the Feistel Network uses random function fi which is not required to be invertible. However, if fi is not invertible, how can fi(Li) == fi(Ri-1)? Furthermore, why Feistel Network is invertible?

Paul Uszak avatar
cn flag
Draw the full schematic of DES instead and follow the plain/cipher text through it carefully. Function F $\ne$ the whole network.
fgrieu avatar
ng flag
Hint: use the properties of XOR. It's commutative, associative, and every element is it's own inverse. Also, by definition, a function always has the same output for any given input.
fgrieu avatar
ng flag
TL;DR: the Feistel _structure_ always yields a reversible transformation, regardless of if the _round functions_ $f_i$ are reversible or not. To prove this, use the properties of XOR. It's commutative, associative, and every element is it's own inverse. Also, by definition, a function always has the same output for any given input.
Score:2
cn flag
jjj

You don't need to invert the $f_i$ to invert the whole function. You know $L_d$, so you know $R_{d-1}$ and the the input of $f_d$. The xor can reverse itself. So you get $L_{d-1}$ by simply calculating $R_d$ xor $f_d(L_d))$. With this steps you just keep going until you know $R_0$ and $L_0$

Score:1
in flag

how can fi(Li) == fi(Ri-1)

Simply because $L_i = R_{i-1}$. It is clearly visible on your pictures.

Xinyu Tu avatar
ng flag
Oh yes, I am so stupid! :(
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.