Cryptography
Cryptography is the study of techniques for securing data from unauthorized access or alterations. It involves converting plaintext into ciphertext using reversible algorithms.
Cryptographic systems are generically classified along three independent dimensions:
- Type of operations: Encryption involves substitution (each element in plaintext is mapped into another element) and transposition(each element in plaintext is rearranged). Most systems use multiple stages of both
- Number of keys used: if both sender and receiver use same key, system is referred to as symmetric. If sender and receiver use different key, system is referred to as asymmetric
- Ways in which plaintext is processed: Block ciphers processes single input block at a time, stream cipher processes input elements continuously, producing output one element at a time
A cryptanalyst is a specialist who studies and breaks cryptographic systems. Their main role is to analyze and attempt to decrypt ciphertext without having access to the original encryption key.
| Type of Attack | Information Known to Cryptanalyst | |
| 1 | Ciphertext only | • Encryption algorithm • Ciphertext to be decoded |
| 2 | Known plaintext | • Encryption algorithm • Ciphertext to be decoded • One or more plaintext–ciphertext pairs formed with the secret key |
| 3 | Chosen plaintext | • Encryption algorithm • Ciphertext to be decoded • Plaintext message chosen by cryptanalyst, together with its corresponding cipher text generated with the secret key |
| 4 | Chosen ciphertext | • Encryption algorithm • Ciphertext to be decoded • Purported ciphertext chosen by cryptanalyst, together with its corresponding decrypted plaintext generated with the secret key |
| 5 | Chosen text | • Encryption algorithm • Ciphertext to be decoded • Plaintext message chosen by cryptanalyst, together with its corresponding cipher text generated with the secret key • Purported ciphertext chosen by cryptanalyst, together with its corresponding decrypted plaintext generated with the secret key |
An encryption scheme is computationally secure if the ciphertext generated by the scheme meets one or both of the following criteria:
- The cost of breaking the cipher exceeds the value of the encrypted information.
- The time required to break the cipher exceeds the useful lifetime of the information.
Feistel Cipher Structure
Feistel structure is common design in symmetric block ciphers.
The inputs to encryption algorithm are plaintext block of length 2w bits and key K
Plaintext block is divided into two halves . The two halves of data pass through n rounds of processing then combine to produce ciphertext block
Each round I has as inputs derived from previous round as well as a subkey derived from overall K.
Pg 633
Idk if this is included
Key design aspects include:
- Block Size: Larger blocks enhance security but can slow down processing. A 128-bit block size is commonly used.
- Key Size: Larger keys increase security but may impact speed. Modern algorithms often use 128-bit keys.
- Number of Rounds: Multiple rounds improve security. Typically, 16 rounds are used.
- Subkey Generation: Complex subkey generation adds to security by making cryptanalysis harder.
- Round Function: A more complex round function generally offers better resistance to attacks.
- Speed: Encryption must be fast enough for software applications.
- Analysis: The algorithm should be easy to analyze to ensure robustness. For instance, DES is not easily analyzed due to its complexity.
