Split a 32-bit word into 16-bit halves. Lᵢ₊₁=Rᵢ; Rᵢ₊₁=Lᵢ XOR F(Rᵢ,Kᵢ). F is K XOR ROTL16(R,4). Rotation wraps discarded bits; XOR is carry-free. Swap final halves to encrypt; reverse keys to decrypt. The final swap and reverse-key recovery verify the calculation.
Confusion complicates the key-to-ciphertext relationship; diffusion spreads plaintext changes. A Hamming distance counts differing bits. This linear toy F cannot provide modern security even if more rounds are used.
CR03 · DES · permutations and complete round trace
DES consumes 64-bit blocks; PC-1 removes eight parity bits from the supplied 64-bit key. IP rearranges bits; E expands 32 to 48 bits; XOR with K, eight S-boxes compress to 32 bits; P permutes; 16 Feistel rounds, swap and IP inverse finish encryption. DES is historical only.