Electrical computers: arithmetic processing and calculating – Electrical digital calculating computer – Particular function performed
Reexamination Certificate
1998-07-01
2001-01-23
Mai, Tan V. (Department: 2787)
Electrical computers: arithmetic processing and calculating
Electrical digital calculating computer
Particular function performed
Reexamination Certificate
active
06178436
ABSTRACT:
BACKGROUND OF THE INVENTION
1. Field of the Invention
The present invention relates generally to methods and circuits for computing and, more particularly, to methods and circuits for computing the product of two elements in a finite field.
2. Description of the Related Art
Multiplication over large finite fields, also known as Galois fields, is used in the implementation of certain cryptographic protocols based on a theory of elliptic curves over Galois fields. These cryptographic protocols are highly computationally intensive and therefore consume a significant level of computational resources in order to perform Galois field arithmetic. Consequently, any reduction in the number of operations required for Galois field arithmetic will have a significant impact on the overall consumption of computational resources.
Generally speaking, a field is a number system with addition, subtraction, multiplication and division. The operations on the elements of the field should be associative, distributive and commutative. Therefore, there should be an element 0, where 0+x=x, and an element 1, where 1*x=x. In addition, for every x, there is a (−x), where x+(−x)=0. Further, for every value of x that is not 0, there is an inverse (1/x) where x*(1/x)=1.
Some well-known examples of fields are the real numbers, the rational numbers and the complex numbers. Each of these sets has an infinite number of elements and are therefore infinite fields.
Finite fields have a finite number of elements. As an example, a finite field GF(p) is a field with p elements, where p is a prime number. The elements of the field GF(p) may be taken to be 0, 1, . . . , p−1. Elements of the field may be added, subtracted, multiplied and inverted, but the resulting number is reduced to a modulo value of p (mod p) at the end of the computation.
The smallest of all fields is the finite field GF(2), which is a finite field having two elements: 0 and 1. The elements may be added, subtracted, multiplied and divided. However, 1+1=0, because the modulo equivalent of the result of the addition, 2, is 0, i.e. 1+1=2 mod 2=0. Similarly, 0−1=1, because the result of the subtraction, (−1), is reduced to a modulo value of p, which is 2, the result of the subtraction is a modulo 1, i.e. 0−1=(−1) mod 2=1.
There are several representations of extension fields GF(2
n
) that lend themselves to efficient arithmetic implementation over the binary field GF(2). All such fields are referred to as having characteristic 2. Fields of characteristic 2 are the fields of primary interest in the present invention.
The finite field GF(2
n
) is a vector space of dimension n over GF(2). As such, it can be represented using any basis of n linearly independent elements of GF(2
n
) over the binary field GF(2). Therefore, elements of GF(2
n
) are represented by binary vectors of length n. Field addition is realized in all bases by a bit-wise exclusive OR (XOR) operation, whereas the structure of field multiplication is determined by the choice of basis for the representation.
Two families of bases are commonly used to represent the field GF(2
n
): standard (or polynomial) representation and normal basis (NB) representation.
In standard polynomial representation, the basis elements have the form 1,&ohgr;,&ohgr;
2
, . . . &ohgr;
n−1
, where w is a root in GF(2
n
) of an irreducible polynomial P(&kgr;) of degree n over GF(2). In an equivalent interpretation of this representation, the elements of GF(2
n
) are polynomials of degree <n over GF(2), and arithmetic is carried out modulo an irreducible polynomial P(&kgr;) of degree n over GF(2).
In NB representation, the basis elements have the form &agr;, &agr;
2
, . . . , &agr;
2
n−1
for a certain element &agr; &egr; GF(2
n
). This defines a normal basis. In addition, if for all 0≦i1≠i2≦n−1 there exists j1, j2 such that, &agr;
2i1+2i2
=&agr;
2j1
+&agr;
2j2
, then the basis is called optimal normal basis (ONB). The element a is called the generator of the basis. Optimal normal bases exist for an infinite subset of values of n.
Multiplication in NB representation format will now be discussed. For a given normal basis {&agr;, &agr;
2
, . . . , &agr;
2
n−1
} for a certain element &agr;&egr;GF(2
n
), a series of matrices or tensors is defined by
α
2
i
⁢
α
2
j
=
∑
k
=
0
n
-
1
⁢
t
ij
(
k
)
⁢
α
2
k
(
1
)
Also, define a matrix T
k
=t
ij
(k)
. In other words, the (i, j) element of matrix T
k
is =t
ij
(k)
. All of the matrices T
k
, (k=0, 1, . . . , n−1), are closely related, e.g. t
ij
(k)
=t
i-k,j-k
(0)
, where 0≦i, j, k≦n−1 and the subscripts are modulo n.
Furthermore, we identify an element a &egr; GF(2
n
), where
a
=
∑
i
=
0
n
-
1
⁢
a
i
⁢
α
2
i
and the vector a=(a
0
, a
1
, . . . , a
n−1
), a
i
&egr; GF(2)={0, 1}. We also identify a similarly constituted element b &egr; GF(2
n
).
The elements a and b, where a, b &egr; GF(2
n
), are multiplied to obtain a result c &egr; GF(2
n
). It can be shown that the k
th
component of the vector for c is shown in equation (2) below:
c
k
=
aT
k
⁢
b
t
=
(
a
0
,
a
1
,
…
⁢
,
a
n
-
1
)
⁡
[
T
k
]
⁢
b
0
b
1
⋮
b
n
-
j
(
2
)
Now, let a
[l]
be the l
th
cyclic left shift of the vector (a
0
, a
1
, . . . , a
n−1
), where a
[l]
=(a
l
, a
l+1
, . . . , a
n−1
, a
0
, . . . , a
n−1
). Then equation (2) can be written as
c
k
=
a
[
k
]
⁢
T
0
⁡
(
b
[
k
]
)
t
=
(
a
k
,
a
k
+
1
,
…
⁢
,
a
k
-
1
)
⁡
[
T
0
]
⁢
b
k
b
k
+
1
⋮
b
k
-
1
(
3
)
Equation (3) can then be implemented in a multiplier circuit, such as conventional multiplier
100
illustrated in FIG.
1
. Multiplier
100
has two shift registers
110
and
140
. Each of shift registers
110
and
140
is circularly connected with a shift output being coupled to a shift input of each register. Each of the shift registers also receives a SHIFT signal at a shift control input which causes a right-shift operation to be performed.
Each of shift registers
110
and
140
has a parallel output from each position of the register. The parallel outputs from shift register
110
are coupled to a series of AND gates
122
,
124
and
126
. The AND gates shown in the diagram are representative of a complete series of n AND gates where there is one AND gate corresponding to each position, or vector element, in shift register
110
.
The parallel output from shift register
140
are coupled to a series of modulo 2 adders
132
,
134
and
136
. The modulo 2 adders
132
,
134
and
136
are representative of a complete series of n adders where there is one adder corresponding to each position in shift register
110
. The inputs to each of the series of adders are determined by the tensor Tk implemented by the multiplier circuit
100
.
For an ONB representation, each of adders
134
. . .
136
will have two input taps coupled to register
140
, as shown. However, adder
132
would have only one input and could therefore be replaced with a simple signal line. For a general NB representation, the number of taps off each adder
132
,
134
, . . .
136
will vary according to the representation and function being implemented by the multiplier.
The outputs from each of the series of adders are input to the corresponding one of the series of AND gates. Thus, the output of adder
132
is input to AND gate
122
, the output of adder
134
is input to AND gate
124
, and the output from adder
136
is input to AND gate
126
. The output of each of the series of AND gates, in turn, is input to modulo 2 adder
150
.
In operation, vector element a is loaded into shift register
110
and vector element b is loaded into shift register
140
. The elements of vectors a and b are operated upon by the combinational logic of the series of AND gates
1
Blake Ian F.
Seroussi Gadiel
Hewlett--Packard Company
Mai Tan V.
MPS
LandOfFree
Apparatus and method for multiplication in large finite fields does not yet have a rating. At this time, there are no reviews or comments for this patent.
If you have personal experience with Apparatus and method for multiplication in large finite fields, we encourage you to share that experience with our LandOfFree.com community. Your opinion is very important and Apparatus and method for multiplication in large finite fields will most certainly appreciate the feedback.
Profile ID: LFUS-PAI-O-2508779