2076 1

CSC327 · 2076 · 10 marks

Cryptography Question Among monoalphabetic and polyalphabetic cipher, which one is more vulnerable? Justify your statement. Which types of keys are considered weak keys in DES? Explain the round operation in IDEA.

Cryptography Question

Among monoalphabetic and polyalphabetic cipher, which one is more vulnerable? Justify your statement. Which types of keys are considered weak keys in DES? Explain the round operation in IDEA.[10]

CryptographyChapter 2: Symmetric CiphersInternational Data Encryption Standard

Quick answer

Monoalphabetic cipher is more vulnerable than polyalphabetic cipher.

Cryptography: Monoalphabetic vs Polyalphabetic, DES Weak Keys, and IDEA Round Operation


Part A: Monoalphabetic vs Polyalphabetic, Which is More Vulnerable?

Definition

  • Monoalphabetic Cipher: A substitution cipher where each plaintext letter is always replaced by the same fixed ciphertext letter throughout the entire message. Example: Caesar Cipher.
  • Polyalphabetic Cipher: A substitution cipher that uses multiple substitution alphabets in rotation. Example: Vigenere Cipher.

Justification

FeatureMonoalphabeticPolyalphabetic
Substitution alphabets usedSingle fixed alphabetMultiple alphabets in rotation
Letter frequency preserved?YesNo (flattened)
Vulnerable to frequency analysis?Yes, easilyMuch harder
Security levelLowHigher

Why monoalphabetic is weaker:

  1. Since every occurrence of a plaintext letter maps to the same ciphertext letter, the statistical frequency distribution of the original language is preserved in the ciphertext.
  2. An attacker can perform frequency analysis: in English, 'E' appears ~13% of the time, 'T' ~9%, etc. By counting ciphertext letter frequencies and matching them to known language frequencies, the key can be recovered without brute force.
  3. In polyalphabetic ciphers, the same plaintext letter is encrypted differently depending on its position (e.g., 'E' may become 'H' at one position and 'R' at another). This flattens the frequency distribution, making frequency analysis ineffective.

Conclusion

Monoalphabetic cipher is significantly more vulnerable because its one-to-one fixed mapping leaks the statistical patterns of the plaintext language, allowing easy cryptanalysis through frequency analysis.


Part B: Weak Keys in DES

Background

DES is a block cipher that encrypts 64-bit plaintext using a 56-bit key over 16 rounds, generating 16 subkeys (one per round) through a key schedule.

Definition of Weak Keys

Weak keys in DES are keys that produce identical subkeys for all 16 rounds. This means:

$$E_K(E_K(P)) = P$$

That is, encrypting twice with the same weak key returns the original plaintext, making encryption equivalent to decryption. This severely reduces security.

The 4 Weak Keys

Weak Key (Hex)Bit Pattern
0101 0101 0101 0101All zeros (after parity removal)
FEFE FEFE FEFE FEFEAll ones (after parity removal)
1F1F 1F1F 0E0E 0E0EFirst half zeros, second half ones
E0E0 E0E0 F1F1 F1F1First half ones, second half zeros

These keys produce subkeys that are either all zeros or all ones in both halves of the key register (C and D registers), so all 16 subkeys are identical.

Semi-Weak Keys

DES also has 12 semi-weak keys (6 pairs) where:

$$E_{K_1}(P) = D_{K_2}(P)$$

Encrypting with key $K_1$ is the same as decrypting with key $K_2$. These pairs produce only two distinct subkeys alternating across 16 rounds.

Why They Are Dangerous

  • Weak keys reduce the effective key space.
  • An attacker who suspects a weak key is in use can test only a handful of keys rather than $2^{56}$ possibilities.
  • In practice, weak keys should be detected and rejected during key generation.

Part C: Round Operation in IDEA

Overview

IDEA (International Data Encryption Algorithm) is a symmetric block cipher with the following parameters:

  • Block size: 64 bits
  • Key size: 128 bits
  • Structure: 8 full rounds + 1 output transformation (half round)
  • Subkeys: 52 subkeys of 16 bits each (6 per full round + 4 for output transformation)

Three Algebraic Operations

IDEA derives its strength from mixing three algebraically incompatible operations on 16-bit sub-blocks:

SymbolOperationModulus
$\oplus$Bitwise XOR$2^{16}$
$\boxplus$Addition$2^{16}$
$\odot$Multiplication$2^{16} + 1 = 65537$

These three operations come from different algebraic groups, making algebraic cryptanalysis extremely difficult.

Input Division

The 64-bit plaintext block is divided into four 16-bit sub-blocks:

$$X_1, \quad X_2, \quad X_3, \quad X_4$$

Steps in One Full Round (using subkeys $K_1$ through $K_6$)

Step 1: Apply first four subkeys

$$a = X_1 \odot K_1$$ $$b = X_2 \boxplus K_2$$ $$c = X_3 \boxplus K_3$$ $$d = X_4 \odot K_4$$

Step 2: XOR cross combinations

$$e = a \oplus c$$ $$f = b \oplus d$$

Step 3: MA (Multiplication-Addition) Structure

The MA structure uses subkeys $K_5$ and $K_6$:

$$g = e \odot K_5$$ $$h = (f \boxplus g) \odot K_6$$ $$i = g \boxplus h$$

Step 4: XOR to produce round outputs

$$Y_1 = a \oplus h$$ $$Y_2 = c \oplus h$$ $$Y_3 = b \oplus i$$ $$Y_4 = d \oplus i$$

The final round output $(Y_1, Y_2, Y_3, Y_4)$ becomes the input to the next round (or, after the eighth round, to the output transformation), and the swap of the two middle blocks between rounds ensures full diffusion of the plaintext bits across the 64-bit block by the end of the cipher.

Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.