F24 with Optimal Normal Basis Representation
| ||
Row 0: x mod f(x) = x = (0 0 1 0) | ||
Row 1: x2 mod f(x) = x2 = (0 1 0 0) | ||
Row 2: x4 mod f(x) = x3 + x2 + x + 1 = (1 1 1 1) | ||
Row 3: x8 mod f(x) = x3 = (1 0 0 0) | ||
Thus
| ||
3. And the inverse of A over F2 is
| ||
4. The rows of T' are constructed as follows: | ||
Row 0: v = x x mod f(x) = x2 = (0 1 0 0) | ||
Row 1: v = x x2 mod f(x) = x3 = (1 0 0 0) | ||
Row 2: v = x x4 mod f(x) = x5 mod f(x) = 1 = (0 0 0 1) | ||
Row 3: v = x x8 mod f(x) = x9 mod f(x) = x3 + x2 + x + 1 = (1 1 1 1) | ||
Thus | ||
and | ||
The product terms are:
l0,0 = T(0,0) = 0 l1,0 =T(3,3) = 0 l2,0 = T(2,2) = 1 l3,0 = T(1,1) = 0 l0,1 = T(1,0) = 0 l1,1 =T(0,3) = 0 l2,1 = T(3,2) = 1 l3,1 = T(2,1) = 1 l0,2 = T(2,0) = 1 l1,2 =T(1,3) = 1 l2,2 = T(0,2) = 0 l3,2 = T(3,1) = 0
l0,3 = T(3,0) = 0 l1,3 =T(2,3) = 1 l2,3 = T(1,2) = 0 l3,3 = T(0,1) = 1
| ||
Multiplication
Multiplication is defined by (a0 a1 a2 a3) (b0 b1 b2 b3) = (c0 c1 c2 c3), where
Thus (0 1 0 0) (1 1 0 1) = (c0 c1 c2 c3), where
Exponentiation using Optimal Normal Bases
The squaring (a0 a1 a2 a3)2 = (a0 a1 a2 a3) (a0 a1 a2 a3) = (c0 c1 c2 c3), where
Thus (a0 a1 a2 a3)2 = (a3 a0 a1 a2) can be calculated with a simple rotation of (a0 a1 a2 a3). Squaring is a very efficient operation when optimal normal basis representation is used. Since exponentiation typically involves many squaring operations, exponentiation is performed far more efficiently using optimal normal basis representation than using polynomial representation.
| ||
| ||
.. |
|