Introduction
Fields are an important concept for understanding crypto systems which generalizes the concept of arithmetic on rational numbers we are used to work with.
A field is a set paired with two binary operations:
-
Addition +:
-
Multiplication :
Such that:
-
The additive group is a commutative group with neutral element 0.
-
The multiplicative group is a commutative group with neutral element 1.
-
And the distributive property holds: the relation .
The field is represented by the tuple .
It is very important here to recall that the concept of commutative group implies the existence of an inverse. Remember also that the concept of set does not refer to only numbers, but it can refer to any generic homogeneous elements.
To simplify the notation, we will refer to the field only with the letter , assuming the two field laws and axioms implicitly.
is a subfield of a field if and the field axioms holds also for . In this case, is called an extension field of .
An important concept when using fields in for cryptosystems, is the one of characteristic.
The characteristic of a field is defined as the smallest such that .
If exists, then the field has a finite characteristic. If such number does not exist, then has zero characteristic.
It can be seen as the DNA of the field itself.
Prime fields
Of particular importance for the understanding modern cryptosystems, is the concept of prime field. Prime fields are defined on the set of reminder class when the modulo is a prime number. We refer to the prime field of prime modulo as . In this case, we have:
-
The additive inverse is:
-
The multiplicative inverse when is: (by Fermat’s theorem)
Square roots
When working with prime fields, an important concept already familiar for most of the people is the one of square numbers.
Let be a prime number and a prime field. is called square root of iff:
When it is given and a solution for such equation exists, then is called quadratic residue. On the other hand, when it is given and a solution does not exist, then is called quadratic non-residue
If is a quadratic residue in , then it has always two roots:
Given a prime field of characteristic higher than , we always have quadratic residue and quadratic non-residue.
When working with prime fields and quadratic residue, it is often useful to use the Legendre symbol defined as:
The Legendre symbol can be easily computed with the Euler’s criterion:
Examples
A classic example of a field is the set of rational numbers together with the standard concept of addition and multiplication. Since this field is not finite, its characteristic is equal to zero.
Open questions
- The size of a finite field can only be a power of a prime number.
- Isomorphisms associated with characteristics and finite fields.