Module 2-part 2
Module 2-part 2
Examples:
•Integers with Addition and Multiplication: The set Z with standard addition and multiplication is a
ring.
•Polynomial Rings: The set of all polynomials with coefficients from a ring R forms a ring.
Field
• Definition: A field is a set F equipped with two operations (addition
and multiplication) that satisfy the following conditions:
Examples:
•Real Numbers (R): The set of real numbers with usual addition and multiplication forms a field.
•Rational Numbers (Q): The set of rational numbers is also a field.
Galois Field (GF)
• Definition: A Galois Field (GF) or finite field is a field that contains a
finite number of elements. The most common notation for a Galois
Field with p^n elements is GF(p^n), where p is a prime number and n
is a positive integer.
• Examples:
• GF(2): The simplest Galois Field, also known as the binary field,
contains only two elements, 0 and 1. It is widely used in digital
electronics and error-correcting codes.
• GF(2^8): This field has 256 elements and is commonly used in
cryptography, particularly in the AES (Advanced Encryption Standard)
algorithm.
GF ( 2^8)
• Structure of GF(2^8)
• Elements:
• GF(2^8) consists of 256 elements, which can be represented as 8-bit binary numbers (from 00000000 2 to 111111112), or
equivalently, as integers from 0 to 255.
• These elements can also be represented as polynomials over GF(2) (binary field) of degree less than 8. For example, the element
110010102can be represented as the polynomial
• Addition:
• Addition in GF(2^8) is performed by bitwise XOR (exclusive OR) of the corresponding binary representations. This operation is
equivalent to polynomial addition modulo 2.
• Example: 110010102+ 101110002= 011100102
• Multiplication:
• Multiplication in GF(2^8) is more complex and is done using polynomial multiplication modulo an irreducible polynomial of degree
8.
• Example: If a(x)=x^7+x^6+x^3+x and b(x)=x^7+x^6+x^5+x^4, their product is calculated modulo an irreducible polynomial (such as
x^8+x^4+x^3+x+1) to keep the result within the field.
• Irreducible Polynomial:
• An irreducible polynomial in GF(2) is a polynomial that cannot be factored into the product of lower-degree polynomials over GF(2).
• The AES algorithm uses the irreducible polynomial m(x)= x^8 + x^4 + x^3 + x + 1 for constructing the field GF(2^8).
GF(2^8)
To reduce modulo m(x), we repeatedly divide the terms in c(x) by m(x) for each term where the degree of x^n≥8.
Key Distribution
Need
• If Alice needs to exchange confidential messages with N people, she
needs N different keys. What if N people need to communicate with
each other? A total of N(N − 1) keys is needed if we require that Alice
and Bob use two keys for bidirectional communication; only N(N − 1)/2
keys are needed if we allow a key to be used for both directions. This
means that if one million people need to communicate with each other,
each person has almost one million different keys; in total, almost one
trillion keys are needed.
• The number of keys is not the only problem; the distribution of keys is
another
KDC
• A practical solution is the use of a trusted third party, referred to as a key-distribution center (KDC). To
reduce the number of keys, each person establishes a shared secret key with the KDC