SYSTEM AND METHOD FOR EFFICIENT BASIS CONVERSION

Abstract: This invention describes a method for evaluating a polynomial in an extension field Fq<M>, wherein the method comprises the steps of partitioning the polynomial into a plurality of parts, each part is comprised of smaller polynomials using a q<-th> power operation in a field of characteristic q; and computing for each part components of q<-th> powers from components of smaller powers. A further embodiment of the invention provides for a method of converting a field element represented in terms of a first basis to its representation in a second basis, comprising the steps of partitioning a polynomial, being a polynomial in the second basis, into a plurality of parts, wherein each part is comprised of smaller polynomials using a q<-th> power operation in a field of characeteristic q; evaluating the polynomial at a root thereof by computing for each part components of q<-th> powers from components of smaller powers; and evaluating the field element at the root of the polynomial.

Description: SYSTEM AND METHOD FOR EFFICIENT BASIS CONVERSION This invention relates to the field of cryptographic systems, and conversion of elements between bases used in such systems. BACKGROUND OF THE INVENTION It is well known that there is only one finite field of any given order, but that there are many different representations. When an extension field is built by adjoining a root of an irreducible polynomial to the ground field, the choice of irreducible affects the representation of the extension field. In general if F(q m ) is the finite field, where q is a prime and F(q) is the ground field over which it is defined, the elements of the finite field can be represented in a number of ways depending on the choice of basis. In order to interoperate, cryptographic systems employing finite fields often need to establish a common representation. In addition to the choice of irreducible polynomial, finite fields can also be represented by either polynomial or normal basis. A polynomial basis represents elements of F „ as linear combinations of the powers of a generator element x: x° , x 1 , ... , x m~ \ . A normal basis representation represents elements as linear combination of successive q-th powers of the generator element x: 9 ,x q ,...,x qm j. Each basis has its own advantages, and cryptographic implementations may prefer one or the other, or indeed specific types of irreducible polynomials, such as trinomials or pentanomials. To support secure communication between devices using different representations, basis conversion, which changes the representation used by one party into that used by another party is generally required. Basis conversion often entails the evaluation of a polynomial expression at a given finite field element. If an element a, when represented as a polynomial, is given as a(x) = .α, ! τ_.odf(x), where f(x) is an irreducible, in one basis, then the conversion of the element a into a new representation using another irreducible polynomial requires that a be evaluated at r , where r is a root of the new irreducible polynomial in the field represented by f(x) , then a(r) is the element a in the new representation. Any of the conjugates of r (the other roots of the new irreducible) will also induce equivalent, but different representations. There is a need for an efficient method for evaluating these polynomials, for application to basis conversion. SUMMARY OF THE INVENTION In accordance with this invention there is provided a method for evaluating polynomials in an extension field comprising the steps of: partitioning the polynomials into a plurality of parts, such that each part may be computed from smaller polynomials using a q-th power operation in a field of characteristic q. In accordance with a further embodiment of the invention there is provided a method for evaluating a polynomial in an extension field comprising the steps of computing components of the q-th powers from components of smaller powers. BRIEF DESCRIPTION OF THE DRAWINGS These and other features of the preferred embodiments of the invention will become more apparent in the following detailed description in which reference is made to the appended drawings wherein: Figure 1 is a schematic diagram illustrating an embodiment of the present invention; Figures 2(a) and 2(b) are schematic diagrams illustrating an embodiment of the invention; Figures 3(a) and (b) are schematic diagrams of further embodiments of the invention; and Figure 4 is a schematic diagram of a three level tree according to an embodiment of the invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS In a first embodiment of the invention, we exemplify a specific case F m of the general field ¥ q m, then in order to evaluate a field element a(x) = T α,x ( inE 2 „ , it is noted that approximately one half of the exponents x' are even powers. These powers can be efficiently calculated from lower degree exponents of odd powers. For example, the powers for i = 2,4,6,8,10 can be calculated by squaring the powers for i = 1,2,3,4,5, respectively. This approach does not apply to the odd powers, but if we partition a into even and odd powers, e.g. a(x) = a men (x) + a odd (x) , and if we factor x from the odd powers, then a will be represented by a sum of even powers and x times a sum of even powers. Explicitly, a(x) = (a 0 + a 2 x 2 + a 4 x 4 + ...)+ x* a l + a 3 x 2 + a 5 x A + ...), = a even (x) + x * a e ' ven (x)> where a^' (x) is the even-powered polynomial derived by factoring Λ; from a odd (x) . In a field of characteristic 2, F squaring is a linear operation, which allows α even and a e ' ven to De expressed as squares of polynomials of smaller (roughly one half) degree. Explicitly, defining b(x) = 0 + a 2 x + a 4 x 2 + a 6 x 3 + ... and c(x) = a x + a 3 x + a 5 x 2 + a 7 x 3 + ... , then a(x) can be expressed as a(x) = ((b(x)) 2 + x(c(x)) 2 ). Now b and chave approximately half the degree of the original polynomial a to be evaluated. Evaluation of b (and c ) can (recursively) be made by further dividing the polynomial into odd and even parts. The odd part can be shifted to an even power by factoring out x and expressing the result as a combination of squares of lower degree polynomials. At each application of the partitioning and shifting two squaring operations and one multiplication by Λ: are required. At some point, the recursive partitioning can be halted and the component polynomials evaluated via one or more methods. Note that although we have described the method for the extension fields over F 2 , similar application can be made to other characteristics if the polynomials are divided into more components. For example, for the extension held over F 3 , the polynomial a(x) might be divided into a(x) = α 0mod3 + α lmod3 + α 2mod3 , where α o mod = + a 3 χ3 + a 6 * 6 -K mod 3 = (a,x + a 4 x 4 + a η x η ...), and α 2mo 3 = i a ι x + a s χ5 + Q & x & —) • In general, for extension fields over Fq the polynomial may be divided into q parts. Even over characteristic 2, the polynomial a might be broken up into more than 2 polynomials, at the cost of more multiplications by x or powers of x . As an example of a preferred embodiment at a given size, consider conversion of polynomial representations over F ιa . An element of this field is represented by the polynomial a(x) = a 0 + a x + a 2 x 2 + ...a i62 x 2 . The first branching divides a(x) into: a(x) = (a 0 + a 2 x + a 4 x 2 + a 6 x 3 ...a. &] x.. 81 ) 2 + x(a l + a 3 x + a 5 x 2 + a η x 3 ...a. so x. S0 ) 2 , = (b(x)) 2 + x(c(x)) 2 . At the next level down, b(x) = (b 0 + b 2 x + b 4 x 2 + b 6 x 3 ...b 40 x 40 ) 2 + x(b 1 + b 2 x + b 5 x 2 + b 7 x 3 ...b 40 40 ) 2 , = (d(x)) 2 + x(e(x)) 2 . The polynomial (lx) is partitioned in a similar way. As mentioned above, the partitioning of polynomials into parts may be halted and the resulting polynomial parts evaluated at a root by using any one of several known methods. The positions at which the partitioning stops may be denoted as the leaves of the evaluation tree. The leaves may be evaluated either directly, or with Homer's rule. However, current methods do not exploit a property of finite fields of characteristic q , wherein taking the q -th powers is usually an efficient operation. An exemplary method will now be described for efficiently evaluating a leaf polynomial for extension fields over F 2 . At the leaf, a polynomial a(x) = ^α,*' must be evaluated at a root of a new irreducible. Again, approximately one half of these terms will be even and can be calculated efficiently from odd powers. These odd powers will either be stored, for explicit basis conversion, or calculated explicitly by multiplication. If, for example a(x) is guaranteed to be of degree not greater than 10 (which may be the case if certain evaluation tree depths are employed), then a(x) can be evaluated from the powers 1 ,3,5,7,9, which are either stored or calculated. Squarings can be reduced by grouping coefficients together. This is shown schematically in figure 2(a) where a notional table is constructed to show the relationship between the stored or evaluated odd powers of r and the higher degree even powers of r. Thus, consider the first row in which r 2 , r and r 8 are derived by squaring r 1 , similarly, r 6 is derived by squaring r 3 and r 10 is derived by squaring r 5 . It is to be noted that in this example, powers of 2 are used. Turning back to figure 2(a), however, the notional table may be used as shown schematically in figure 2(b). Thus, assume an accumulator is set initially to 0. Since we are using an extension field over F 2 the coefficients a t are either 0 or 1. First, if a s is 1, then r'is added to the accumulator, which consists of a copying operation in a processor. Next, the accumulator is squared. Next, if a 4 is 1, then r λ is added into the accumulator. Again, the accumulator is squared. Now, if a 2 ,a 6 , 10 are one (1) then r 1 , r 3 , r 5 are added into the accumulator respectively. Again, the accumulator is squared. Finally, if a 0 , a l , a 3 , a 5 , a 7 , a 9 are set ( 1 ), then r° , r 1 , r 3 , r 5 , r 7 , r 9 are added into the accumulator. This completes the evaluation of a(x) at r , requiring three squares and the initial evaluation of r° , r 1 , r 3 , r 5 , r 7 , r 9 , which can be reused at another leaf evaluation. It will be apparent to those skilled in the art that the precomputed values technique can equally well be applied to multiplication techniques. For polynomials of larger degrees, similar evaluations can be made from evaluation of odd powers. First, the coefficients of those exponents with the largest powers of 2 are added into the accumulator according to whether the polynomial to be evaluated has non-zero coefficients at those powers, then the result is squared. Next, powers divisible by one less power of 2 are added in as required by polynomial evaluation. Accumulation and squaring continues until the odd powers themselves are added in as required by the polynomial under evaluation. In figures 3(a) and 3(b), a similar evaluation is exemplified for an extension field over F 3 and for a polynomial of degree no greater than 17. Note that in this embodiment, the coefficients a { may take a value 0, 1, or 2. Thus, the powers are added with the required coefficients. In general then, for an extension field over F q , powers of q are used to construct the notional table and evaluation of the polynomial proceeds by accumulation and q powering until all required powers in the polynomial are added in as required by the polynomial being evaluated. An application of the above method to basis conversion may be illustrated as below. Given a field F 31 and a pair of bases having respective irreducible fj and f 2 and if , = 31 + 6 + 1; and f 2 = x 31 + x 3 + 1. Then, a root of f x in the field represented by f 2 is given by r = x 26 + x 24 + x 23 + x 22 + x 19 + x 17 + x 12 + x 11 + x 9 + x 8 + x 6 + x 5 + x 3 + x 2 . Now, to convert an element a(x) = a f in the first basis to a representation in the second basis 30 a fi (that is to basis defined by f 2 ) we proceed as follows. Let a(x) - T a t x' in general. ι=0 For this example, we choose a specific element: a(x) = x 30 +x 29 +x 28 +x 27 +x 25 +x 22 +x 20 +x 19 +x 14 + x 13 +x 12 +x +x i0 +x s +x 7 +x 6 +x 3 +x° We assume a three level evaluation tree which is constructed in accordance with the present invention as shown in figure 4. At the bottom level of the tree (the leaf nodes), we require the following powers of r: r°, r 1 , r 2 ...r 6 . The odd powers are calculated r 1 , r 3 , r 5 , and r 7 (by squaring r and 3 multiplications by r 2 . When a above is decomposed in the tree, the leaf nodes are: E 0 =(r 7 +r 5 +r 3 +r 2 +l) 2 E, = r(r 7 + r 5 + r 3 + r 2 + r) 2 E 2 =(r 7 +r 3 ) 2 E 3 =r(r 6 +r 5 +r 4 +r 2 +r + l) 2 To evaluate Lo, we will 0) zero A 1) add r 1 to A, square A, now A = -x 2 2) add in r°, r 3 , r , r 7 to A 3) square A=L 0 ForE; , we will 0) zero A 1) add r 1 to A 2) square A 3) addr',r 3 , r 5 , r 7 , to A 4) square A 5) multiply A by r = LI forZ, 2 0) zero A 1) add in r 3 , r 7 2) square A = L 2 forE 3 6) square A 7) multiply A by r = L 3 Now a(r) is built by evaluating the tree M 0 = (L 0 + L^ , Mj = r(L + L ) . Finally, a(r) = T 0 = Thus, it may be seen that his method may be applied to various cryptographic schemes such as key exchange schemes, signature schemes and encryption schemes. Although the invention has been described with reference to certain specific embodiments, various modifications thereof will be apparent to those skilled in the art without departing from the spirit and scope of the invention as outlined in the claims appended hereto. For example, the invention may be applied to basis conversion wherein the bases to be converted between are an optimal normal basis and a polynomial basis.

Claims: THE EMBODIMENTS OF THE INVENTION IN WHICH AN EXCLUSIVE PROPERTY OR PRIVILEGE IS CLAIMED ARE DEFINED AS FOLLOWS: 1. A method for evaluating a polynomials in an extension field comprising the steps of: partitioning the polynomials into a plurality of parts, such that each part may be computed from smaller polynomials using a q 'th power operation in a field of characteristic q . 2. A method for evaluating a polynomial in an extension field comprising the steps of: computing components of the q 'ttΛ powers from components of smaller power. 3. A method as defined in claim 2, including the step of ordering said computation such that a minimal number of q 'th powers are used. 4. A method for evaluating a polynomial in an extension field, said method comprising the steps of: (a) partitioning said polynomial into a plurality of parts, wherein each part is comprised of smaller polynomials using a q 'th power operation in a field of characteristic q; and (b) computing for each part components of q ~ powers from components of smaller powers; and (c) combining said parts to evaluate said polynomial. 5. A method for basis conversion, comprising the steps of: (a) determining a root of a polynomial; (b) partitioning said polynomial into a plurality of parts, wherein each part is comprised of smaller polynomials using a q 'th power operation in a field of characteristic q; th (c) computing for each part components of q ~ powers form components of smaller powers; and (d) using said polynomial in a cryptographic scheme. A method for converting an element a in a field F q M represented in a first basis into a representation in a second basis, wherein fi is an irreducible in the first basis, f 2 is an irreducible in the second basis, and r is a root of fi in f 2 , said method comprising the steps of: (e) representing said element as a polynomial at said root r; (f) partitioning said polynomial into a plurality of parts, wherein each part is comprised of smaller polynomials using a q 'th power operation in a field of characteristic q; (g) computing for each part components of q 'th powers form components of smaller powers; and (h) combining said parts to obtain said element at r.

Inventors: LAMBERT ROBERT J, LAMBERT, ROBERT, J.
Applicants: CERTICOM CORP, LAMBERT ROBERT J, CERTICOM CORP., LAMBERT, ROBERT, J.
Application year: 2000
Main classification: G06F17
IPC codes: G06F17, H04L9