Professional Documents
Culture Documents
Simplified AES
Simplified AES
16-bit block
16-bit key
4 x 4 S-box
Field 16
Modulus X 4 + X + 1
2 rounds
SPN
Musa, A., Schaefer, E., and Wedig, S. 2010. “A Simplified AES Algorithm and
Its Linear and Differential Cryptanalysis.” Cryptologia 27(12), 148 – 177.
S-box
Construction of S-box
Input nibble
0101 X 2 +1
1011 Y 3 + Y +1
Affine transformation
(Y 3
)( ) ( ) ( )
+ Y 2 + 1 Y 3 + Y + 1 + Y 3 + 1 mod Y 4 + 1 =
1
Output nibble
0001
16-bit block (4 nibbles) N 0 N1 N 2 N3
N0 N2
N1 N3
Encryption operations
Nibble Substitution NS
S ( N0 ) S ( N2 )
S ( N1 ) S ( N3 )
Shift Row SR
N0 N2
N3 N1
Mix Columns MC
b0b1b2b3 c0 c1c2 c3
becomes
b4b5b6b7 c4 c5c6 c7
b0 ⊕ b6 b1 ⊕ b4 ⊕ b7 b2 ⊕ b4 ⊕ b5 b3 ⊕ b5 c0 ⊕ c6 c1 ⊕ c4 ⊕ c7 c2 ⊕ c4 ⊕ c5 c3 ⊕ c5
b2 ⊕ b4 b0 ⊕ b3 ⊕ b5 b0 ⊕ b1 ⊕ b6 b1 ⊕ b7 c2 ⊕ c4 c0 ⊕ c3 ⊕ c5 c0 ⊕ c1 ⊕ c6 c1 ⊕ c7
The transformation is
N0 N2 1 x2 N0 N2
N → 2 mod ( x 4 + x + 1)
1 N3 x 1 N1 N3
Key Schedule
W[0] W[1]
↓ |
SN ( RN )
→
10000000
Round constant
⊕ ← |
↓ ↓
W[2]
→ ⊕
| ↓
| W[3]
↓ |
→
00110000
Round constant
⊕ ←
SN(RN)
|
↓ ↓
W[4]
→ ⊕
↓
W[5]
K 0 = W[0] W[1]
K1 = W[2] W[3]
K 2 = W[4] W[5]
Key Schedule
pt
↓
A K0
↓
NS
↓
SR
↓
MC
↓
A K1
↓
NS
↓
SR
↓
A K2
↓
CT
plaintext ok
o k
0110 1111 0110 1011
N0 N1 N2 N3
CIPHERTEXT 0000 0111 0011 1000