Professional Documents
Culture Documents
Two Fish
Two Fish
ALGORITHM
Jhansy Harshitha Vankayalapati
B190628EC
Introduction
Two Fish is a 128-bit symmetric-key block cipher and variable-length
key of size 128,192 or 256 bits.
• The cipher is a 16-round Feistel network.
Whitening
• Input and Output data are XOR-ed with eight subkeys K0…..K7.These
XOR operations are called input and output whitening.
• Input Whitening :
128-bit plain text (P0 P1 P2 P3)is given for the input whitening
which is XOR-ed with four keys(K0 K1 K2 K3). The resultant output is R0
R1 R2 R3.
Two Fish Round
• R0 AND R1 are passed through the function F. The results are F0 and
F1.
• R2 is XOR-ed with F0 and then rotated
right by one bit to get C2
• R3 is rotated left by one bit and
then XOR-ed with F1 to get C3