Polynomial Arithmetic
1. Polynomials over a Field (Why Rules Crypto)
A polynomial with coefficients in a field behaves like integers: add/subtract termwise, multiply by convolution, divide with remainder. Degree rules: , , division gives with . Crypto's home ring: — coefficients bits, addition = XOR, subtraction = addition.
2. Worked Examples (AES-Style Bytes)
Represent bytes as polynomials: 0x57 ; 0x83 .
- Addition: ( and cancel: ) →
0xD4. XOR of bytes:0x57 ⊕ 0x83 = 0xD4✓ — polynomial addition IS byte XOR. - Multiplication: (like terms vanish in pairs). Integer check fails — no carries in !
- Division: : → multiply-subtract (XOR): remainder ; next : remainder ; next : remainder . Quotient ✓ (matches multiplication above inverted).
3. GCD, Irreducibles, and Modular Polynomials
- GCD same Euclid with degrees: (from division above, zero remainder at divisor ).
- Irreducible = prime-like (no nontrivial factors): over is irreducible (no root or : , $f(1) = 1+1+1 = 1
e 0x^2+1 = (x+1)^2GF(2)$ — REDUCIBLE (freshman's dream!), unlike over reals. - Modular reduction: with AES : (move across: ). So multiplying bytes that overflow degree 7 reduces via this rule — MixColumns/
xtimemechanized.
xtime (× ) worked: 0x87 () times = → reduce → (0x15)... check: , → ✓. Rule: left-shift; if bit-7 was set, XOR 0x1B ( without ).
4. Bridge to (Next Topic)
Polynomials mod an irreducible degree- form field — exactly how came from integers mod prime . AES: bytes mod degree 8 → ; inverse via Extended Euclid on polynomials (same table method, degrees instead of sizes).
Exam Points
- Byte↔polynomial conversion (
0x57,0x83) + XOR-addition to0xD4— 2-mark opener. - Multiplication with pair-cancellation () + division trace — 5-mark core.
- Irreducibility test via roots ( irreducible; trap!).
xtimereduction with0x1Bconditional XOR.