| The KHAZAD Block Cipher |

| SHARK | KHAZAD | |
|---|---|---|
| Number of rounds | ||
| Key schedule | affine mapping derived from the cipher itself in CFB mode |
Feistel key evolution using the cipher round function itself |
| GF(28) reduction polynomial | x8 + x7 + x6 + x5 + x4 + x2 + 1 (0x1F5) | x8 + x4 + x3 + x2 + 1 (0x11D) |
| Origin of the S-box | mapping u -> u-1 over GF(28), plus affine transform |
recursive structure |
| Origin of the diffusion matrix | Reed-Solomon code | Involutional MDS code |
| u | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | A | B | C | D | E | F |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| P(u) | 3 | F | E | 0 | 5 | 4 | B | C | D | A | 9 | 6 | 7 | 8 | 2 | 1 |
| u | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | A | B | C | D | E | F |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Q(u) | 9 | E | 5 | 6 | A | 2 | 3 | C | F | 0 | 4 | D | 7 | B | 1 | 8 |
|
.
