Communication systems, particularly wireless communications and high-speed transmissions, often require the use of forward error correction algorithms to identify bit errors in received signals. Finite field arithmetic is highly useful in such forward error correction algorithms. Encryption algorithms also commonly use finite field arithmetic.
A finite field, commonly called a Galois field, is a field that contains only a finite number of numerical elements. One example of a Galois field is a set of five-digit binary numbers. There are a total of 32 such numbers and, for example, 31 of those numbers could constitute a Galois field. An important characteristic of a Galois field is that the arithmetic operators (addition, subtraction, multiplication, and division) are defined such that any arithmetic operation performed on elements of the field will always yield one of the elements in the field. In the binary example given, the addition and subtraction operations can be carried out as exclusive-OR (XOR) logic operations, and multiplication can be carried out as logical shifts, AND, and XOR operations. Note that in some cases, such operations will yield results that are not within the set of five-digit numbers. However, as applied within the Galois field, these arithmetic operations are defined using an irreducible generator polynomial which creates a modulo operation on the result, whereby the result remains within the Galois field (i.e., the result is one of the finite number of elements).
In the discipline of Galois field mathematics, addition, subtraction, and multiplication of field elements are well understood, and these operations can be mapped efficiently into hardware or software domains. However, dividing one field element by another in a Galois field does not map very efficiently into either of the hardware or software domains. The most accepted way of performing division is to multiply the dividend by the multiplicative inverse of the divisor, as follows:
βi/βj=βi×βj−1 (1)
where, βi, and βj are elements of the field. The multiplicative inverse of an element of a Galois field can be found either by using a ROM-based a look-up table (LUT) or by using a recursive circuit to implement Fermat's Little Theorem (Pierre de Fermat, first published in 1640). Using the look-up table approach, the function requires a fair amount of memory to implement, specifically 2m×m, where 2m=N+1, and N is the number of elements in the Galois field.
Fermat's Little Theorem states that, for any Galois field element β, the multiplicative inverse can be found by computing β−1=βN−2, where N is the total number of elements in the field. βN−2 can be found recursively via two methods:
β−1=βN−2=β2×β4×β8× . . . ×β2
β−1=βN−2=(β× . . . (β×(β×β2)2)2 . . . )2 (3)
where 2m=N+1. Using equation (2), the ability to efficiently raise a Galois field element to a power of 2m, i.e., 2, 4, 8, etc., is of critical importance. In equation (3), it is the ability to efficiently square a Galois field element that is the most critical item. For either recursive approach, the βm operation is performed via a recursive application of a squaring operation, which is accomplished by multiplying the field element by itself.
The types of serial architecture shown in
A technique is described herein for constructing a field exponentiation circuit to any power of 2m based upon matrix algebra, which greatly reduces the amount of hardware required, reduces the processing delay through the circuit, and increases data throughput. The field exponentiation circuit is particularly useful for computing powers of an element of a Galois field having an exponent of 2m (i.e., powers of 2, 4, 8, 16, etc.), which can be used to compute the multiplicative inverse of the element as necessary to carry out division.
In accordance with one embodiment, an exponentiation circuit for computing an exponential power of a finite field element includes combinatory logic circuits that map input digits (e.g., bits) of a multi-digit field element β to output digits (bits) of an output multi-digit field element β2
An underlying exponentiation matrix determines the mapping of the input bits to the output bits and can be implemented in combinatory logic circuits requiring only exclusive-OR combinations. In this manner, the exponentiation circuit is capable of computing a power of a field element without performing any multiplication operations.
A circuit for generating a multiplicative inverse of a finite field element can be constructed from a plurality of parallel exponentiation circuits, with each of the parallel exponentiation circuits generating a different multi-digit field element β2
The above and still further features and advantages of the present invention will become apparent upon consideration of the following definitions, descriptions and descriptive figures of specific embodiments thereof wherein like reference numerals in the various figures are utilized to designate like components. While these descriptions go into specific details of the invention, it should be understood that variations may and do exist and would be apparent to those skilled in the art based on the descriptions herein.
The invention described herein presents a novel technique for constructing a field exponentiation circuit to any power of 2m based upon matrix algebra, which greatly reduces the amount of hardware required, reduces the processing delay through the circuit, and increases the data throughput. The field exponentiation circuit is particularly useful for computing powers of an element of a Galois field having an exponent of 2m (i.e., powers of 2, 4, 8, 16, etc.), which can be used to compute the multiplicative inverse of the element as necessary to carry out division in accordance with equation (1).
As shown in
As explained below in greater detail, the technique described herein is capable of generating the β2
The derivation of the 2
Given that β is an element of a Galois field of size 2n (βεGF(2n)), β may be represented as:
Staying with the example described above, where m=5, each element β in the field would be a five-digit binary number. If each digit (bit) is assigned a subscript designating its order, the element β can be expressed as: β4, β3, β2, β1, β0. For example, if β=11010, then β4=1, β3=1, β2=0, β1=1, and β0=0.
Using the standard algebraic sum of partial sums method, β2 is computed as follows:
Note that because polynomial arithmetic is being used (addition and subtraction are exclusive-OR operations), the sums of identical terms cancel, leaving only the βi2α2i terms. In addition, note that from equation (4), βiε{0,1}, thus βi2=βi.
Therefore
To compute β4, we note that
As was shown for β2, the cross products of the two summations equal 0, leaving only the βi2α4i terms, which reduces to
since βiε{0,1} and βi4=βi. By extension, it follows that this relationship holds for all non-negative powers of 2, i.e., β2
In order to create an efficient method of computing β2
η2
Briefly, a generator polynomial is an equation used to adapt the arithmetic operations in a Galois field in a modulo manner such that any arithmetic operation on elements of the field result in another element of the field. For example, suppose the digits of β in the foregoing example are coefficients of a polynomial:
β4α4+β3α3+β2α2+β1α1+β0α0 (10)
If, for example, this expression is squared, there will be terms with exponents of a greater than α4 with non-zero coefficients, which would inherently be outside of the field. The polynomial generator in effect maps higher order terms back into the terms of the field in a deterministic manner when performing arithmetic operations. This will be demonstrated with an example below. While the technique described herein employs a particular Galois field and a particular generator polynomial, it will be appreciated that the invention is not limited to any particular Galois (finite) field or field size or any particular generator polynomial, and the concepts described herein can be applied to other finite fields and other generator polynomials.
Given a method for constructing a circuit to compute β2
By way of example, given a field over GF(25) with a generator polynomial of α5+α2+1 (001012), the β2
To assist with understanding, an explanation of how the elements of matrix θ2 are generated is provided. The same methodology can be extended to matrices θ4, θ8, and θ16 in a straightforward manner. In the matrix representation, α0 is expressed as the row of values 00001, α1 is expressed as the row of values 00010, α2 is expressed as the row of values 00100, α3 is expressed as the row of values 01000, and α4 is expressed as the row of values 10000.
The bottom row of the transposed θ2 matrix is (α0)2=α0=00001.
The second row from the bottom of the transposed θ2 matrix is (α1)2=α2=00100.
The middle row of the transposed θ2 matrix is (α2)2=α4=10000.
The second row from the top of the transposed θ2 matrix is (α3)2=α6. Representing α6 in the matrix requires consideration of the generator polynomial, α5+α2+1=0. Using polynomial algebra (addition and subtraction are the XOR operation), this polynomial can be rewritten as α5=α2+1, or α5=α2+α0. Consequently, α6 can be rewritten as α6=α1α5. Substituting α2+α0 for α5 yields α6=α1(α2+α0)=α3+α1, which is expressed as 01010 in the matrix, since only α3 and α1 have a coefficient of 1.
The top row of the transposed θ2 matrix is (α4)2=α8. Repeatedly using the substitution α5=α2+α0 yields: α8=α3α5=α3(α2+α0)=α5+α3=(α2+α0)+α3=α3+α2+α0, which is expressed as 01101 in the matrix. By performing similar substitutions with higher order terms of α, the matrix elements of θ4, θ8, θ16 shown above can readily be determined.
To illustrate the application of the exponentiation matrix θ2
This array maps into the digital logic circuit shown in
β42=β2,
β32=β4⊕β3,
β22=β4⊕β1,
β12=β3, and
β02=β4⊕β1,
Therefore, computing β2 over GF(25) with a generator polynomial of α5+α2+1 requires three 2-input Exclusive-OR functions. If implemented in a field programmable gate array (FPGA), a total of three logic elements (look up tables, or LUTS) would be required to perform the operation.
β44=β4⊕β1,
β34=β4⊕β3⊕β2,
β24=β3⊕β2,
β14=β4⊕β3, and
β04=β4⊕β2⊕β0.
The β8 exponential generator 306 shown in
β48=β3⊕β2,
β38=β3⊕β2⊕β1,
β28=β3⊕β1,
β18=β4⊕β3⊕β2, and
The β16 exponential generator 308 shown in
β416=β3⊕β1,
β316=β1,
β216=β4,
β116=β3⊕β2⊕β1, and
β016=β3⊕β1⊕β0.
Examining the remaining β2
By way of comparison, a full Galois multiplier requires 19 2-input Exclusive-OR functions and 16 2-input logical AND functions. Thus, all the exponentiation operations required to perform a multiplicative inversion occur in approximately one-third the size of a single Galois field multiplier.
The multi-stage serial squaring-and-multiplying techniques illustrated in
A unique aspect of the technique described herein is that the 2m powers of a finite field element are computed in a more elegant and efficient manner without the use of multipliers or look-up tables that implement multiplication operations. Rather, the technique is based on the insight that there is actually a combinatorial way to represent the 2m powers of a finite field element which is much simpler and can be implemented in parallel.
The expression in equation (8) is important in understanding how exponentiation circuits can be constructed with relatively few components and/or operations. In effect, as higher orders of β are computed, the cross-products keep disappearing (canceling out) such that the computations do not become more complex even at higher powers of β. This characteristic permits the relationships between β and the powers of β to be represented in a simple n×n exponentiation matrix which transforms the digits (in this case bits) β to digits (bits) of the output power of β (β2
Although not applicable to the subject of Galois field inversion, the matrix algebra approach used to derive the exponentiation matrices also applies to multiplying a Galois field value by a constant αN:
Continuing with the example of a field over GF(25) with a generator polynomial of α5+α2+1 (001012), multiplying a field value by α7 would be computed as follows:
Therefore, computing α7×β over GF(25) with a generator polynomial of α5+α2+1 requires eight 2-input exclusive-OR functions. This array maps into the digital logic circuit shown in
Taking into consideration this extension of multiplying a finite field element by a constant, it will be appreciated that the invention encompasses the use of matrix algebra with finite field elements, resulting in arrays that are summations of input values that can be used to raise a field element to a power or to carry out multiplication by a constant.
The invention can be used in any hardware or software application that requires finite field arithmetic, such as encryption or forward error correction algorithms. As previously described, forward error correction codes are used extensively in communications to ensure the accuracy of data being received. Properly encoding data with finite field arithmetic allows a relatively small check word to be used to check the accuracy of a large amount of data and to determine which data is erroneous. Using the techniques of the present invention, the computations required to perform these types of operations can be carried out with less hardware and/or less and faster processing.
Having described preferred embodiments of circuits and methods for performing exponentiation and inversion of finite field elements, it is believed that other modifications, variations and changes will be suggested to those skilled in the art in view of the teachings set forth herein. It is therefore to be understood that all such variations, modifications and changes are believed to fall within the scope of the present invention as defined by the appended claims. Although specific terms are employed herein, they are used in a generic and descriptive sense only and not for purposes of limitation.
Number | Name | Date | Kind |
---|---|---|---|
5890800 | Meyer | Apr 1999 | A |
6101520 | Lan et al. | Aug 2000 | A |
6138133 | Oh | Oct 2000 | A |
6779011 | Weng et al. | Aug 2004 | B2 |
20020032711 | Morioka et al. | Mar 2002 | A1 |
Entry |
---|
Dr. Somsak Choomchuay, “On the Implementation of Finite Field Basis Conversions,” 1994, King Mongkut's Institute of Technology, North Bangkok, pp. 482-486. |
Choomchuay S., “On the Implementation of Finite Field Operations”, Ladkrabang Engineering Journal, TH, vol. 11, No. 1, Jun. 1, 1994, pp. 7-16. |
Jorge Guajardo et al., “Efficient Hardware Implementation of Finite Fields with Applications to Cryptography”, Acta Applicandae Mathematicae, Kluwer Academic Publishers, DO LNKD-DOI: 10.1007/S10440-006-9072-Z, vol. 93, No. 1-3, Sep. 26, 2006, pp. 75-118. |
European Search Report dated Sep. 20, 2010 cited in Application No. 10161704.1. |
Number | Date | Country | |
---|---|---|---|
20100306299 A1 | Dec 2010 | US |