Fields

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.

[Def] Field

A field is a set F\mathbb{F} paired with two binary operations:

  • Addition +: F×FF\mathbb{F} \times \mathbb{F} \rightarrow \mathbb{F}

  • Multiplication \cdot: F×FF\mathbb{F} \times \mathbb{F} \rightarrow \mathbb{F}

Such that:

  • The additive group (F,+)(\mathbb{F, +}) is a commutative group with neutral element 0.

  • The multiplicative group (F,)(\mathbb{F, \cdot}) is a commutative group with neutral element 1.

  • And the distributive property holds: g1,g2,g3F\forall g_1, g_2, g_3 \in \mathbb{F} the relation g1(g2+g3)=g1g2+g1g2g_1 \cdot(g_2 + g_3) = g_1 \cdot g_2 + g_1 \cdot g_2.

The field is represented by the tuple (F,+,)(\mathbb{F}, +, \cdot).

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 (F,+,)(\mathbb{F}, +, \cdot) only with the letter F\mathbb{F}, assuming the two field laws and axioms implicitly.

F\mathbb{F'} is a subfield of a field F\mathbb{F} if FF\mathbb{F'} \subset \mathbb{F} and the field axioms holds also for (F,+,)(\mathbb{F'}, +, \cdot). In this case, F\mathbb{F} is called an extension field of F\mathbb{F'}.

An important concept when using fields in for cryptosystems, is the one of characteristic.

[Def] Characteristic

The characteristic of a field F\mathbb{F} is defined as the smallest nn such that i=1n=0\sum_{i=1}^n = 0.

If nn exists, then the field F\mathbb{F} has a finite characteristic. If such number does not exist, then F\mathbb{F} 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 Zn\mathbb{Z}_n of reminder class when the modulo is a prime number. We refer to the prime field of prime modulo pp as (Fp,+,)(\mathbb{F}_p, +, \cdot). In this case, xFp\forall x \in \mathbb{F}_p we have:

  • The additive inverse is: x=pxmodp-x=p-x \mod p

  • The multiplicative inverse when x0x\neq 0 is: x1=xp2x^{-1} = x^{p-2} (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.

[Def] Quadratic residue

Let pp be a prime number and Fp\mathbb{F}_p a prime field. xFPx \in \mathbb{F}_P is called square root of yFpy \in \mathbb{F}_p iff:

x2=yx^2 = y

When it is given xx and a solution for such equation exists, then yy is called quadratic residue. On the other hand, when it is given yy and a solution does not exist, then yy is called quadratic non-residue

If yy is a quadratic residue in FP\mathbb{F}_P, then it has always two roots:

y={x,px}\sqrt{y} = \{x, p-x\}

Given a prime field of characteristic pp higher than 22, we always have (p+1)/2(p+1)/2 quadratic residue and (p1)/2(p-1)/2 quadratic non-residue.

When working with prime fields and quadratic residue, it is often useful to use the Legendre symbol defined as:

(yp):={1if y has square roots1if y has no square roots0if y=0\left(\frac{y}{p}\right) := \begin{cases} 1 & \text{if } y \text{ has square roots} \\ -1 & \text{if } y \text{ has no square roots} \\ 0 & \text{if } y = 0 \end{cases}

The Legendre symbol can be easily computed with the Euler’s criterion:

(yp)=yp12\left(\frac{y}{p}\right) = y^{\frac{p-1}{2}}

Examples

A classic example of a field is the set of rational numbers Q\mathbb{Q} together with the standard concept of addition and multiplication. Since this field is not finite, its characteristic is equal to zero.

Open questions

  1. The size of a finite field can only be a power of a prime number.
  2. Isomorphisms associated with characteristics and finite fields.

References

  1. https://www.youtube.com/watch?v=jvAwIvtB-mI&list=PLu6jbin1VpDDNAuq_Wa6WGElXYnJQTmOh&index=9