Computation in Finite Fields

Total Page:16

File Type:pdf, Size:1020Kb

Computation in Finite Fields Computation in finite fields John Kerl Arizona State University and Lockheed Martin Corporation April, 2004 Abstract Elementary techniques for computation in finite fields are presented, at a level appropriate for an engi- neering, computer science or mathematical audience. Second, elementary Galois theory for finite fields is presented at a level appropriate for undergraduate or beginning graduate students in mathematics. For the latter, illustrative properties of a novel logarithmic root chart are developed. Third, linear feedback shift registers are presented in a manner which connects mathematical theory and engineering practice. Fourth, some techniques for software implementation are outlined: using a computer algebra system for the general case, and in C for the p = 2 case. This paper is an elaboration on lecture notes for a talk given to the Arizona State University Math Department's Graduate Student Seminar Series in fall of 2003. Some software-related updates were made January 2013. Contents Contents i 1 Introduction 1 1.1 Purpose . 1 1.2 Context . 1 1.3 Scope . 1 1.4 Audience . 2 1.5 Rings and fields; notation . 3 I Arithmetic 4 2 The field Fp 5 2.1 Elements of Fp ............................................ 5 2.2 Arithmetic in Fp ........................................... 6 2.3 First reciprocation method in Fp .................................. 6 2.4 Second reciprocation method in Fp ................................. 6 2.5 Third reciprocation method in Fp .................................. 7 2.6 Repeated-squaring algorithm for exponentiation . 7 2.7 Fourth reciprocation method in Fp; logarithms . 8 3 The field Fpn 10 3.1 Field characteristic and prime subfield . 10 3.2 Existence of Fpn ........................................... 10 3.3 Computation in Fp[x] ........................................ 11 3.4 Simple determination of irreducibles in Fp[x] ........................... 13 3.5 Elements of Fpn ............................................ 14 3.6 Addition, subtraction and multiplication in Fpn .......................... 15 3.7 Primitivity in Fpn .......................................... 16 3.8 Powers of u and LFSRs . 16 3.9 First reciprocation method in Fpn .................................. 17 3.10 Second reciprocation method in Fpn ................................ 17 3.11 Third reciprocation method in Fpn ................................. 18 3.12 Fourth reciprocation method in Fpn ; logarithms . 18 II Galois theory 20 n 4 The universal polynomial xp − x 21 4.1 Reducibility of the universal polynomial over Fp ......................... 21 i 4.2 Fpn as a splitting field . 21 4.3 The root chart . 22 5 Basic Galois theory for Fpn 23 5.1 Subfields . 23 5.2 Frobenius automorphisms . 24 5.3 Galois group and Frobenius orbits . 24 5.4 Characteristic and minimal polynomials . 25 5.5 Conjugates . 26 5.6 Orders and logs . 26 5.7 Two definitions of \generator" . 26 5.8 The irreducible-count and primitive-count formulae . 27 5.9 The Galois correspondence . 28 5.10 Field isomorphisms . 28 5.11 Embeddings and unembeddings . 29 5.12 Composite fields . 30 5.13 Algebraic closure of Fp ........................................ 30 6 Multiple extensions 31 6.1 Minimal polynomials over intermediate fields . 31 6.2 Double-compact notation . 32 6.3 Second example for intermediate fields . 33 III Algorithms 37 7 Blankinship's algorithm for extended GCD 38 8 Shanks algorithm for discrete logs in a cyclic group 40 9 How to find primitive elements of Fp 41 10 How to find irreducible polynomials in Fp[x] 42 10.1 Universal-polynomial algorithm . 42 10.2 Derivative test for multiple factors . 43 10.3 One pass of Berlekamp's algorithm . 43 10.4 All-irreducibles algorithm . 43 11 How to find primitive polynomials in Fp[x] 45 12 Factoring in Fp[x] and Fpn [x] 46 12.1 Recursion . 46 12.2 Squarefree preparation . 46 12.3 Berlekamp's algorithm . 47 13 How to construct a root chart 48 IV Software implementation 49 14 Computing with finite fields in GP 50 14.1 Fp inGP ............................................... 50 14.2 Fpn inGP............................................... 51 ii 14.3 Multiple extensions in GP . 51 15 p = 2 in C 54 15.1 Hexadecimal notation . 54 15.2 I/O . 55 15.3 Word sizes . 56 15.4 Signed vs. unsigned . 57 15.5 Representation of integers . 57 15.6 Integer arithmetic . 57 15.7 Bit numbering in C . 58 15.8 Representation of polynomials . 59 15.9 Addition using XOR . 59 15.10Scalar multiplication using AND . 60 15.11Bit-manipulation paradigms . 60 15.12Field multiplication using shifts and XORs . 61 15.13Repeated squaring . 62 15.14Reciprocation and division . 63 15.15Arithmetic with implicit leading one . 63 15.16Polynomial basis vs. log domain . 63 V Linear feedback shift registers 64 16 Linear feedback shift registers 65 16.1 The physical setup . 65 16.2 Non-autonomous LFSRs . 66 16.3 Fibonacci and Galois configurations . 66 16.4 The transition graph . 66 16.5 The transition matrix . 67 16.6 Singular transformations . 68 16.7 Non-singular transformations . 68 16.8 Reducible LFSRs . 69 16.9 Irreducible LFSRs . 69 16.10Primitive LFSRs . 69 16.11Misc. note . 70 VI Appendices 71 A Tables 72 A.1 Tables of some irreducible polynomials in Fp[x].......................... 72 A.2 Some primitive irreducible polynomials in F2n ........................... 73 A.3 Some logarithm tables for Fpn .................................... 73 B Storage representations 76 C Proofs 77 C.1 Characteristic and order of finite fields . 77 C.2 Existence of finite fields . 78 C.3 Uniqueness of finite fields . 78 C.4 Cyclicity of finite subgroup of a field . 78 C.5 Existence of reciprocals in Fp .................................... 78 iii × C.6 Cyclicity of Fp ............................................ 78 C.7 Galois group of finite fields . 78 C.8 Correctness of Berlekamp's algorithm . 79 VII Bibliography and Index 80 Bibliography . 81 Index . 83 iv Chapter 1 Introduction 1.1 Purpose Finite fields are often given a brief treatment in algebra courses, and when they are discussed, they are discussed in the abstract. This is in fact a testament to the power of theory: Many properties may be deduced about finite fields using no other information than that they are fields and that they are finite. However, specific computations are interesting as well as useful. This paper will present elementary techniques that are.
Recommended publications
  • Artinian Rings Having a Nilpotent Group of Units
    JOURNAL OF ALGEBRA 121, 253-262 (1989) Artinian Rings Having a Nilpotent Group of Units GHIOCEL GROZA Department of Mathematics, Civil Engineering Institute, Lacul Tei 124, Sec. 2, R-72307, Bucharest, Romania Communicated by Walter Feit Received July 1, 1983 Throughout this paper the symbol R will be used to denote an associative ring with a multiplicative identity. R,[R”] denotes the subring of R which is generated over R, by R”, where R, is the prime subring of R and R” is the group of units of R. We use J(R) to denote the Jacobson radical of R. In Section 1 we prove that if R is a finite ring and at most one simple component of the semi-simple ring R/J(R) is a field of order 2, then R” is a nilpotent group iff R is a direct sum of two-sided ideals that are homomorphic images of group algebras of type SP, where S is a particular commutative finite ring, P is a finite p-group, and p is a prime number. In Section 2 we study the artinian rings R (i.e., rings with minimum con- dition) with RO a finite ring, R finitely generated over its center and so that every block of R is as in Lemma 1.1. We note that every finite-dimensional algebra over a field F of characteristic p > 0, so that F is not the finite field of order 2 is of this type. We prove that R is of this type and R” is a nilpotent group iff R is a direct sum of two-sided ideals that are particular homomorphic images of crossed products.
    [Show full text]
  • Representations of Finite Rings
    Pacific Journal of Mathematics REPRESENTATIONS OF FINITE RINGS ROBERT S. WILSON Vol. 53, No. 2 April 1974 PACIFIC JOURNAL OF MATHEMATICS Vol. 53, No. 2, 1974 REPRESENTATIONS OF FINITE RINGS ROBERT S. WILSON In this paper we extend the concept of the Szele repre- sentation of finite rings from the case where the coefficient ring is a cyclic ring* to the case where it is a Galois ring. We then characterize completely primary and nilpotent finite rings as those rings whose Szele representations satisfy certain conditions. 1* Preliminaries* We first note that any finite ring is a direct sum of rings of prime power order. This follows from noticing that when one decomposes the additive group of a finite ring into its pime power components, the component subgroups are, in fact, ideals. So without loss of generality, up to direct sum formation, one needs only to consider rings of prime power order. For the remainder of this paper p will denote an arbitrary, fixed prime and all rings will be of order pn for some positive integer n. Of the two classes of rings that will be studied in this paper, completely primary finite rings are always of prime power order, so for the completely primary case, there is no loss of generality at all. However, nilpotent finite rings do not need to have prime power order, but we need only classify finite nilpotent rings of prime power order, the general case following from direct sum formation. If B is finite ring (of order pn) then the characteristic of B will be pk for some positive integer k.
    [Show full text]
  • Frequency Domain Finite Field Arithmetic for Elliptic Curve Cryptography
    Frequency Domain Finite Field Arithmetic for Elliptic Curve Cryptography by Sel»cukBakt³r A Dissertation Submitted to the Faculty of the Worcester Polytechnic Institute in partial ful¯llment of the requirements for the Degree of Doctor of Philosophy in Electrical and Computer Engineering by April, 2008 Approved: Dr. Berk Sunar Dr. Stanley Selkow Dissertation Advisor Dissertation Committee ECE Department Computer Science Department Dr. Kaveh Pahlavan Dr. Fred J. Looft Dissertation Committee Department Head ECE Department ECE Department °c Copyright by Sel»cukBakt³r All rights reserved. April, 2008 i To my family; to my parents Ay»seand Mehmet Bakt³r, to my sisters Elif and Zeynep, and to my brothers Selim and O¸guz ii Abstract E±cient implementation of the number theoretic transform (NTT), also known as the discrete Fourier transform (DFT) over a ¯nite ¯eld, has been studied actively for decades and found many applications in digital signal processing. In 1971 SchÄonhageand Strassen proposed an NTT based asymptotically fast multiplication method with the asymptotic complexity O(m log m log log m) for multiplication of m-bit integers or (m ¡ 1)st degree polynomials. SchÄonhageand Strassen's algorithm was known to be the asymptotically fastest multipli- cation algorithm until FÄurerimproved upon it in 2007. However, unfortunately, both al- gorithms bear signi¯cant overhead due to the conversions between the time and frequency domains which makes them impractical for small operands, e.g. less than 1000 bits in length as used in many applications. With this work we investigate for the ¯rst time the practical application of the NTT, which found applications in digital signal processing, to ¯nite ¯eld multiplication with an emphasis on elliptic curve cryptography (ECC).
    [Show full text]
  • The Projective Line Over the Finite Quotient Ring GF(2)[X]/⟨X3 − X⟩ and Quantum Entanglement I
    The Projective Line Over the Finite Quotient Ring GF(2)[x]/hx3 − xi and Quantum Entanglement I. Theoretical Background Metod Saniga, Michel Planat To cite this version: Metod Saniga, Michel Planat. The Projective Line Over the Finite Quotient Ring GF(2)[x]/hx3 − xi and Quantum Entanglement I. Theoretical Background. 2006. hal-00020182v1 HAL Id: hal-00020182 https://hal.archives-ouvertes.fr/hal-00020182v1 Preprint submitted on 7 Mar 2006 (v1), last revised 6 Jun 2006 (v2) HAL is a multi-disciplinary open access L’archive ouverte pluridisciplinaire HAL, est archive for the deposit and dissemination of sci- destinée au dépôt et à la diffusion de documents entific research documents, whether they are pub- scientifiques de niveau recherche, publiés ou non, lished or not. The documents may come from émanant des établissements d’enseignement et de teaching and research institutions in France or recherche français ou étrangers, des laboratoires abroad, or from public or private research centers. publics ou privés. The Projective Line Over the Finite Quotient Ring GF(2)[x]/hx3 − xi and Quantum Entanglement I. Theoretical Background Metod Saniga† and Michel Planat‡ †Astronomical Institute, Slovak Academy of Sciences SK-05960 Tatransk´aLomnica, Slovak Republic ([email protected]) and ‡Institut FEMTO-ST, CNRS, D´epartement LPMO, 32 Avenue de l’Observatoire F-25044 Besan¸con, France ([email protected]) Abstract 3 The paper deals with the projective line over the finite factor ring R♣ ≡ GF(2)[x]/hx −xi. The line is endowed with 18 points, spanning the neighbourhoods of three pairwise distant points. As R♣ is not a local ring, the neighbour (or parallel) relation is not an equivalence relation so that the sets of neighbour points to two distant points overlap.
    [Show full text]
  • Math 250A: Groups, Rings, and Fields. H. W. Lenstra Jr. 1. Prerequisites
    Math 250A: Groups, rings, and fields. H. W. Lenstra jr. 1. Prerequisites This section consists of an enumeration of terms from elementary set theory and algebra. You are supposed to be familiar with their definitions and basic properties. Set theory. Sets, subsets, the empty set , operations on sets (union, intersection, ; product), maps, composition of maps, injective maps, surjective maps, bijective maps, the identity map 1X of a set X, inverses of maps. Relations, equivalence relations, equivalence classes, partial and total orderings, the cardinality #X of a set X. The principle of math- ematical induction. Zorn's lemma will be assumed in a number of exercises. Later in the course the terminology and a few basic results from point set topology may come in useful. Group theory. Groups, multiplicative and additive notation, the unit element 1 (or the zero element 0), abelian groups, cyclic groups, the order of a group or of an element, Fermat's little theorem, products of groups, subgroups, generators for subgroups, left cosets aH, right cosets, the coset spaces G=H and H G, the index (G : H), the theorem of n Lagrange, group homomorphisms, isomorphisms, automorphisms, normal subgroups, the factor group G=N and the canonical map G G=N, homomorphism theorems, the Jordan- ! H¨older theorem (see Exercise 1.4), the commutator subgroup [G; G], the center Z(G) (see Exercise 1.12), the group Aut G of automorphisms of G, inner automorphisms. Examples of groups: the group Sym X of permutations of a set X, the symmetric group S = Sym 1; 2; : : : ; n , cycles of permutations, even and odd permutations, the alternating n f g group A , the dihedral group D = (1 2 : : : n); (1 n 1)(2 n 2) : : : , the Klein four group n n h − − i V , the quaternion group Q = 1; i; j; ij (with ii = jj = 1, ji = ij) of order 4 8 { g − − 8, additive groups of rings, the group Gl(n; R) of invertible n n-matrices over a ring R.
    [Show full text]
  • Ring (Mathematics) 1 Ring (Mathematics)
    Ring (mathematics) 1 Ring (mathematics) In mathematics, a ring is an algebraic structure consisting of a set together with two binary operations usually called addition and multiplication, where the set is an abelian group under addition (called the additive group of the ring) and a monoid under multiplication such that multiplication distributes over addition.a[›] In other words the ring axioms require that addition is commutative, addition and multiplication are associative, multiplication distributes over addition, each element in the set has an additive inverse, and there exists an additive identity. One of the most common examples of a ring is the set of integers endowed with its natural operations of addition and multiplication. Certain variations of the definition of a ring are sometimes employed, and these are outlined later in the article. Polynomials, represented here by curves, form a ring under addition The branch of mathematics that studies rings is known and multiplication. as ring theory. Ring theorists study properties common to both familiar mathematical structures such as integers and polynomials, and to the many less well-known mathematical structures that also satisfy the axioms of ring theory. The ubiquity of rings makes them a central organizing principle of contemporary mathematics.[1] Ring theory may be used to understand fundamental physical laws, such as those underlying special relativity and symmetry phenomena in molecular chemistry. The concept of a ring first arose from attempts to prove Fermat's last theorem, starting with Richard Dedekind in the 1880s. After contributions from other fields, mainly number theory, the ring notion was generalized and firmly established during the 1920s by Emmy Noether and Wolfgang Krull.[2] Modern ring theory—a very active mathematical discipline—studies rings in their own right.
    [Show full text]
  • Acceleration of Finite Field Arithmetic with an Application to Reverse Engineering Genetic Networks
    ACCELERATION OF FINITE FIELD ARITHMETIC WITH AN APPLICATION TO REVERSE ENGINEERING GENETIC NETWORKS by Edgar Ferrer Moreno A thesis submitted in partial fulfillment of the requirements for the degree of DOCTOR OF PHILOSOPHY in COMPUTING AND INFORMATION SCIENCES AND ENGINEERING UNIVERSITY OF PUERTO RICO MAYAGÜEZ CAMPUS 2008 Approved by: ________________________________ __________________ Omar Colón, PhD Date Member, Graduate Committee ________________________________ __________________ Oscar Moreno, PhD Date Member, Graduate Committee ________________________________ __________________ Nayda Santiago, PhD Date Member, Graduate Committee ________________________________ __________________ Dorothy Bollman, PhD Date President, Graduate Committee ________________________________ __________________ Edusmildo Orozco, PhD Date Representative of Graduate Studies ________________________________ __________________ Néstor Rodríguez, PhD Date Chairperson of the Department Abstract Finite field arithmetic plays an important role in a wide range of applications. This research is originally motivated by an application of computational biology where genetic networks are modeled by means of finite fields. Nonetheless, this work has application in various research fields including digital signal processing, error correct- ing codes, Reed-Solomon encoders/decoders, elliptic curve cryptosystems, or compu- tational and algorithmic aspects of commutative algebra. We present a set of efficient algorithms for finite field arithmetic over GF (2m), which are implemented
    [Show full text]
  • Part IB — Groups, Rings and Modules
    Part IB | Groups, Rings and Modules Based on lectures by O. Randal-Williams Notes taken by Dexter Chua Lent 2016 These notes are not endorsed by the lecturers, and I have modified them (often significantly) after lectures. They are nowhere near accurate representations of what was actually lectured, and in particular, all errors are almost surely mine. Groups Basic concepts of group theory recalled from Part IA Groups. Normal subgroups, quotient groups and isomorphism theorems. Permutation groups. Groups acting on sets, permutation representations. Conjugacy classes, centralizers and normalizers. The centre of a group. Elementary properties of finite p-groups. Examples of finite linear groups and groups arising from geometry. Simplicity of An. Sylow subgroups and Sylow theorems. Applications, groups of small order. [8] Rings Definition and examples of rings (commutative, with 1). Ideals, homomorphisms, quotient rings, isomorphism theorems. Prime and maximal ideals. Fields. The characteristic of a field. Field of fractions of an integral domain. Factorization in rings; units, primes and irreducibles. Unique factorization in principal ideal domains, and in polynomial rings. Gauss' Lemma and Eisenstein's irreducibility criterion. Rings Z[α] of algebraic integers as subsets of C and quotients of Z[x]. Examples of Euclidean domains and uniqueness and non-uniqueness of factorization. Factorization in the ring of Gaussian integers; representation of integers as sums of two squares. Ideals in polynomial rings. Hilbert basis theorem. [10] Modules Definitions, examples of vector spaces, abelian groups and vector spaces with an endomorphism. Sub-modules, homomorphisms, quotient modules and direct sums. Equivalence of matrices, canonical form. Structure of finitely generated modules over Euclidean domains, applications to abelian groups and Jordan normal form.
    [Show full text]
  • Clean Rings & Clean Group Rings
    CLEAN RINGS & CLEAN GROUP RINGS Nicholas A. Immormino A Dissertation Submitted to the Graduate College of Bowling Green State University in partial fulfillment of the requirements for the degree of DOCTOR OF PHILOSOPHY August 2013 Committee: Warren Wm. McGovern, Advisor Rieuwert J. Blok, Advisor Sheila J. Roberts, Graduate Faculty Representative Mihai D. Staic ii ABSTRACT Warren Wm. McGovern, Advisor Rieuwert J. Blok, Advisor A ring is said to be clean if each element in the ring can be written as the sum of a unit and an idempotent of the ring. More generally, an element in a ring is said to be clean if it can be written as the sum of a unit and an idempotent of the ring. The notion of a clean ring was introduced by Nicholson in his 1977 study of lifting idempotents and exchange rings, and these rings have since been studied by many different authors. In our study of clean rings, we classify the rings that consist entirely of units, idempotents, and quasiregular elements. It is well known that the units, idempotents, and quasiregular elements of any ring are clean. Therefore any ring that consists entirely of these types of elements is clean. We prove that a ring consists entirely of units, idempotents, and quasiregular elements if and only if it is a boolean ring, a local ring, isomorphic to the direct product of two division rings, isomorphic to the full matrix ring M2(D) for some division ring D, or isomorphic to the ring of a Morita context with zero pairings where both of the underlying rings are division rings.
    [Show full text]
  • On Distinguishing Local Finite Rings from Finite Rings Only by Counting Elements and Zero Divisors Marcos J
    EUROPEAN JOURNAL OF PURE AND APPLIED MATHEMATICS Vol. 7, No. 1, 2014, 109-113 ISSN 1307-5543 – www.ejpam.com On Distinguishing Local Finite Rings from Finite Rings Only by Counting Elements and Zero Divisors Marcos J. González Departamento de Matemáticas, Universidad Simón Bolívar, Caracas 1080-A, Venezuela Abstract. The purpose of this short communication is to prove the following: Let R be a finite associa- tive ring with unit. Then R is local if and only if jRj = pn and jZ(R)j = pm for some prime number p and integers 1 m < n. For the commutative case, this have been recently discovered by Behboodi and Beyranvand≤ [1, Theorem 3]. We will also present yet another proof for the commutative case. 2010 Mathematics Subject Classifications: 16B99, 13A99, 68R10 Key Words and Phrases: Finite ring, Zero-divisor, Local rings 1. Introduction The purpose of this paper is to prove the following: Theorem 1. Let R be a finite associative ring with unit. Then R is local if and only if jRj = pm and jZ(R)j = pn for some prime number p and integers 1 n < m. ≤ This allows us to recognize local rings out of finite rings only by counting the number of elements in the ring and the number of zero divisors. This result is inspired by the corre- sponding result Behboodi and Beyranvand [1, Theorem 3, pp. 306–307] where R is assumed to be commutative. More precisely, they proved the following: Theorem 2. Let R be a finite commutative ring with unit. Then R is local if and only if jRj = pm and jZ(R)j = pn for some prime number p and integers 1 n < m.
    [Show full text]
  • Geometries Over Finite Rings
    Innovations in Incidence Geometry Volume 15 (2017), Pages 123–143 ISSN 1781-6475 50 years of Finite Geometry, the “Geometries over finite rings” part Dedicated to Prof. J.A. Thas on the occasion of his 70th birthday Dirk Keppens Abstract Whereas for a substantial part, “Finite Geometry” during the past 50 years has focussed on geometries over finite fields, geometries over finite rings that are not division rings have got less attention. Nevertheless, sev- eral important classes of finite rings give rise to interesting geometries. In this paper we bring together some results, scattered over the litera- ture, concerning finite rings and plane projective geometry over such rings. The paper does not contain new material, but by collecting information in one place, we hope to stimulate further research in this area for at least another 50 years of Finite Geometry. Keywords: ring geometry, finite geometry, finite ring, projective plane MSC 2010: 51C05,51E26,13M05,16P10,16Y30,16Y60 1 Introduction Geometries over rings that are not division rings have been studied for a long time. The first systematic study was done by Dan Barbilian [11], besides a mathematician also one of the greatest Romanian poets (with pseudonym Ion Barbu). He introduced plane projective geometries over a class of associative rings with unit, called Z-rings (abbreviation for Zweiseitig singulare¨ Ringe) which today are also known as Dedekind-finite rings. These are rings with the property that ab = 1 implies ba = 1 and they include of course all commutative rings but also all finite rings (even non-commutative). Wilhelm Klingenberg introduced in [52] projective planes and 3-spaces over local rings.
    [Show full text]
  • Study of Extended Euclidean and Itoh-Tsujii Algorithms in GF(2 M)
    Study of Extended Euclidean and Itoh-Tsujii Algorithms in GF (2m) using polynomial bases by Fan Zhou B.Eng., Zhejiang University, 2013 A Report Submitted in Partial Fulfillment of the Requirements for the Degree of MASTER OF ENGINEERING in the Department of Electrical and Computer Engineering c Fan Zhou, 2018 University of Victoria All rights reserved. This report may not be reproduced in whole or in part, by photocopying or other means, without the permission of the author. ii Study of Extended Euclidean and Itoh-Tsujii Algorithms in GF (2m) using polynomial bases by Fan Zhou B.Eng., Zhejiang University, 2013 Supervisory Committee Dr. Fayez Gebali, Supervisor (Department of Electrical and Computer Engineering) Dr. Watheq El-Kharashi, Departmental Member (Department of Electrical and Computer Engineering) iii ABSTRACT Finite field arithmetic is important for the field of information security. The inversion operation consumes most of the time and resources among all finite field arithmetic operations. In this report, two main classes of algorithms for inversion are studied. The first class of inverters is Extended Euclidean based inverters. Extended Euclidean Algorithm is an extension of Euclidean algorithm that computes the greatest common divisor. The other class of inverters is based on Fermat's little theorem. This class of inverters is also called multiplicative based inverters, because, in these algorithms, the inversion is performed by a sequence of multiplication and squaring. This report represents a literature review of inversion algorithm and implements a multiplicative based inverter and an Extended Euclidean based inverter in MATLAB. The experi- mental results show that inverters based on Extended Euclidean Algorithm are more efficient than inverters based on Fermat's little theorem.
    [Show full text]