Method and apparatus for finite field basis conversion
Abstract
A method and systems provided for basis conversion in a cryptographic system. The method comprises the steps of a first correspondent transmitting an element represented in the first basis to an intermediate processor, the intermediate processor converting the element into a second basis representation and forwarding the converted element to the first correspondent who then uses the converted element in a cryptographic operation. A further embodiment of the invention provides for the intermediate processor to perform the basis conversion on a field element and then forward the converted element to a second correspondent. A still further embodiment of the invention provides for the correspondents in a cryptographic scheme making use of a bit string as a function of a sequence of traces of a field element, wherein the bit string is a shared secret for performing certain cryptographic operations.

Term
Term ended
Projected expiry passed 26 February 2019, 7.6 years ago.
- Priority and filed
- Published
- Projected expiry
- Today
11 claims: 1 independent, 10 dependent
- 1CA 02649680 2008-12-18 Claims 1. In a cryptographic system utilizing elements of a finite field Fq, a method for generating a basis independent bit string for use as a shared secret, the method comprising the steps of:representing as a vector of binary digits a first field element in terms of a first basis;computing a first function of a first sequence of traces of the form of said first field element;and using the result of such computation of said first function of said first sequence of traces as said bit string in subsequent cryptographic operations.
55 paragraphs in 11 sections, as filed
CA 02649680 2008-12-18
METHOD AND APPARATUS FOR FINITE FIELD BASIS CONVERSION
The present invention relates to cryptographic systems and more particularly, to the conversion of elements in a finite field having one basis to elements of a finite field having another basis and wherein the elements are used in a cryptographic operation.
BACKGROUND OF THE INVENTION
Cryptographic operations are generally implemented on elements in a finite field. Various finite fields are of interest to cryptographers for example, the multiplicative groups of prime fields F(p), the multiplicative group of finite fields of characteristic two, F(2<sup>n</sup>) and elliptic curve groups over finite fields, E(F<sub>P</sub>) or E(F<sub>2</sub>„ ). The elements in a given finite field are represented in terms of a basis for the finite field. The bases are also elements of the finite field.
Certain efficiencies may be realized in cryptographic operations by choosing a particular set of bases for that finite field. For example, in the finite field F(2<sup>n</sup>), two common choices of bases of the polynomial basis and a normal basis. A problem arises though in the choice of basis since communication between the two parties, although using the same cryptographic scheme but having different bases elements, requires the parties to perform a basis conversion operation on the field elements in order to obtain the same cryptographic result.
In general, if we let F(q<sup>n</sup>) be a finite field, where q is a prime or a prime power, the degree of the field is n and its order is q<sup>n</sup>. A basis for the finite field is a set of n elements bo , bi,.. .b<sub>m</sub>-i e F(q<sup>n</sup>) such that every element A of the finite field can be represented uniquely as a linear combination of basis elements:
= Σ«Α /=0 where the u, 6 F(q) are the coefficients. Arithmetic operations are then performed on this ordered set of coefficients.
It may be seen then generally that by using a different basis, a different ordered set of coefficients is used.
CA 02649680 2008-12-18
Various techniques have been implemented to convert between two choices of basis for a finite field. A conventional approach involves using a matrix multiplication, wherein basis conversion is performed using a change of basis matrix m, resulting in a matrix of size m . If m is typically 160 bits, then this occupies significant storage in devices such as a smart card. General finite field techniques are described in the Handbook of Applied Cryptography”, CRC Press, 1996 by S.A. Vanstone et al and incorporated herein by reference. Other techniques for basis conversion are described in United States Patent No. 5,854,759 to Kaliski et al, also incorporated herein by reference.
SUMMARY OF THE INVENTION
The present invention seeks to provide a method and apparatus for basis conversion, that is generally efficient in terms of memory and computation time ana is particularly adapted for use with smart cards and other low power cryptographic tokens.
In accordance with this invention, there is provided a method for basis conversion, the method comprising the steps of a first correspondent transmitting an element represented in a first basis to an intermediate processor; the intermediate processor converting the element into a second basis representation; forwarding said converted element to the first correspondent; and the first correspondent operating on the converted element in a ciyptographic operation.
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 of an embodiment of a basis conversion system in accordance with the present invention;
Figure 2 is a schematic diagram of a further embodiment of a basis conversion system in accordance with the present invention; and
Figure 3 is a flow diagram illustrating a key exchange scheme in accordance with an embodiment of the invention.
CA 02649680 2008-12-18
DESCRIPTION OF THE PREFERRED EMBODIMENTS
Referring to figure 1, a method according to a first embodiment of the invention is shown generally by numeral 10. In this embodiment, a pair of correspondents are represented by A and B and an intermediate processor, such as a server, certifying authority or other helper processor, is represented by H. It is assumed the correspondents A and B include processors for performing cryptographic operations and the like. Specifically, A and B perform cryptographic operations n a basis βι and /¾ , respectively. It is further assumed that the respective cryptographic parameters are contained within the entities A and B. For example in an elliptic curve scheme the system parameters include at least a point P on the elliptic curve, the order of the curve and the parameters of the elliptic curve equation E.
In this embodiment, the entities A and B generates a respective random value generally the private session key and each compute a public value kP, represented in terms of their respective bases βι and 7¾. One of the entities, A for example, transmits its public key kPpi to the server H. The server H performs a basis conversion utilizing one of many basis conversion algorithms to convert the public key EPpi represented in basis βι to a public key kP$<sub>2 </sub>represented in terms of the basis β<sub>2</sub>. The converted key is transmitted back to the correspondent A. The correspondent A then computes signature s = k''(h(m) + dr), where r = kPp<sub>2</sub>. The signature s and r are then transmitted to the other correspondent B, which is then processed by B in the basis β<sub>2</sub>. Similarly if correspondent B wishes to communicate with A it also transmits its public key kPp<sub>2</sub> to the server, which performs the conversion on the key and sends it back to the correspondent B. The correspondent B also computes a signature using r = kP^.
In this embodiment, a helper or an intermediate processor is utilized to perform the basis conversion. Furthermore the cryptographic scheme is not compromised since the public key may be transmitted in the clear, without requiring a secure communication path between the correspondent and the server.
Referring to figure 2, a second embodiment according to the invention, is shown generally by numeral 20. In this embodiment, each of the correspondents A and B have a respective public key aP represented in terms of basis βι and bP represented in terms of basis β<sub>2</sub>. The first correspondent A transmits its public key aP to the server H which performs the basis conversion on the element to a representation basis /¾ and transmits this key aP<sub>b2</sub> to the second
CA 02649680 2008-12-18 correspondent B. The second correspondent B also transmits its public key bPb2 to the server where a basis conversion is performed on the key to the basis βι of the first correspondent. The key bP§\ is forwarded to the first correspondent A. Each of the correspondents then compute a common key by combining its private key with the other correspondents received public key.
Thus, A computes abP^j and B computes baP^<sub>2</sub>·
The correspondents have now performed a key exchange, each having a shared key, and only one of the correspondents need perform a basis conversion. The keys may then be used in subsequent steps of the encryption scheme.
In a third embodiment, again it is assumed that the correspondents A and B operate in bases βΐ and β2 respectively. The bases βΐ and β2 may represent any basis. Furthermore, we define a field element a such that correspondent A represents the element a in terms of the basis βΐ and correspondent B represents the field element in terms of basis β2. The correspondents make use of a bit string that is a function of a sequence of traces of the field element as a shared secret to perform the certain cryptographic operations.
In this embodiment if we let p be a prime and let q =p<sup>m</sup>, where m >1. Let Fq be the finite field having q elements and Fq, the n-dimensional extension. The cyclic group G of Fq over Fq is generated by the mapping cr(a) = a<sup>q</sup>, (Xe Fq, and is of order n. Nfe may then define the trace function of Fq over Fq as <sup>Tr</sup>F If = = Σ<sup>α</sup>’ · ’ peG /=0
For brevity, the trace function is simply represented as Tr. In the method of the present invention we make use of the property that the traces Tr(iXpi) = Tr(0(p2), that is the traces of an element (X represented in terms of a basis βΐ is the same as the trace of the element represented in terms of basis β2.
If a key of length n = 128 bits is to be constructed, then the traces of odd powers of a are taken. The traces, namely Tr(a), Tr( a <sup>3</sup>), .. .Tr(a<sup>257</sup>), are either 0 or 1. Since the trace is independent of the representation and it does not matter, which one of the entities performs the trace. As an aside it may be noted that we could also use the trace Tr(fi(a)).. .Tr(f<sub>k</sub>(a)) that is the
CA 02649680 2008-12-18 trace of F(2<sup>n</sup>) maps to the elements [0,1] or F(2). Therefore, f maps F (2<sup>n</sup>) to F (2). In general, any invariant function may be utilized for the trace.
In general if F(q<sup>n</sup>) is the finite field 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. Two common types of basis are polynomial basis and normal basis. If βΐ is a polynomial basis, then the basis elements may be represented as 1, β, β<sup>2</sup>,.. ,β<sup>η1</sup>, where β is a root or generator. Assuming the function f(x) = 0 and f(x) is an irreducible of degree n i.e irreducible over the ground field . Then, if a field element is given by a = ao + Ηιβ<sup>1</sup> ... + an-ιβ'<sup>1</sup>, the trace is given by
Tr(a) = ao + ajTr$) + a<sub>2</sub>Tr(p<sup>2</sup> )... + a<sub>n</sub>.i Τ^β'<sup>1</sup>).
It may be observed that the trace is linear and if the irreducible f(x) has the form x + g(x) where the degree of g(x) is k, then ΤΓ(β^) = 0 for j = 1, 2 ... n-k-1.
If the irreducible polynomial is given by x + a<sub>n</sub>-ix<sup>n 1</sup> + a<sub>n</sub>.<sub>2</sub>x<sup>n</sup>'<sup>2</sup> .... + ai and if a<sub>n</sub>-i = 0 then ΤΓ(β) = 0, and a<sub>n</sub>_i = 0 and a<sub>n</sub>.<sub>2</sub> = 0 then ΤΓ(β<sup>2</sup>) = 0. The observation is that if consecutive coefficients of the field element a are zero then the trace of that number of terms is zero.
Thus, we may use the trace bit string as a shared secret to perform the remaining cryptographic operations. In deciding upon a key, the users (correspondents) normally select a bit string that is a function of a sequence of traces of a selected field element. For example if a
-J bit string (key) of length 3 is desired, the trace of a, a , a could be used. The order of the sequence of traces may on occasion be arbitrarily chosen but known to the correspondents. The following examples more clearly illustrate the derivation of a key.
Examplel : In this example the trace of a and a<sup>3</sup> is used to create a binary key of length 2.
Basis 1 : The irreducible chosen is f(x) = x<sup>3</sup> + x + l=0;x<sup>3</sup>=x+l
Element a in this basis isa = (l+x) then the key = (Tr(a), Tr(a ))
Tr(l) = 1 + 1<sup>2</sup>+ 1<sup>4</sup> =1; (x<sup>4</sup> = x<sup>2</sup> + x)
Tr(x) = x + x<sup>2</sup> + x<sup>4</sup> = x + x<sup>2</sup> + x<sup>2</sup> + x = 0
CA 02649680 2008-12-18
Tr(x<sup>2</sup>) = x<sup>2</sup> + x<sup>4</sup> + x<sup>8</sup> = X<sup>2</sup> + (x<sup>2</sup> + x) + (X<sup>2</sup> + x)<sup>2 </sup>= x + (x<sup>2</sup> + x) + x<sup>2</sup> = 0
Tr(a) = Tr(l+x<sup>2</sup>) = Tr(l) + Tr(x<sup>2</sup>) = 1+0 = 1 a = a.a<sup>2</sup> = (1 + x<sup>2</sup>)(l+x<sup>2</sup>)<sup>2</sup> = (1 + x<sup>2</sup>)(l + x<sup>4</sup>) = (1+ x<sup>2</sup>)( 1 + x + x<sup>2</sup>) = 1 + x + x<sup>2</sup> + x<sup>2</sup> + x<sup>3</sup> + x<sup>4 </sup>= 1 + x + x<sup>3</sup> + x<sup>4</sup> = 0 + x<sup>2</sup> + x = x<sup>2</sup> + x
Tr(a<sup>3</sup>) = Tr(x<sup>2</sup>) + Tr(x) = 0 + 0 = 0 Thus the key = (1,0)
Example 2:In this example a different basis is used (basis 2) and a is converted to its representation in this basis by (1) finding a root r for the polynomial for basis 1 in the representation generated by basis 2, and (2) then evaluating the polynomial representing a in basis 1 at r. The traces of a and a<sup>3</sup> are calculated in basis 2 to generate the same binary key as was created in basis 1 above.
Basis 2: The irreducible chosen is g(y) = y<sup>3</sup> + y<sup>2</sup> + l; y<sup>3</sup> = y<sup>2</sup> + 1
To find a in basis 2, find a root of f(x) = x<sup>3</sup> + x + 1 (the irreducible in basis 1) in basis 2.
Note: (y+1)<sup>3</sup> + (y+1) + l=y<sup>3</sup> + y<sup>2</sup> + y+ l +y+l + l= 0 + y+ l+ y+ l= 0
Let r = y + 1, then a=l+x<sup>2</sup>—»a.' = l+ r<sup>2</sup> = l+(y +1)<sup>2</sup> = 1 + y<sup>2</sup> + 1= /<sup>2 </sup>Key = (Tr(a'), Tr(a')<sup>3</sup>); y<sup>4</sup> = y<sup>3</sup> + y = y<sup>2</sup> + y +1
Tr(l) =1 + 1 + 1
Tr(y) =y + y<sup>2</sup> + y<sup>4</sup> = y + y<sup>2</sup> + y<sup>2</sup> + y + 1 = 1
Tr(y2) = y<sup>2</sup> + y<sup>4</sup> + y<sup>8</sup> = y<sup>2</sup> + y<sup>2</sup> + y+ l+(y<sup>2</sup> + y+l)<sup>2 </sup>= y+ 1 + y<sup>4</sup> + y<sup>2</sup>+l = y<sup>4</sup> + y<sup>2</sup> + y = y<sup>2</sup> + y + l+ y<sup>2</sup> + <sub>y</sub>=l
Tr(a’) =Tr(/) = l (a<sup>,</sup>)<sup>3</sup> = /6 = (y<sup>3</sup>)<sup>2</sup> = (y<sup>2</sup> + l)<sup>2</sup> = y<sup>4</sup> + l = y<sup>2</sup> + y+l + l=y<sup>2</sup> + y
CA 02649680 2008-12-18
Tr((a')<sup>3</sup>) = Tfty<sup>2</sup> + y) = Tfyy<sup>2</sup>) + Tr(y) -1+1=0
Thus the key = (1,0) as in basis 1.
Referring to figure 3, a key agreement scheme according to an embodiment of the invention is shown generally numeral 30. The correspondents A and B operate in bases βΐ and β2 respectively. The bases βΐ and β2 may represent any basis. Furthermore A and B each have the following system parameters, a long term private key d and a long-term public key Q<sub>A</sub> = d<sub>a</sub>P and Qb = dbP, where P is a point on an elliptic curve represented in terms of the respective bases. The correspondent A represents P in terms of the basis βΐ and correspondent B represents P in terms of basis β2. In a typical Diffie-Hellman key agreement scheme, each of the correspondents
A and B generate respective ephemeral private keys k<sub>A</sub> and k<sub>B</sub> and compute a corresponding short term (session) public keys k<sub>A</sub>P<sub>P</sub>i and k<sub>B</sub>Pp<sub>2</sub>. A and B exchange their respective public keys, and convert them to their own basis. If the correspondents are low power devices, such as smart cards or the like, then basis conversion may be performed by an intermediate processor such as described with reference to figures 1 and 2. Alternatively, if the correspondents have sufficient compiling power, then basis conversion may be performed by the correspondents themselves, according to one of many basis conversion methods. In any event, after the basis conversion, correspondent A has B’s public key (ksP/) pi and B has A’s public key (kjPpi) p<sub>2</sub>- A shared secret is computed in their respective basis by computing k<sub>A</sub>(k<sub>B</sub>Pp<sub>2</sub>) ρι=αρι and k<sub>B</sub>(^-Ppi) p<sub>2</sub>=ctp<sub>2</sub>. Each of the correspondents takes a sequence of traces of their respective field element a to derive a common bit string.
Applying the method to a signature scheme, the correspondent A generates its ephemeral public session key APpi. A trace sequence may be constructed, for example, of the x-coordinate of APpi producing a bit string T. The bit string is passed through a hash function g to derive a signature component r. A second signature component s = k'<sup>1</sup> (m + dr) is computed, where d is
A’s long term private key. The signature components are transmitted to B for verification. The verifier B computes E'ms'<sup>1</sup> Pp<sub>2</sub>+rs-lQj p<sub>2</sub>,= kPp<sub>2</sub> where Qj p<sub>2</sub> is the long term public key of A in basis 2. This basis conversion could be performed by A using an intermediate H as described earlier. B then generates a sequence on the computed value kPp<sub>2</sub>, and applies the hash function g to derive a value r’. If r'=r, then the signature is verified.
CA 02649680 2008-12-18
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.
Contents11
4 sheets
Sheet 1 Sheet 2 Sheet 3 Sheet 4
8 members in 4 offices
Priority claims3
| Document | Office | Kind | Date |
|---|---|---|---|
| 2263056 | Canada | A | |
| 002263056 | – | – | – |
| CA19992263056 | – | – | – |
Members8
| Document | Office | Kind | |
|---|---|---|---|
| CA2263056A1 | Canada | A1 | |
| CA2649680A1This record | Canada | A1 | |
| WO0052877A2 | World Intellectual Property Organization (WIPO) | A2 | |
| AU2788900A | Australia | A | |
| WO0052877A3 | World Intellectual Property Organization (WIPO) | A3 | |
| US2002025038A1 | United States of America | A1 | |
| US7190789B2 | United States of America | B2 | |
| CA2263056C | Canada | C |
2 legal events, as the office reported them to INPADOC
Over the term
Point at a mark for the eventEvents
| Event | Code | |
|---|---|---|
| DiscontinuedFZDE | FZDE | |
| Examination requestEEER | EEER |
Numbers
- Publication
- 2649680
- Publication, DOCDB
- 2649680
- Publication, EPODOC
- CA2649680
- Application
- 2649680
- Application, DOCDB
- 2649680
- Application, EPODOC
- CA19992649680
Titles2
- English
- METHOD AND APPARATUS FOR FINITE FIELD BASIS CONVERSION
- French
- METHODE ET APPAREILLAGE DE CONVERSION DE LA BASE DANS UN CORPS DE GALOIS
Classification
- CPC, 3
- H04L9/083
- H04L9/3026
- H04L9/3066
- IPC, 2
- H04L9 28
- H04L9 30