SYSTEM FOR COMPUTING THE MULTIPLICATIVE INVERSE OF AN ELEMENT OF A GALOIS FIELD WITHOUT USING TABLES

Abstract: A system for determining the multiplicative inverse of an element of GF(2<m>) by raising the element to the power 2<m>-2. The system may raise the element alpha <j> to the power 2<m>-2 by repeatedly multiplying the element by itself 2<m>-3 times. Alternatively, the system may produce the exponent 2<m>-2 as the sum of: 2<m-1>+2<m-2>+...+2<3>+2<2>+2<1> and thus (1) as (2). The system may iteratively square alpha <j> to produce the various factors (3) and, using a single multiplier, multiply and accumulate the results. Alternatively, the system may use a plurality of circuits operating in parallel and simultaneously raise the element alpha <j> to the powers 2<m-1>, 2<m-2>...2 to produce the factors, and use a plurality of tiered multipliers to multiply the factors together. The system may instead raise the element alpha <j> to the power 2<m>-2 using a relatively small number of "stages", by producing the exponent 2<m>-1 as a combination of various products and sums. The products are implemented by raising the appropriate Galois Field elements to powers of 2 and the sums are implemented by multiplying elements together. The system implemented in this manner includes in a first stage circuit that in parallel raise the element alpha <j> to various powers of 2; in a second stage multipliers that selectively combine the results produced by the first stage; and in succeeding stages circuits that raise selected products produced in the preceding stages to various powers of 2 and multipliers that selectively combine the elements produced in the preceding states. For those GF(2<m>) in which the elements can be represented by (m+1)-bit symbols, the system raises elements to powers of two by permuting the bits of the (m+1)-bit symbols and multiplies two elements together as (m+1)-bit symbols by cyclically shifting copies of one of the (m+1)-bit symbols, exclusive-OR'ing the bits of the shifted copies with the bits of the other (m+1)-bit symbol and summing the results.

Description: SYSTEM FOR COMPUTING THE MULTIPLICATIVE INVERSE OF AN ELEMENT OF A GALOIS FIELD WITHOUT USING TABLES FIELD OF THE INVENTION This invention relates generally to data processing systems and, more particularly, to systems that manipulate data codewords that are encoded using codes based on Galois fields. BACKGROUND OF THE INVENTION Data stored on magnetic media, such as a magnetic disks, are typically stored in encoded form, so that errors in the stored data can possibly be corrected. The errors may occur, for example, because of inter-symbol interference, a defect in the disk, or noise. As the density of the data stored on the disk increases, more errors are likely, and the system is required to correct greater numbers of errors, which include greater numbers of burst errors. A burst error is typically defined as a contiguous number of symbols in which the first symbol and the last symbol are erroneous. The speed with which the system corrects the errors, including the burst errors, is important to the overall speed with which the system processes the data. Prior to recording, multiple-bit data symbols are encoded using an error correction code (ECC). When the data symbols are retrieved from the disk and demodulated, the ECC is employed to, as the name implies, correct the erroneous data. Specifically, before a string of k data symbols is written to a disk, it is mathematically encoded using an (n, k) ECC to form n-k ECC symbols. The ECC symbols are then appended to the data string to form an n-symbol error correction code word, which is then written to, or stored, on the disk. When the data are read from the disk, the code words containing the data symbols and ECC symbols are retrieved and mathematically decoded. During decoding, errors in the data are detected and, if possible, corrected through manipulation of the ECC symbols [for a detailed description of decoding see, Peterson and Weldon, Error Correction Codes, 2nd Ed. MIT Press, 1972]. To correct multiple errors in strings of data symbols, the system typically uses an ECC that efficiently and effectively utilizes the various mathematical properties of sets of symbols known as Galois fields. Galois fields are represented "GF (P M )", where "P" is a prime number and "M" can be thought of as the number of digits, base "P", in each element or symbol in the field. P usually has the value 2 in digital computer and disk drive applications and, therefore, M is the number of bits in each symbol. The ECC's commonly used with the Galois Fields are Reed Solomon codes or BCH codes. Reed Solomon and BCH decoding operations involve a plurality of division operations. One method of dividing a Galois field element A by a Galois field element B is to determine the multiplicative inverse, B "1 , of B and then multiply A by B "1 . In prior systems a look-up table is typically used to determine the multiplicative inverse, so that the system need not perform a known, time-consuming series of steps to produce the inverse. The look-up table contains 2 m -1 entries. For systems using GF(2 8 ), that is, using 8-bit symbols, the look-up table has 2 8 -1, or 255, entries. As the density of the data increases, larger Galois Fields are used to produce the longer data codewords that are required to protect the data. Consequently, larger look-up tables are required to provide the multiplicative inverses. For GF(2 10 ) or GF(2 12 ), for example, the required tables have 1023 and 4095 entries, respectively. Each of the tables thus consumes a great deal of storage space, which for some systems is too expensive and/or impractical. Accordingly, what is needed is a mechanism that, without being overly complex, relatively quickly calculates the multiplicative inverses, and thus, eliminates the need for the look-up table. SUMMARY OF THE INVENTION A system for determining the multiplicative inverse of an element of GF(2 m ) by raising the element to the power 2 m -2. The system takes advantage of the fact that all non-zero elements of GF(2 m ) are roots of the polynomial x 2 - x = 0 or x 2 " '-1 = 0, and thus, for any α J eGF(2 m ), ( J ) 2 " 1" ^! eqn. 1 Multiplying both sides of equation 1 by (α J ) " ': ( J ) " ' * (α J ) 2m" ' = (α J ) _1 * 1 where "*" represents multiplication, gives the inverse of α J as α- J = (α J ) 2m - 2 eqn. 2 The system may raise the element α J to the power 2 -2 by repeatedly multiplying the element by itself 2 m -3 times. Alternatively, the system may produce the exponent 2 m - 2 as the sum of: 2 m m --l l + I 2 H m I--2 + i _ J +. I23 J +_2 ι2 2 _+__ -2>1 and thus (α ) as (α ) 2m - 1 >|c (α J ) 2ra"2 * ...*( α J ) 23 *(α J ) 22 * (α J ) 2 eqn. 3 To do this, the system may iteratively square α J to produce the various factors of eqn. 3 and, using a single multiplier, multiply and accumulate the results. This implementation of the system is not complex, but requires m-l time-consuming multiplication cycles. Alternatively, the system may use a plurality of circuits operating in parallel and simultaneously raise the element α J to the powers 2 m" 2 m~2 and so forth, and a plurality of tiered multipliers to then multiply the factors together. This implementation is fast, but includes a relatively large number of complex multiplier circuits. Preferably, the system raises the element α J to the power 2 -2 using a relatively small number of "stages," as a best trade-off between complexity and delay. To do this the system produces the exponent 2 m -2 as a combination of various products and sums. The products are implemented by raising the appropriate elements to powers of 2 and the sums are implement by multiplying elements together. The system thus includes a first stage in which circuits in parallel raise the element α J to various powers of 2; a second stage in which multipliers selectively combine the results produced in the first stage; and one or more stages in which circuits raise selected products produced in the preceding stages to various powers of 2 and/or multipliers selectively combine the results produced in preceding stages. The system produces the inverses using a minimal number of stages, each with at most one multiplier, such that the system includes relatively few multipliers and the associated delay is minimized. BRIEF DESCRIPTION OF THE DRAWINGS The invention description below refers to the accompanying drawings, of which: Fig. 1 is a block diagram of a system constructed in accordance with the invention; Fig. 2 is a more detailed functional block diagram of an embodiment of the system of Fig. 1; Fig. 3 is a functional block diagram of an alternative embodiment of the system of Fig.l; Fig. 4 is a functional block diagram of another embodiment of the system of Fig. 1; Fig. 5 is a table that describes, for various Galois Fields GF(2 m ), hardware configurations for the system depicted in Fig. 4; Fig. 6 is a functional block diagram of an alternative embodiment of the system of Fig. 4 for Galois Fields GF(2 ra ), where m is even; Fig. 7 is a functional block diagram of an alternative embodiment of the system of Fig. 4; Fig. 8 is a table that describes alternate hardware configurations for systems using GF(2 m ) for certain values of m; and Fig. 9 is a flow chart of the operations of an alternative embodiment of the system of Fig. 7. DETAILED DESCRIPTION OF AN ILLUSTRATIVE EMBODIMENT Referring now to Fig. 1, a system 10 for determining the multiplicative inverse of α J eGF(2 m ) includes a processor 12 that raises the element to the power 2 m - 2. The result is the inverse of α J , α "J = (α J ) 2 "2 - The system 10 takes advantage of the fact that every non-zero element of GF(2 m ) is a root of x 2 - x = 0, or x 2 " '-1 = 0. Thus, for any non-zero element α J , (α 2 " 1 - 1 ^ eqn. 1 Multiplying both sides of equation 1 by ( J ) "! : (α J )- I *(α , ) m - , = (α J )- 1 *l where "*" represents multiplication, produces: ( J ) 2m"2 = - J eqn. 2 The processor 12 that raises α J to the 2 m -2 power may be implemented in hardware, software or firmware. We discuss below various hardware configurations and their associated delays. All of the hardware configurations, as well as any software or firmware embodiments of the system are viable alternatives to using a 2 m -l element look- up table to determine the multiplicative inverse of J . In most error correction systems there is a trade-off between delay and system complexity, and we discuss below various configurations that optimize that trade-off. One method for producing (α J ) 2 "2 is to multiply α J by itself 2 m -3 times. For this method, the processor 12 consists of a single multiplier. The delay, however, is 2 m -3 multiplier cycles, which presumably is too long for most error correction systems. Another method for producing the inverse is to treat the exponent 2 m -2 as the sum of: 2 m'1 + 2 m"2 + ...+ 2 3 + 2 2 + 2 1 and thus, (α J ) 2 ~2 may be produced as the product: (α 2 " 1"1 * ( J ) 2 " "2 * ... * (α) 23 *(α J ) 22 *(α J ) 21 eqn. 3 as discussed below with reference to Figs. 2 and 3. Referring now to Fig. 2, the processor 12 includes two registers 14 and 16, a squaring circuit 18 and a multiplier 20 that connects to the output line 15 of the register 14 through a switch 22. The circuit produces (a 1 ) 2 " 1 ' 2 as: (α J ) 2n * (α J ) 2m - 2 *... * (α J ) 3 * (α J ) 2 * (α J ) ! by repeatedly squaring α J to iteratively produce the factors of equation 3 and multiplying the factors together as they are produced. At time t=0, α J is loaded into register 14; a symbol of all ones is loaded into register 16; and the switch 22 is open. The contents of register 14 are applied to the squaring circuit 18 and the result, (α J ) 2 , is then fed back to the register 14 at time t=l . We measure time in cycles that correspond in duration to the longest time it takes the system to perform a desired operation. Thus, time is measured in cycles that correspond to the time it takes to multiply two m-bit symbols. Next, the switch 22 is closed and the contents of the register 14 are applied to both the squaring circuit 18 and the multiplier 20. The squaring circuit 18 produces ( J ) 2 and the multiplier 20 multiplies (α J ) 2 by the contents of the register 16, i.e., by an m-bit symbol of all ones. The contents of the registers 14 and 16 are then updated to (α J ) 2 and (α J ) 2 , respectively, at time t=3. The element (α J ) 2 is next applied to the squaring circuit 18 and to the multiplier 20. The squaring circuit produces (α J ) 2 and the multiplier produces (α J ) 2 * (α J ) 2 , and the registers 14 and 16 are appropriately updated. The contents of the register 14 are repeatedly squared to produce the remaining factors of equation 3 and the factors are multiplied, respectively, m-3 more times, to produce (α 2 "" 2 . The total delay to produce the multiplicative inverse is thus m-l cycles. This hardware implementation is faster than using a single multiplier, but is still generally too slow for use in many error correction systems. This implementation, however, works well for systems that anticipate the need for particular multiplicative inverses by at least m-l cycles. Referring to Fig. 3, the processor 12 is implemented using m-l circuits 30„ i=l, 2...m-l, for raising J to powers of two, and m-2 tiered multipliers 32 k , k=l, 2...m-2, for multiplying together the results produced by the circuits 30,. The delay associated with this circuit is l+[log 2 (m-2)] cycles, where [ ] represents the ceiling function. The delay of 1 cycle is associated with the circuits 30, that raise α J to the powers of two, and the delay of [log 2 (m-2)] cycles is associated with the multipliers 32 k . This implementation is fast, however, with m-2 multipliers, it may be too complex for certain error correction systems. We have determined that hardware configurations with minimal delay and acceptable complexity can be designed by treating the exponent 2 m -2 as a series of products and sums that require a minimum number of the multipliers. Circuits that raise the elements to various powers of two, i.e., the "power-of-two circuits," produce the products, since the exponents multiply, and the multipliers produce the sums, since the exponents of the elements add. We refer to the series of operations that produce the various products and sums as "stages." As an example, we refer to Fig. 4. The inverse of α J eGF(2 10 ) is determined in six stages. In a first stage the element α J is simultaneously raised to the powers 2 3 and 2 2 in circuits 40 and 41 and to the power 2 in squaring circuit 42. In a second stage multiplier 3 2 43 multiplies (α J ) 2 and (α J ) 2 to produce (α J ) 8+4 = (α J ) 12 . In a third stage the product is multiplied in multiplier 44 by (α J ) 2 to produce ( J ) 14 , which is applied to power-of-two circuits 45 and 46 and register 49. The circuits 45 and 46 produce (α J ) 896 and (α J ) 112 , respectively, as part of the fourth stage. In the fifth stage a multiplier 47 multiplies the two values together, to produce (α J ) 1008 . In the sixth stage, a multiplier 48 multiplies the product by the contents of the register 49, to produce (α J ) 1022 = (c- "1 . The associated delay is 6 cycles, one for each of the stages, and the system includes only four multipliers. The hardware configuration thus produces the multiplicative inverses with a combination of essentially minimal complexity and minimal delay. Fig. 5 is a table that details configurations of the processor 12 for GF(2 m ), m < 29. The notation _ 1 1 _ is used to denote raising an element to the associated powers of two in parallel and the multiplication of the results, and the notation — refers to applying the result of the previous operation(s) to a next operation or set of parallel operations. As desired, similar hardware configurations can be determined for m>29. Using the example of Fig. 4, consider the table entry for GF(2 10 ): [(8 | | 4) | | 2]→[(64 | | 8) | | l] The circuits 40 and 41 and the multiplier 43 perform 8 1 1 4 by raising α J to the powers 2 3 and 2 2 and multiplying the results together, to produce the product α 12 . The multiplier 44 performs 1 1 2 by multiplying together the product produced by multiplier 43 and the element (α 1 ) 2 produced by squaring circuit 42, to produce the product α 14 . The circuits 45 and 46 and the multiplier 47 perform 641 1 8, and the multiplier 48 performs 1 1 1 by multiplying together the product produced by multiplier 47 and the contents of register 49. For even values of m, the multiplicative inverse of an element of GF(2 m ) may instead be produced by first raising the element to the power t*k, where t=2 m/2 -l and k is any integer, and then essentially determining the inverse of (α )' *k , which is [(α j *k ] 2m/2 . This can be shown by considering that [(α J ) t*k ] 2m/2 = [(α J ) ,*k ] ,+1 = (α J ) t*k*(,+2 - 1) = α t*k*(,+2) *(α )- t*k The exponent of the first term is zero mod 2 m -l because it includes (2 m -l) as a factor: j*[t*k*(t+2)] =j*[((2 m/2 -l)*k)*(2 m/2 +l)] =j*(2 m -l)*k Accordingly, α jW,+2)1 = α° = l and thus The hardware configuration for determining the inverse of α J using this method is depicted in block diagram form in Fig. 6. The element α J is applied to a circuit 70 that raises α J to the t*k-l power, to produce (α J )' *k" '. The result is then multiplied by α J in multiplier 72, to produce the product (α)' *k . This product is next raised to the power 2 m/2 , or t+1 , to produce (α J ) " ' * and this result is multiplied in multiplier 76 by the quantity (α J )' *k~I produced by the circuit 70. The result is (α J ) " \ The system designer is presented with the problem of determining a fast and not overly complex circuit for raising α to the t*k-l power. For the even values of m included in the table of Fig. 5, we have determined that the hardware configurations included in the table each represent a better or at least as good trade-off of delay versus complexity for all values of m except m=12. For m=12, and k=l, the circuit 70 for raising α J to the t*k-l power is: [(8 1 1 4)-»(4 1 1 1)] 1 1 2. This implementation of the circuit 70 together with the multipliers 72 and 76 and the circuit 74 produce the inverse of α J with a delay of 8 cycles using a total of 5 multipliers and 5 power-of-two circuits. Using the hardware configuration of Fig. 6 instead of the configuration included in the table of Fig. 5, the number of multipliers is reduced from 6 to 5 and the delay is increased by only 2 cycles. The hardware configurations for Galois Fields GF(2 m ) that can be generated by irreducible polynomials p(x)=x m +x m -' = x m"2 ... + x 2 + x + 1 can be further optimized by using (m+l)-bit representations of the m-bit elements. A paper by J.K. Wolf entitled "Efficient Circuits for Multiplying in GF(2 m ) For Certain Values ofm," published in Discrete Mathematics 106/107 (1992) pp. 497-502, discusses certain of these fields and is incorporated herein by reference. Co-pending United States Patent Application Serial No. 08/786,894 entitled Modified Reed-Solomon Error Correction System Using (w+i+l)-Bit Representations of Symbols in GF(2 W+1 ), which is assigned to a common assignee and is also incorporated herein by reference, discusses a greater number of these fields. The first few values ofm are 2, 4, 10, 12, 18, 28... As described in the co-pending application, each symbol of these particular Galois Fields can be represented by one of two related (m+l)-bit symbols. It further describes how the operations of raising an element to a power of 2 or multiplying two elements can be readily performed as permutations and combinations of cyclic shifts of the associated (m+l)-bit symbols. Specifically, as discussed below and in greater detail in the co- pending application, an element is raised to a power of 2 by permuting the bits of the associated (m+l)-bit symbol. Two elements are multiplied together as (m+l)-bit symbols by cyclically shifting the bits of one of the (m+l)-bit symbols, exclusive -OR'ing the shifted symbols with the bits of the other (m+l)-bit symbol and summing the results. There is thus essentially no delay in raising an element to a power of two, and the delay associated with the multiplication operation is significantly smaller than the delay associated with the corresponding operation performed using m-bit representations of the elements. The (m+l)-bit symbols c(x) = c m x m + c m .,x m"! +...+ c 2 x 2 + ^X'+C Q that represent the m-bit elements are hereinafter referred to by their coefficients or bits, namely, C W — C m C m-l C m-2"- C 2 C l C 0 To raise a symbol c(x) to the power 2 j , we define a permutation 7t j (i) ≡ i*2 J mod m+1 that produces the exponent of the coefficient of bit i of [c(x)] 2J . To square an 11-bit representation of an element of GF(2 10 ), for example, bit 10 of c(x) is permuted to bit i*2 mod m+1 or 10 * 2 mod 11 = 9 of [c(x)] 2 and so forth, such that [c(x)] 2 has coefficients: C 5 C 10 C 4 C 9 C 3 C 8 C 2 C 7ClC6 C 0 Multiplication of two (m+l)-bit symbols is performed by exclusive-OR'ing cyclically shifted copies of one of the symbols with the bits of the other symbol and summing the results. Thus, multiplication of two (m+l)-bit symbols is more easily and quickly performed than multiplication of two m-bit symbols. For two symbols b(x) and d(x), where b(x) = b, 0 b 9 b 8 b 7 b 6 b 5 b 4 b 3 b 2 b 0 and d(x) = d 10 d 9 d 8 d 7 d 6 d 5 d 4 d 3 d 2 d, do, b(x) * d(x) = b 0 * ( , 0 dg d 8 d 7 d 6 d 5 d 4 d 3 d 2 d, d 0 ) + b, * (d 9 d 8 d 7 d 6 d 5 d 4 d 3 d 2 d, d 0 d 10 ) + b 2 * (d 8 d 7 d 6 d 5 d 4 d 3 d 2 d, d 0 d 10 d,) + b 3 * (d 7 d 6 d 5 d 4 d 3 d 2 d, d 0 d 10 d 9 d 8 ) + b 4 * (d 6 d 5 d 4 d 3 d 2 d, d 0 d 10 d, d 8 d 7 ) + b 5 * (d 5 d 4 d 3 d 2 d, d 0 d 10 d 9 d 8 d 7 d 6 ) + b 6 * (d 4 d 3 d 2 d, d 0 d 10 d, d 8 d 7 d 6 d 5 ) + b 7 * (d 3 d 2 d, d 0 d 10 d 9 d 8 d 7 d 6 d 5 d 4 ) + b 8 * (d 2 d, d 0 d, 0 d 9 d 8 d 7 d 6 d 5 d 4 d 3 ) + b 9 * (d, d 0 d 10 d 9 d 8 d 7 d 6 d 5 d 4 d 3 d 2 ) + b, 0 * (do d 10 d 9 d 8 d 7 d 6 d 5 d 4 d 3 d 2 d^ where "*" represents multiplication over GF(2). Note that the components of d(x) of each row above are cyclically shifted copies of each other. The symbols b(x) and d(x) can be interchanged, to achieve the same result. If lower weight versions of the 11-bit representations, that is, the representations with the smaller number of 1 s, are used for the multiplication operation, the operation involves a maximum of 5 cyclically shifted copies of a symbol since the shifted copies of d(x) that correspond to the zero-valued bits of b(x) need not be produced. Accordingly, the maximum number of modified symbols that must be added together is five. In contrast, multiplying two 10-bit symbols may require adding together up to 10 modified copies of one of the symbols. Further, the modifications to the 10-bit copies are typically more complex than cyclic shifts. Using the (m+l)-bit representations, the delays associated with the various hardware configurations set forth in the table of Fig. 5 are reduced to the delays associated with the multiplication operations, because the permutations that raise elements to powers of 2 each have essentially no delay. For example, the delay associated with determining the inverse of an element of GF(2 10 ) is reduced from 6 cycles to 4 cycles when (m+l)-bit symbols are used. Further, the duration of each cycle is shorter since the (m+l)-bit multiplication operations for these Galois Fields are performed more quickly than the corresponding m-bit multiplications operations. Fig. 7 depicts in block diagram form the system 10' for determining the multiplicative inverses in GF(2 10 ) using (m+l)-bit symbols. The (m+l)-bit symbol associated with α J is applied in parallel to permutation circuits 40', 41' and 42'. With essentially no delay, the circuits raise the element, respectively, to powers of 2 3 , 2 2 and 2 by permuting the bits in accordance with π } (i). The (m+l)-bit symbols produced by permutation circuits 40' and 41' are multiplied together in multiplier 43', which cyclically shifts one of the (m+l)-bit symbols an appropriate number of times, exclusive-OR's the shifted bits with the bits of the other (m+l)-bit symbol and sums the results. The (m+1)- bit product produced by the multiplier 43' is then multiplied in multiplier 44' by the (m+l)-bit symbol produced by permutation circuit 42'. The (m+l)-bit product produced by multiplier 44' is applied to permutation circuits 45' and 46'. With essentially no delay, the circuits raise the product to powers of 2 6 and 2 3 , respectively, by permuting the bits of the (m+l)-bit symbol. The (m+l)-bit symbols produced by the permutation circuits 45' and 46' are then multiplied together in multiplier 47', by cyclically shifting the bits of one of the (m+l)-bit symbols, exclusive- OR'ing the shifted bits with bits of the other symbol and summing the results. The (m+l)-bit product produced by multiplier 47' is multiplied in multiplier 48' by the contents of register 49', that is, by the (m+l)-bit product produced by multiplier 44', to produce the (m+l)-bit representation of (α J ) " '. As discussed in the co-pending patent application, the coefficients of the corresponding m-bit element of GF(2 10 ) are the bits c 9 , c 8 ...c 0 or their complements, depending on whether c 10 is a 0 or a 1. The inverse of α J is thus produced with a delay of only 4 cycles. Fig. 8 is a table of the hardware configurations and the associated delays of systems that manipulate (m+l)-bit representations of the elements of GF(2 m ) for m=2, 4, 10, 12, 18 and 28. As desired, similar hardware configurations can be determined for applicable values of m>28. For those field elements that are also elements of a subset "S" in which each element can be represented as α k*s , where s=2 m/2 -l and k is an integer, the multiplicative inverse can be determined by a single permutation. Accordingly, there is essentially no delay in producing these inverses. As discussed above, the inverse of an element α J is (α J ) 2 "2 . Specifically, with j=k*s, the exponent can be manipulated as follows: k*s*(2 m -2) = k*s*[2 ra -l-l+2 m/2 -2 m 2 ] = k*s*[2 m 2 +(2 m -l)-(2 m/s +l)] = k*s*2 m/s + k*s[(2 m/2 +l)(2 m 2 -l) - (2 m 2 +l)] = k*s*2 m/2 + k*s[(2 ra 2 +l)(2 m/2 -l-l)] = k*s*2 m 2 +k*[(2 m/2 -l)(2 m 2 +l)(2 m 2 -2)] = k*s*2 m 2 + k*(2 m -l)*(2 m/2 -2) The second term of the exponent is zero, since in GF(2 m ) a factor of 2 m -l is equal to zero. Accordingly, the inverse of α k*s is [α *s ] 2 • The inverse is thus determined by raising the element to the power of 2 m 2 , which with (m+l)-bit symbols is performed by permuting the bits. If the coefficients of J are: m ι=l the coefficients of the inverse α "k*s are: (a kt = £c_x' *2m + c 0 ≡ ∑c,x m+1 -' + e 0 mod(x" ,+1 + l) (=1 ;=1 eqn.4 Referring now to Fig. 9, the system in step 100 determines if an element α J is an element of the subset S. If so, the system in step 102 determines the inverse of J by permuting the bits of the associated (m+l)-bit representation in accordance with equation 4. For the elements of the subset S, the system thus determines the inverses with essentially no delay. For an element of the Galois Field that is not an element of the subset, and thus, cannot be represented as α k*s , the system in step 104 determines the inverse by raising the (m+l)-bit representation of the element to the 2 m -2 power using, for example, the appropriate hardware configuration included in the table of Fig. 8. The systems that use the (m+l)-bit symbols determine the multiplicative inverses with minimum delay, using a minimal number of (m+l)-bit multipliers. Further, the (m+l)-bit multipliers are less complex than m-bit multipliers, and thus, such systems represent an optimum combination of minimum complexity and minimal delay. The systems that use m-bit symbols discussed above also represent optimal trade-offs of delay versus complexity, and similarly eliminate the need for look-up tables. What is claimed is:

Claims: CLAIMS 1. A method for determining a multiplicative inverse of an element J of Galois Field GF(2 m ), the method including: A. multiplying the element α by itself; B. repeating step A 2 m -3 times to produce ( J ) 2 "2 . 2. A system for determining a multiplicative inverse of an element α J of Galois Field GF(2 m ), the system including: A. means for raising the element α J to the powers 2 1 , i=l,2,...m-l to produce m-l elements (α 2 ™ 1 , (a 1 ) 2 ^ 2 , ... ( 'f, ( J ) 2 B. means for combining the m-l elements to produce the product: (α 2 ""- 1 * (α J ) 2m - 2 * ... * (a J ) 2 ' * ( J ) 2 = (α J ) 2m"2 3. The system of claim 2 wherein the means for combining includes a plurality of multipliers that are arranged in tiers, with the first tier of multipliers multiplying pairs of the m-l elements, and succeeding tiers of multipliers multiplying pairs of the products produced by the preceding tier of multipliers. 4. A system for determining a multiplicative inverse of an element α J of Galois Field GF(2 m ), the system including: A. one or more power-of-two circuits for raising the element α J to powers of two; B. one or more multipliers for multiplying selected pairs of the results produced by the power-of-two circuits; C. one or more additional power-of-two circuits for raising selected products produced by the one or more multipliers to powers of two; and D. one or more additional multipliers for producing ( J ) 2 "2 , the additional multipliers multiplying i. selected pairs of the results produced by the additional power-of-two circuits; 11 ii. selected results produced by the power-of-two circuits and selected products 12 produced by the one or more multipliers; and 13 iii. selected results produced by the additional power-of-two circuits and selected 14 products produced by one or more of the additional multipliers. 1 5. The system of claim 4 wherein: 2 a. selected power-of two circuits, selected one or more multipliers, selected 3 additional power-of two circuits, and selected additional multipliers produce (α J )' *k , 4 b. selected additional power-of two circuits and selected additional multipliers 5 produce [(a J )'' k ] 2m 2 = (a J ) 't,k , and 6 c. selected additional power-of two circuits and selected additional multipliers 7 produce (α J ) ' * *k * (α ) l*k" ' = (α J ) " ' . 1 6. A system for producing multiplicative inverses for elements oc J of GF(2 m ), the system 2 including: 3 A. one or more permutation circuits for raising the element α J to powers of two by 4 permuting bits of a (m+ 1 )-bit representation of the element α J ; 5 B. one or more (m+l)-bit multipliers for multiplying selected pairs of the results 6 produced by the permutation circuits; 7 C. additional permutation circuits for raising selected products produced by the 8 one or more multipliers to powers of two; and 9 D. one or more additional (m+l)-bit multipliers for producing (α J ) 2 "2 , the I o additional (m+ 1 )-bit multipliers multiplying I I i. selected pairs of the results produced by the additional permutation circuits; 12 ii. selected results produced by one or more of the permutation circuits and 13 selected products produced by the one or more (m+l)-bit multipliers; 14 iii. selected results produced by the additional permutation circuits and selected is products produced by one or more of the additional (m+l)-bit multipliers. l 7. The system of claim 7 further including: E. permutation means for permuting bits of the (m+l)-bit representations of elements α J that are elements of a subset S in which the elements are α k*s , with s = 2 m 2 +1 and k an integer, the permutation means producing the multiplicative inverse of an element of the subset by raising the element to the power 72 2 . 8. A method for producing the multiplicative inverses of elements α of GF(2 m ), the method including the steps of: A. determining if an element α J is also an element of a subset S which has elements that are k*s , with s=2 m 2 +l and k is an integer; B. for elements of the subset S, producing the multiplicative inverse by permuting bits of an (m+1 )-bit representation of α k*s to produce (α k*s ) 2 2 ; C. for α J not in the subset S, producing (α J ) 2 "2 . 9. The method of claim 8 wherein the step of producing (α J ) 2 2 includes the steps of i. raising α J to powers of two; ii. multiplying together selected elements produced in step i; iii. raising selected products produced step ii to powers of two; iv. multiplying together selected products and elements produced in steps i-iii; and v. repeating step iv to produce (α J ) . 10. The method of claim 9 wherein the steps of raising an element to a power of two is performed by permuting bits of an (m+l)-bit representation of the element. 11. The method of claim 9 wherein the steps of multiplying two elements are performed by cyclically shifting an (m+l)-bit representation of one element, exclusive-OR' ing the shifted bits with bits of the (m+1 ^representation of the other element and summing the results.

Inventors: SHEN BA-ZHONG, WENG LIH-JYH, SHEN, BA-ZHONG, WENG, LIH-JYH
Applicants: QUANTUM CORP, QUANTUM CORPORATION
Application year: 1998
Main classification: G06F7
IPC codes: G06F7