Sets and Groups

Sets are just a collection of objects.

A Cartesian product of two sets is a new set that is constructed from the two sets. The Cartesian product between sets and is denoted by .

  • Let and then

A pair consisting of a set and a binary option is a commutative (abelian) group if it satifies the following properties:

  • Identity
  • Inverses
  • Associativity
  • Commutativity

An operation is closed if the result is also in the same set as the elements input to the operation.

Examples of groups

  • is a group where is the set of integers
    • The identity element of the set of integers with respect to addition is .
  • is NOT a group where is the set of natural numbers
    • The identity element of the set of natural numbers with respect to multiplication is .
    • does not have a multiplicative inverse in , for example.
    • Since no inverses, not a group.
  • is not a group because does not have an inverse.
  • is a group where is excluding , or .

Let and , we define two binary operations and as:

  • Addition Modulo:
  • Multiplication Module:

Powers and Logarithms

Exponentiation is repeated multiplication.

The exponentiation notation for group elements is defined as repeated application of the group operation.

  • To be able to distinguish exponentiation with respect to different binary operations in our notation of powers of group elements we always give the binary operation next to the exponent.

Group exponentiation

  • Let be a group and
  • For we set ( goes through the operation times)
  • We set where is the identity of the group

Two approaches for computing in the group where

  1. Naive Exponentiation: We repeatedly apply eg. first compute and then so on.
  2. We compute in the integers and compute the result , eg. .

2nd approach is infeasible with larger bases and exponents.

Strategies for efficient computation

  • Repeated squaring: Used to compute when is known.
  • Fast exponentation: Is a generalization of the Repeated Squaring strategy above for any power.

Discrete Logarithm Problem

  • The discrete logarithm to the base of is the answer to the question: given and , what is the (smallest) non-negative integer such that ?
  • The discrete log does not always exist.
  • Complexity of calculating the discrete log of any arbitrary number in a large group is high.

Many algorithms exist to efficiently (attempt) to find the discrete log.

Powers in :

  • powers of 1 are
  • powers of 2 are where we continue to cycle through numbers 1, 2, 4.
  • powers of 3 are where we enumerate through all the numbers 1, 2, 3, 4, 5, 6, which means all elements of are powers of 3.
  • …similar for powers of 4, 5, 6.

Exponentiation and discrete logarithm to the same base are inverse functions.

Public Key Cryptography

Diffie Hellman Key Exchange

  1. First Alice and Bob agree on the group they will work in. Subsequently, all computations will take place in group where
    • Alice and Bob agree on a prime number and generator over insecure channel
  2. Alice then chooses her secret and computes and sends to Bob.
  3. Bob chooses his secret and computes and sends to Alice.
  4. Alice computes the shared secret
  5. Bob computes the shared secret
  6. The shared secrets are the same

Assume someone eavesdrops on channel and obtains , , and . To obtain the secret, the attacker needs either or which can only be found by finding the discrete logarithm of to base in or vice versa for - the security of the protocol depends on the difficulty of computing discrete logarithms in .

  • The difficulty in finding the discrete logarithm depends on how large the prime number is.

Fields

Let be the real field, the complex field, the field of rational numbers, and the binary field.

A field is a set of at least two elements with two operations and which satisfies the following properties:

  • is an abelian group with an identity element .
  • is an abelian group with an identity element
  • Distributive law:

A finite field (aka Galois field) is a field with a finite number of elements.

Examples

  • , , and where is prime are all fields with the usual operations and .
    • Note that where is prime can also be denoted as . It has the set of elements and is an example of a finite (Galois) field.
    • Another notation of the above is GF() and is called the prime field of order .

Polynomials

Polynomials over are polynomials whose coefficients lie in and for which polynomial addition and multiplication is performed in .

  • The rules for adding, subtracting, or multiplying polynomials are the same over a general field as over the real field except that the coefficient operations are in .

The set of all polynomials over in an indeterminate is denoted by .

  • This set has many of the properties of a field, eg. it is an abelian group under addition whose identity is the zero polynomial . It has a mulplicative identity and the distributive law holds.

Resources

https://mathstats.uncg.edu/sites/pauli/112/HTML/secsetdef.html https://mathstats.uncg.edu/sites/pauli/112/HTML/chaptergroups.html https://en.wikibooks.org/wiki/LaTeX/Mathematics https://web.stanford.edu/~marykw/classes/CS250_W19/readings/Forney_Introduction_to_Finite_Fields.pdf http://math.ucdenver.edu/~wcherowi/courses/m6406/finflds.pdf https://mathworld.wolfram.com/FiniteField.html