| Home Page |
| Course Page |
S3 = S1 + S0 (mod 2)
S4 = S2 + S1 (mod 2)
S5 = S3 + S2 (mod 2)
S3 = P2 S2 + P1 S1 + P0 S0 (mod 2)
S4 = P2 S3 + P1 S2 + P0 S1 (mod 2)
S5 = P2 S4 + P1 S3 + P0 S2 (mod 2)
In this example, P2 = 0, P1 = 1, P0 = 1
1 = P3 0 + P2 1 + P1 0 + P0 1 (mod 2)
1 = P3 1 + P2 0 + P1 1 + P0 0 (mod 2)
1 = P3 1 + P2 1 + P1 0 + P0 1 (mod 2)
1 = P3 1 + P2 1 + P1 1 + P0 0 (mod 2)
These are 4 linear equations in 4 unknowns which we can solve by Gaussian elimination, or as follows:
So the feedback coefficients are P3 P2 P1 P0 = 0 0 1 1
x0 x1 x2 x3 x4 x5 x6 x7 x8 x9 x10 x11 x12 x13 x14 x15
0x61707865 key_0 key_1 key_2 key_3 0x3120646e nonce_0 nonce_1 counter_0 counter_1 0x79622d36 key_0 key_1 key_2 key_3 0x6b206574
For round = 1 to 10 do:
// columnround
quarterround(x0, x4, x8, x12)
quarterround(x5, x9, x13,x1 )
quarterround(x10,x14,x2, x6 )
quarterround(x15,x3, x7, x11)
// rowround
quarterround(x0, x1, x2, x3 )
quarterround(x5, x6, x7, x4 )
quarterround(x10,x11,x8, x9 )
quarterround(x15,x12,x13,x14)
| Course Page |
| Home Page |