I have looked at the idea of dual ciphers but I cannot convince myself I really understand them. I think I just need a very simple worked example.
I was given the definition: Two ciphers $E$ and $E′$ are dual ciphers if they are isomorphic, i.e. if there exist invertible transformations $f(⋅)$, $g(⋅)$, $h(⋅)$ such that $\forall \ P$ and $K$ $$f(E_K(P))=E′_{g(K)}(h(P))$$ However, this is not easy for me to follow. I think $E$ is the encryption method (in my case below, $[(P \times K_1)+ K_2] \bmod26$). Yet looking at the definition it seems $f(.)$ is the cipher, is that right? And $P$ and $K$ are the plaintext and cipher key respectively. But I really don't understand what $g(K)$ and $h(P)$ are, or how to derive them.
Let's say my encryption cipher is: $C = [(P \times K_1)+ K_2] \bmod26$
- How do I make a dual cipher of it? A very simple one is fine. If my cipher is not suitable, would you give an equally simple one that can have a dual cipher?
- In my dual cipher from $.1$, what are my $g(K)$ and $h(P)$?
- What could I do to this cipher to makes it a tweak but not a dual cipher?
- How do I show my tweak is not a dual cipher?
This has been bugging me for a while so a simple example would be very much appreciated. I have posted similar questions but the answers are too difficult for my age and level.