Finite Fields and Confidentiality · Cryptography and Network Security

Finite Fields of the Form GF(p)

Watch lectures

Finite Fields of the Form GF(p)

1. The Field Zp\mathbb{Z}_p (pp Prime)

Residues {0,1,…,p−1}\{0, 1, \dots, p-1\} with mod-pp addition and multiplication form the finite field GF(p)GF(p): closure, both identities (00, 11), additive inverses (−a=p−a-a = p - a), and — because pp prime forces gcd⁡(a,p)=1\gcd(a, p) = 1 for all $a
e 0$ — every nonzero element has a multiplicative inverse via Extended Euclid (Topic 1).

GF(p)=(Zp,+,× mod p),a−1≡x where ax+py=1GF(p) = (\mathbb{Z}_p, +, \times \bmod p), \quad a^{-1} \equiv x \text{ where } ax + py = 1

Worked GF(7)GF(7) tables (exam favourite): addition 3+5=8≡13 + 5 = 8 \equiv 1; multiplication 3×5=15≡13 \times 5 = 15 \equiv 1 → 3−1=53^{-1} = 5, 5−1=35^{-1} = 3. Full inverse row: 1−1=11^{-1} = 1, 2−1=42^{-1} = 4 (2×4=8≡12 \times 4 = 8 \equiv 1), 3−1=53^{-1} = 5, 4−1=24^{-1} = 2, 5−1=35^{-1} = 3, 6−1=66^{-1} = 6 (6×6=36≡16 \times 6 = 36 \equiv 1). Note ap−1≡1a^{p-1} \equiv 1 check: 36=729=104×7+13^6 = 729 = 104 \times 7 + 1 ✓ (Fermat preview, Module 5 Topic 2).

2. Why Primality Is Non-Negotiable

Z6\mathbb{Z}_6 fails: 2×3≡02 \times 3 \equiv 0 (zero divisors), 2,3,42, 3, 4 have no inverses — not a field, just a ring. Z8\mathbb{Z}_8 fails on evens. Only prime modulus gives all-nonzero invertibility:

nn Units Zn∗\mathbb{Z}_n^* Field?
6 {1,5}\{1, 5\} (ϕ=2\phi = 2) ✗ (2,3,4 dead)
8 {1,3,5,7}\{1,3,5,7\} (ϕ=4\phi = 4) ✗ (evens dead)
7 {1..6}\{1..6\} (ϕ=6\phi = 6) ✓ GF(7)GF(7)
11 {1..10}\{1..10\} (ϕ=10\phi = 10) ✓ GF(11)GF(11)

ϕ(p)=p−1\phi(p) = p - 1 always; composite nn loses ϕ(n)<n−1\phi(n) < n-1 elements to non-invertibility.

3. Cyclic Multiplicative Group and Primitive Roots

GF(p)∗GF(p)^* is cyclic of order p−1p-1: some primitive root gg generates all nonzero elements. GF(7)GF(7): g=3g = 3: 31..36=3,2,6,4,5,13^1..3^6 = 3, 2, 6, 4, 5, 1 ✓ (all six). Test: gg primitive ⟺ $g^{(p-1)/q}
ot\equiv 1foreveryprimefactor for every prime factor qof of p-1( (p = 7:: p-1 = 6 = 2 \times 3;; 3^{6/2} = 3^3 = 27 \equiv 6
e 1;; 3^{6/3} = 3^2 = 2
e 1→primitive✓).Contrast → primitive ✓). Contrast g = 2:: 2^3 = 8 \equiv 1→order3,NOTprimitive(generates → order 3, NOT primitive (generates {1,2,4}$ only).

4. GF(p)GF(p) in Real Cryptography

  • Diffie–Hellman/ElGamal/DSA: public parameters (p,g)(p, g) with gg primitive; security = discrete log in GF(p)∗GF(p)^* (Module 5 Topic 6). Standard primes: RFC 3526 MODP groups (pp = 2048–8192-bit safe primes).
  • Elliptic curves mod pp: curve points use GF(p)GF(p) coordinates — same field, richer group.
  • Schnorr/EdDSA nonce fields: scalars live in prime-order subgroups of GF(p)∗GF(p)^*.
  • Safe-prime choice p=2q+1p = 2q+1 (qq prime) kills small-subgroup confinement (only subgroups orders 1,2,q,2q1, 2, q, 2q).

Exam Points

  • GF(7)GF(7) addition/multiplication traces + full inverse row — standard 5-marker.
  • "Zn\mathbb{Z}_n field ⟺ nn prime" + Z6\mathbb{Z}_6/Z8\mathbb{Z}_8 failing elements — 2–3 marks.
  • Primitive-root test $g^{(p-1)/q}
    e 1with with g = 3vs vs g = 2$ mod 7 — favourite numerical.
  • DH (p,g)(p, g) parameter link.
AI LearningWeb Platform

Coursify — Personal AI Course Generator

Struggling with a difficult subject or concept? Turn any engineering topic into a structured course with interactive lessons, quizzes, and research-backed explanations.

← All Cryptography and Network Security modules