1. Computing with Polynomials in GF(qn)
q over polynomials of degree
n
n
n+1
(n-1) or lower
a(x)=an-1xn-1+an-2xn-2+...+ax+a0
2. Modulo Arithmetic with Polynomials
p(x)=q(x)d(x)+r(x)
deg[r(x)]<deg[d(x)]
d(x) to be an irreducible polynomial
p(x)=q(x)d(x)+r(x)
d(x) goes into p(x)
and then work out the remainder r(x) which is the residue we want
3. Example GF(23)
0, 1, x, x+1, x2, x2+1, x2+x,
x2+x+1
d(x)=x3+x+1 can
simply replace x3 with x+1
4. Polynomial Addition
a(x)+b(x)=(an-1+bn-1)xn-1+...+(a11)x+(a0+b0)
| + | 000 | 001 | 010 | 011 | 100 | 101 | 110 | 111 |
|---|---|---|---|---|---|---|---|---|
| 0 = 000 | 000 | 001 | 010 | 011 | 100 | 101 | 110 | 111 |
| 1 = 001 | 001 | 000 | 011 | 010 | 101 | 100 | 111 | 110 |
| x = 010 | 010 | 011 | 000 | 001 | 110 | 111 | 100 | 101 |
| x+1 = 011 | 011 | 010 | 001 | 000 | 111 | 110 | 101 | 100 |
| x2 = 100 | 100 | 101 | 110 | 111 | 000 | 001 | 010 | 011 |
| x2+1 = 101 | 101 | 100 | 111 | 110 | 001 | 000 | 011 | 010 |
| x2+x = 110 | 110 | 111 | 100 | 101 | 010 | 011 | 000 | 001 |
| x2+x+1 = 111 | 111 | 110 | 101 | 100 | 011 | 010 | 001 | 000 |
5. Polynomial Addition Examples
(x+1) + (x2) = x2+x+1 011 XOR 100 = 111 (x+1) + (x2+1) = x2+x+2 = x2+x 011 XOR 101 = 110
6. Polynomial Multiplication
| × | 001 | 010 | 011 | 100 | 101 | 110 | 111 |
|---|---|---|---|---|---|---|---|
| 1 = 001 | 001 | 010 | 011 | 100 | 101 | 110 | 111 |
| x = 010 | 010 | 100 | 110 | 011 | 001 | 111 | 110 |
| x+1 = 011 | 011 | 110 | 101 | 111 | 100 | 001 | 010 |
| x2 = 100 | 100 | 011 | 111 | 110 | 010 | 101 | 001 |
| x2+1 = 101 | 101 | 001 | 100 | 010 | 111 | 011 | 110 |
| x2+x = 110 | 110 | 111 | 001 | 101 | 011 | 010 | 100 |
| x2+x+1 = 111 | 111 | 101 | 010 | 001 | 110 | 100 | 011 |
x3+x+1
7. Polynomial Multiplication Example
x3+x+1 in GF(23)
(x+1).(x+1) = x.(x+1) + 1.(x+1) = x2+x+x+1 = x2+2x+1 = x2+1
011.011 = 011<1 XOR 011<0 = 110 XOR 011 = 101
(x2+1).(x2+x) mod x3+x+1
= x2.(x2+x) + 1.(x2+x) = x4+x3+x2+x
= x.(x3+x+1) + 1.(x3+x+1) + (x+1)
= x+1
101.110 = 110<2 XOR 110<0 = 11000 XOR 110
= 11110 mod 1011 = 11110 XOR 1011<1
= 1000 mod 1011 = 1000 XOR 1011
= 011
8. Working with Polynomials
(p(x)) = 2n-1 since every poly except 0 is
relatively prime to p(x)
9. Binary Representation of Polynomials in GF(2n)
a(x)=an-1an-2...a1a0
10. Complexity Theory - A Potted Intro
O(n^(2))
O(n^(2)(2n-1))
O(26^(n))
O(n^(log log n))
11. Complexity Theory in Pictures

12. Complexity Theory - Some Terminolgy
f(n)<=c.|g(n)|, for all n>=0, for some c
13. Complexity Theory and Cryptography
14. Summary
15. Exercises
(x2+x+1) + (x4+x3+x2+1) (x3+x2+x) + (x4+x+1) (x4+x+1) + (x4+x3+x2+x+1)
(x2+1) × (x3+x2+1) (x3+1) × (x2+1) (x4+1) × (x3+x2+1)
(x+1)13 (x2+1)11 (x3+1)6