In symmetric encryption we use ONE SHARED KEY to encrypt and decrypt.

It only provides confidentiality.

image.png

Stream Cipher vs. Block Cipher

image.png

image.png

Stream Cipher

image.png

image.png

Block Cipher

Input of fixed length → Output in the same length

Most block ciphers are SP-Networks. AES (Advanced Encryption Standard) is an SP-Network. AES is used by almost everything in security.

Substitution Box

We have a translation table which changes depending on how the S-Box is designed. Here we have a random example of one, which is a 4-bit S-Box. AES uses 8-bit S-Boxes.

image.png

Permutation Box

Here we exchange/switch certain bits. In our example we do this every 8-bits. We would call this an 8-bit P-Box. AES uses 128, 256 or even more bits.

image.png

SP-Network

Here is an example in which we combine the two to encrypt and decrypt. This would be a very simple block cipher.

image.png

AES (Advanced Encryption Standard)