Block Ciphers · Cryptography and Network Security

Rings

1. What a Ring Is (Group + Second Operation)

A ring (R,+,×)(R, +, \times) is an abelian group under ++ plus a second operation ×\times with closure, associativity, distributivity:

  • (R,+)(R, +): abelian group (identity 00, inverses −a-a).
  • (R,×)(R, \times): closed, associative; distributes: a(b+c)=ab+aca(b+c) = ab + ac.
  • Commutative ring: ab=baab = ba (all crypto examples: Z\mathbb{Z}, Zn\mathbb{Z}_n, polynomials).
  • With unity: multiplicative identity $1
    e 0$ exists.
  • Integral domain: commutative + unity + no zero divisors (ab=0⇒a=0ab = 0 \Rightarrow a = 0 or b=0b = 0) — e.g. Z\mathbb{Z}, but NOT Z6\mathbb{Z}_6 (2×3=02 \times 3 = 0).

Hierarchy: group (1 op) ⊂ ring (2 ops) ⊂ field (2 ops + ×-inverses) — each topic adds one property.

2. Worked Examples

Ring Zero / unity Inverses? Notes
(Z,+,×)(\mathbb{Z}, +, \times) 00 / 11 Only ±1\pm 1 have ×-inverses Integral domain, not a field
(Z6,+,×)(\mathbb{Z}_6, +, \times) 00 / 11 1−1=11^{-1} = 1, 5−1=55^{-1} = 5; 2,3,4 none Zero divisors (2×3=02 \times 3 = 0) — needs care in RSA-style mod nn
(Z7,+,×)(\mathbb{Z}_7, +, \times) 00 / 11 All nonzero (it's a field too) Zp\mathbb{Z}_p prime ⇒\Rightarrow field
Polynomials Z2[x]\mathbb{Z}_2[x] 00 / 11 Only 11 AES field built as quotient of this ring (Module 3 Topic 3–4)

Zero-divisor check: mod 6: 2×3=6≡02 \times 3 = 6 \equiv 0 with neither factor 00 — so cancellation fails ($2a = 2b
ot\Rightarrow a = b);mod7:); mod 7: 2a = 2b \Rightarrow a = balways(multiplyby always (multiply by 2^{-1} = 4$). Exams contrast these two cases.

3. Why Rings Matter for AES and RSA

  • AES S-box arithmetic happens in GF(28)=Z2[x]/(m(x))GF(2^8) = \mathbb{Z}_2[x]/(m(x)) — a quotient of the polynomial ring Z2[x]\mathbb{Z}_2[x] by irreducible m(x)=x8+x4+x3+x+1m(x) = x^8+x^4+x^3+x+1. Ring theory (ideals, quotients) is what makes " mod m(x)\bmod m(x)" rigorous.
  • RSA works in ring Zn\mathbb{Z}_n (n=pqn = pq composite): elements coprime to nn form group Zn∗\mathbb{Z}_n^* (ϕ(n)\phi(n) of them — Euler), non-coprimes are zero divisors. RSA correctness uses ring + group facts together.
  • Homomorphic encryption (Paillier, BFV) computes directly on ring structure: E(a)⊕E(b)=E(a+b)E(a) \oplus E(b) = E(a+b) uses the additive group of a ring.

4. Subrings, Ideals, Quotients (One-Line Each for Exams)

  • Subring: subset closed under both ops (e.g. even integers 2Z⊂Z2\mathbb{Z} \subset \mathbb{Z}).
  • Ideal: subring absorbing multiplication (r∈R,a∈I⇒ra∈Ir \in R, a \in I \Rightarrow ra \in I) — multiples (m(x))(m(x)) in Z2[x]\mathbb{Z}_2[x]: the modulus of AES arithmetic.
  • Quotient ring R/IR/I: cosets with mod-II arithmetic — Zn=Z/(n)\mathbb{Z}_n = \mathbb{Z}/(n) and GF(28)=Z2[x]/(m(x))GF(2^8) = \mathbb{Z}_2[x]/(m(x)) are both quotients. This single idea builds every crypto field.

Exam Points

  • Ring axioms + commutative/unity/integral-domain refinements — 2-mark opener.
  • Z6\mathbb{Z}_6 zero-divisor (2×3=02 \times 3 = 0) vs Z7\mathbb{Z}_7 cancellation — standard contrast numerical.
  • Hierarchy group ⊂ ring ⊂ field with one added property each.
  • Quotient preview: Zn\mathbb{Z}_n, GF(28)GF(2^8) as quotients (bridge to Modules 3–4).
Budget AppAndroid App

Pocketly on Android

Log daily food, travel, and hostel expenses instantly. Set monthly spending limits and see where your money goes without complex spreadsheets.

← All Cryptography and Network Security modules