This invention relates to the field of cryptographic systems, and conversion of elements between bases used in such systems.
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 Fq
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)=Σaixi mod f(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.
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.
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:
a) and 2(b) are schematic diagrams illustrating an embodiment of the invention;
a) and (b) are schematic diagrams of further embodiments of the invention; and
In a first embodiment of the invention, we exemplify a specific case F2
Explicitly,
where a′even (x) is the even-powered polynomial derived by factoring x from aodd(x).
In a field of characteristic 2, F2
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 x 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 F2, similar application can be made to other characteristics if the polynomials are divided into more components. For example, for the extension held over F3, the polynomial a(x) might be divided into a(x)=a0 mod 3+a1 mod 3+a2 mod 3, where
a0 mod=(a0+a3x3+a6x6 . . . )a1 mod 3=(a1x+a4x4+a7x7 . . . ), and a2 mod 3=(a2x+a5x5+a8x8 . . . ).
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 F2
a(x)=a0+a1x+a2x2+ . . . a162x162.
The first branching divides a(x) into:
where b(x) and c(x) are each polynomials referred to as component polynomials Ci, Cj. At the next level down,
The polynomial c(x) is partitioned in a similar way.
As mentioned above, the partitioning of polynomials into parts may be halted and the resulting component polynomials 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 component polynomials at the leaves may be evaluated either directly, or with Horner'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 component polynomial for extension fields over F2.
At the leaf, a component polynomial a(x)=Σaixi 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
Turning back to
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
An application of the above method to basis conversion may be illustrated as below. Given a field F2
in general. For this example, we choose a specific element:
a(x)=x30+x29+x28+x27+x25+x22+x20+x19+x14+x13+x12+x11+x10+x8+x7+x6+x3+x0
We assume a three level evaluation tree which is constructed in accordance with the present invention as shown in
When a above is decomposed in the tree, the leaf nodes are:
L0=(r7+r5+r3+r2+1)2
L1=r(r7+r5+r3+r2+r)2
L2=(r7+r3)2
L3=r(r6+r5+r4+r2+r+1)2
To evaluate the leaf node L0, we will evaluate the component polynomial, then square it and, when appropriate, further multiply its value by r to obtain the value of the leaf node:
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.
Number | Date | Country | Kind |
---|---|---|---|
2265389 | Mar 1999 | CA | national |
This application is a continuation of PCT Application No. PCT/CA00/00256 filed on Mar. 13, 2000, and published as WO 00/55756 on Sep. 21, 2000; and claims priority from Canadian Patent Application No. 2,265,389 filed Mar. 12, 1999.
Number | Name | Date | Kind |
---|---|---|---|
4031370 | Catherall | Jun 1977 | A |
4417338 | Davida | Nov 1983 | A |
4847801 | Tong | Jul 1989 | A |
4866716 | Weng | Sep 1989 | A |
5485474 | Rabin | Jan 1996 | A |
5761102 | Weng | Jun 1998 | A |
6192497 | Yang et al. | Feb 2001 | B1 |
6895422 | Walster et al. | May 2005 | B2 |
Number | Date | Country |
---|---|---|
0 806 838 | Nov 1997 | EP |
Number | Date | Country | |
---|---|---|---|
20020041682 A1 | Apr 2002 | US |
Number | Date | Country | |
---|---|---|---|
Parent | PCT/CA00/00256 | Mar 2000 | US |
Child | 09948793 | US |