Historical context: DES, 3DES, and RC4 appear here to explain cryptographic design. They are legacy algorithms, not recommendations for new systems. Performance and brute-force timings are illustrative estimates from the notes, not hardware-independent guarantees.
Algorithm-transition context: NIST SP 800-131A Rev. 2
Symmetric Encryption
Also known as conventional or single-key encryption.
Uses same key for encryption and decryption
Consists of:
- Plain text: The original message or data input into the encryption algorithm.
- Encryption Algorithm: Performs substitutions and transformations on plaintext.
- Secret key: A key input into the encryption algorithm that influences the substitutions and transformations.
- Ciphertext: The scrambled message output, which is dependent on both plaintext and the secret key.
- Decryption Algorithm: Reverses the encryption process, converting ciphertext back into plaintext using the secret key.
Requirements for Secure Symmetric Encryption
- Strong Encryption Algorithm: The algorithm should be resistant to decryption, even if the attacker knows the algorithm and possesses ciphertexts.
- Secure Key Distribution: The secret key must be securely shared between sender and receiver and kept confidential.
Attacks on symmetric encryption
- Crypt Analysis:
Exploits the nature of the algorithm and possibly known plaintext-ciphertext pairs.
Deduce specific plaintext or the secret key.
If successful, compromises all past and future messages encrypted with that key. - Brute-Force Attack:
Try every possible key until the correct one is found.
On average, half of all possible keys values need to be brute forced before finding solution.
Recognizing plaintext after decryption, especially if the message is compressed or encoded in a non-standard format.

Symmetric Encryption methods:
| Stream Cipher | Block Cipher |
| Encrypts data one bit or byte at a time, processing the plaintext in a continuous stream. It generates a pseudo-random key stream, which is XORed with the plaintext to produce ciphertext. Generally faster and suitable for real-time data processing (like voice or video streams). e.g. RC4, Salsa20, ChaCha20 | Encrypts data in fixed-size blocks (e.g., 64-bit, 128-bit blocks). Uses various modes like ECB, CBC, CTR to manage encryption across multiple blocks. e.g. AES, DES, 3DES |


Symmetric Block Encryption Algorithms
Block Ciphers: Processes plaintext in fixed-size blocks, producing ciphertext blocks of equal size.
For longer plaintexts, the algorithm processes them as a series of fixed-size blocks.
e.g. Data Encryption Standard (DES), Triple DES, and Advanced Encryption Standard (AES).
- Data Encryption Standard (DES)
Block Size: 64 bits (plaintext and ciphertext).
Key Size: 56 bits.
Concerns:
- Possibility of cryptanalysis is possible, but
Despite extensive study, no fatal weaknesses have been discovered.
Keyspace is the range of all possible keys that could be used to encrypt or decrypt data.
Key Space: 56-bit key allows for (approximately ) possible keys.
- Key length is very small since
Processing power refers to the capability of a computer or a group of computers to perform calculations, such as encrypting data or testing keys, in a given amount of time.
Commercial Processors: Capable of testing around 1 billion keys per second.
Multicore Machines: Achieve about half a billion encryptions per second.
Supercomputers: Can perform encryptions per second.
A single PC can crack DES in about a year.
Supercomputers can crack DES in about an hour.
| Algorithm | Plaintext Block Size (bits) | Ciphertext Block Size (bits) | Key Size (bits) |
| DES | 64 | 64 | 56 |
| Triple DES | 64 | 64 | 112 or 168 |
| AES | 128 | 128 | 128, 192, or 256 |
- Triple DES (3DES)
3DES enhances DES by applying the DES algorithm three times with either two or three unique keys.
Key Sizes: Key size of 112 or 168 bits.
+ve) Enhanced Security, 168-bit key length makes it resistant to brute-force attacks.
+ve) DES algorithm has been extensively scrutinized, with no cryptanalytic attack discovered, except brute-force.
-ve) Slower Performance: Requires three times the calculations of DES, making it slower, especially in software.
-ve) Both DES and 3DES use a 64-bit block size, which is less efficient and less secure compared to larger block sizes.
- Advanced Encryption Standard (AES)
3DES's drawbacks (slow performance, small block size) led NIST to seek a new encryption standard in 1997.
Symmetric block cipher.
128-bit block size.
Key lengths of 128, 192, and 256 bits.
Criteria included security, efficiency, memory needs, hardware/software suitability, and flexibility.
Modes of Operation:
- Electronic Codebook (ECB) Mode:
Encrypts data in fixed-length blocks (typically 64 or 128 bits) using the same key for each block.
A plaintext message is divided into blocks (P1, P2, ..., Pn), and each is encrypted with the same key, producing ciphertext blocks (C1, C2, ..., Cn).
ECB may be vulnerable if plaintext has regular patterns (e.g., predictable fields at the start of messages), making it easier for a cryptanalyst to decrypt.
- Alternative Modes:
Developed to enhance security for large sequences of data by addressing the weaknesses of ECB.
Various modes, each with unique advantages,
Hardware-Based Acceleration
Intel and AMD offer hardware-based instructions to accelerate AES use, with tests showing encryption rates of half a billion per second on multicore Intel machines and 1013 per second on supercomputers.