<P> In cryptography, an S - box (substitution - box) is a basic component of symmetric key algorithms which performs substitution . In block ciphers, they are typically used to obscure the relationship between the key and the ciphertext--Shannon's property of confusion . </P> <P> In general, an S - box takes some number of input bits, m, and transforms them into some number of output bits, n, where n is not necessarily equal to m . An m × n S - box can be implemented as a lookup table with 2 words of n bits each . Fixed tables are normally used, as in the Data Encryption Standard (DES), but in some ciphers the tables are generated dynamically from the key (e.g. the Blowfish and the Twofish encryption algorithms). </P>

What is the purpose of s-boxes in des