Block Ciphers · Cryptography and Network Security

Groups

1. What a Group Is (Four Axioms)

A group (G,∘)(G, \circ) is a set with an operation satisfying closure, associativity, identity, inverse:

  1. Closure: a,b∈G⇒a∘b∈Ga, b \in G \Rightarrow a \circ b \in G.
  2. Associativity: (a∘b)∘c=a∘(b∘c)(a \circ b) \circ c = a \circ (b \circ c).
  3. Identity: ∃e:a∘e=e∘a=a\exists e: a \circ e = e \circ a = a.
  4. Inverse: ∀a  ∃a−1:a∘a−1=e\forall a \; \exists a^{-1}: a \circ a^{-1} = e.

Abelian (commutative) if additionally a∘b=b∘aa \circ b = b \circ a. Finite if ∣G∣=n|G| = n (order); cyclic if some gg generates all: G={g0,g1,…,gn−1}G = \{g^0, g^1, \dots, g^{n-1}\}. Cryptography lives in finite abelian/cyclic groups: (Zn,+)(\mathbb{Z}_n, +), (Zp∗,×)(\mathbb{Z}_p^*, \times), elliptic-curve groups.

2. Worked Examples (Check All Four)

Set + op Identity Inverse Group?
(Z,+)(\mathbb{Z}, +) 00 −a-a ✓ infinite abelian
(Z7,+)(\mathbb{Z}_7, +) i.e. {0..6}\{0..6\} mod 7 00 7−a7 - a ✓ cyclic, generator 1, 3, 5...
(Z7∗,×)={1..6}(\mathbb{Z}_7^*, \times) = \{1..6\} mod 7 11 a−1a^{-1}: 2−1=42^{-1} = 4 since 2×4=8≡12 \times 4 = 8 \equiv 1 ✓ cyclic order 6, generator 3: 31..36=3,2,6,4,5,13^1..3^6 = 3,2,6,4,5,1
(Z8∗,×)={1,3,5,7}(\mathbb{Z}_8^*, \times) = \{1,3,5,7\} 11 3−1=33^{-1} = 3 (9≡19 \equiv 1), 5−1=55^{-1} = 5, 7−1=77^{-1} = 7 ✓ abelian order 4, NOT cyclic (no element order 4)
(Z8,×)(\mathbb{Z}_8, \times) incl. evens — 2,4,6 have none ✗ not a group (no inverses)

Generator check: 33 mod 7: 31=33^1 = 3, 32=23^2 = 2, 33=63^3 = 6, 34=43^4 = 4, 35=53^5 = 5, 36=13^6 = 1 — all six nonzero residues ✓. Element order divides group order (Lagrange): orders in Z7∗\mathbb{Z}_7^* divide 6 (1,2,3,61, 2, 3, 6).

3. Key Theorems for Cryptography

  • Lagrange: ∣H∣∣∣G∣|H| \mid |G| for subgroup HH; hence a∣G∣=ea^{|G|} = e for all aa — the engine behind Fermat (ap−1≡1a^{p-1} \equiv 1), Euler (aϕ(n)≡1a^{\phi(n)} \equiv 1), RSA correctness (Module 5).
  • Cyclic ⇒\Rightarrow discrete-log setting: y=gxy = g^x easy, x=log⁡gyx = \log_g y hard (Module 5 Topic 6: Diffie–Hellman, ElGamal, DSA live here).
  • Subgroup structure: Zp∗\mathbb{Z}_p^* has exactly one subgroup per divisor of p−1p-1 — small-subgroup attacks confine keys there if validation skipped (use safe primes / cofactor clearing).

4. Why Groups Open the Algebra Block (Topics 9–12)

Groups need only ONE operation; rings add a second (+, ×), fields add inverses for ×. AES's GF(28)GF(2^8) (Module 3–4) is a field under (⊕,∙)(\oplus, \bullet) — its nonzero elements form a cyclic group of order 255 (generator = x+1x+1 = 0x03). Every S-box/power computation is group exponentiation.

Exam Points

  • Four axioms verbatim + abelian/cyclic definitions — 2-mark opener.
  • Z7∗\mathbb{Z}_7^* generator trace (3i=3,2,6,4,5,13^i = 3,2,6,4,5,1) and inverse (2−1=42^{-1} = 4) — standard numerical.
  • Non-example (Z8,×)(\mathbb{Z}_8, \times) with reason (evens lack inverses).
  • Lagrange a∣G∣=ea^{|G|} = e → Fermat/Euler/RSA bridge line.
Free AppAndroid App

Coursify Android App

Generate AI courses, take quick quizzes between classes, and master complex engineering concepts on the go.

← All Cryptography and Network Security modules