×
1 Choose EITC/EITCA Certificates
2 Learn and take online exams
3 Get your IT skills certified

Confirm your IT skills and competencies under the European IT Certification framework from anywhere in the world fully online.

EITCA Academy

Digital skills attestation standard by the European IT Certification Institute aiming to support Digital Society development

LOG IN TO YOUR ACCOUNT

CREATE AN ACCOUNT FORGOT YOUR PASSWORD?

FORGOT YOUR PASSWORD?

AAH, WAIT, I REMEMBER NOW!

CREATE AN ACCOUNT

ALREADY HAVE AN ACCOUNT?
EUROPEAN INFORMATION TECHNOLOGIES CERTIFICATION ACADEMY - ATTESTING YOUR PROFESSIONAL DIGITAL SKILLS
  • SIGN UP
  • LOGIN
  • INFO

EITCA Academy

EITCA Academy

The European Information Technologies Certification Institute - EITCI ASBL

Certification Provider

EITCI Institute ASBL

Brussels, European Union

Governing European IT Certification (EITC) framework in support of the IT professionalism and Digital Society

  • CERTIFICATES
    • EITCA ACADEMIES
      • EITCA ACADEMIES CATALOGUE<
      • EITCA/CG COMPUTER GRAPHICS
      • EITCA/IS INFORMATION SECURITY
      • EITCA/BI BUSINESS INFORMATION
      • EITCA/KC KEY COMPETENCIES
      • EITCA/EG E-GOVERNMENT
      • EITCA/WD WEB DEVELOPMENT
      • EITCA/AI ARTIFICIAL INTELLIGENCE
    • EITC CERTIFICATES
      • EITC CERTIFICATES CATALOGUE<
      • COMPUTER GRAPHICS CERTIFICATES
      • WEB DESIGN CERTIFICATES
      • 3D DESIGN CERTIFICATES
      • OFFICE IT CERTIFICATES
      • BITCOIN BLOCKCHAIN CERTIFICATE
      • WORDPRESS CERTIFICATE
      • CLOUD PLATFORM CERTIFICATENEW
    • EITC CERTIFICATES
      • INTERNET CERTIFICATES
      • CRYPTOGRAPHY CERTIFICATES
      • BUSINESS IT CERTIFICATES
      • TELEWORK CERTIFICATES
      • PROGRAMMING CERTIFICATES
      • DIGITAL PORTRAIT CERTIFICATE
      • WEB DEVELOPMENT CERTIFICATES
      • DEEP LEARNING CERTIFICATESNEW
    • CERTIFICATES FOR
      • EU PUBLIC ADMINISTRATION
      • TEACHERS AND EDUCATORS
      • IT SECURITY PROFESSIONALS
      • GRAPHICS DESIGNERS & ARTISTS
      • BUSINESSMEN AND MANAGERS
      • BLOCKCHAIN DEVELOPERS
      • WEB DEVELOPERS
      • CLOUD AI EXPERTSNEW
  • FEATURED
  • SUBSIDY
  • HOW IT WORKS
  •   IT ID
  • ABOUT
  • CONTACT
  • MY ORDER
    Your current order is empty.
EITCIINSTITUTE
CERTIFIED

What is EEA ?

by Emmanuel Udofia / Sunday, 11 August 2024 / Published in Cybersecurity, EITC/IS/CCF Classical Cryptography Fundamentals, Introduction to public-key cryptography, Number theory for PKC – Euclidean Algorithm, Euler’s Phi Function and Euler’s Theorem

In the field of cybersecurity, particularly within the domain of classical cryptography fundamentals and the introduction to public-key cryptography, the term "EEA" refers to the Extended Euclidean Algorithm. This algorithm is a vital tool in number theory and cryptographic applications, especially in the context of public-key cryptography systems such as RSA (Rivest-Shamir-Adleman).

The Euclidean Algorithm is a classical method used to compute the greatest common divisor (GCD) of two integers. The GCD of two integers a and b is the largest integer that divides both a and b without leaving a remainder. The Euclidean Algorithm works on the principle that the GCD of two numbers also divides their difference. Mathematically, this can be expressed as:

    \[ \text{GCD}(a, b) = \text{GCD}(b, a \mod b) \]

where a \mod b is the remainder when a is divided by b. The algorithm proceeds iteratively, replacing a with b and b with a \mod b until b becomes zero. The non-zero remainder at this stage is the GCD of the original pair of numbers.

The Extended Euclidean Algorithm (EEA) extends this concept by not only finding the GCD of two integers a and b but also expressing this GCD as a linear combination of a and b. Specifically, if d = \text{GCD}(a, b), then there exist integers x and y such that:

    \[ d = ax + by \]

These integers x and y are known as the coefficients of Bézout's identity. The ability to find such coefficients is important in various cryptographic applications, particularly in the computation of modular inverses, which are essential in algorithms like RSA.

Steps of the Extended Euclidean Algorithm

The Extended Euclidean Algorithm can be described through the following steps:

1. Initialization: Start with two integers a and b where a > b.
2. Apply Euclidean Algorithm: Perform the Euclidean Algorithm to find the GCD of a and b. Simultaneously, keep track of the coefficients that express the GCD as a linear combination of a and b.
3. Back Substitution: Once the GCD is found, backtrack through the steps of the Euclidean Algorithm to determine the coefficients x and y.

Example of the Extended Euclidean Algorithm

Consider the integers a = 56 and b = 15. We want to find their GCD and express it as a linear combination of 56 and 15.

1. Euclidean Algorithm:

    \[    <span class="ql-right-eqno">   </span><span class="ql-left-eqno">   </span><img src="https://eitca.org/wp-content/ql-cache/quicklatex.com-2d0d9e366bffa3d607abdcd907c0a788_l3.png" height="122" width="119" class="ql-img-displayed-equation quicklatex-auto-format" alt="\begin{align*}    56 &= 15 \cdot 3 + 11 \\    15 &= 11 \cdot 1 + 4 \\    11 &= 4 \cdot 2 + 3 \\    4 &= 3 \cdot 1 + 1 \\    3 &= 1 \cdot 3 + 0    \end{align*}" title="Rendered by QuickLaTeX.com"/>    \]

The GCD is 1.

2. Back Substitution:

    \[    <span class="ql-right-eqno">   </span><span class="ql-left-eqno">   </span><img src="https://eitca.org/wp-content/ql-cache/quicklatex.com-beccdc979192777b72f6c5faf62ab243_l3.png" height="97" width="703" class="ql-img-displayed-equation quicklatex-auto-format" alt="\begin{align*}    1 &= 4 - 3 \cdot 1 \\    3 &= 11 - 4 \cdot 2 \implies 1 = 4 - (11 - 4 \cdot 2) \cdot 1 = 4 - 11 + 4 \cdot 2 = 4 \cdot 3 - 11 \\    4 &= 15 - 11 \cdot 1 \implies 1 = (15 - 11) \cdot 3 - 11 = 15 \cdot 3 - 11 \cdot 4 \\    11 &= 56 - 15 \cdot 3 \implies 1 = 15 \cdot 3 - (56 - 15 \cdot 3) \cdot 4 = 15 \cdot 3 - 56 \cdot 4 + 15 \cdot 12 = 15 \cdot 15 - 56 \cdot 4    \end{align*}" title="Rendered by QuickLaTeX.com"/>    \]

Thus, 1 = 15 \cdot 15 - 56 \cdot 4.

Therefore, the GCD of 56 and 15 is 1, and it can be expressed as 1 = 15 \cdot 15 - 56 \cdot 4. Here, the coefficients x and y are 15 and -4, respectively.

Application in Cryptography

One of the primary applications of the Extended Euclidean Algorithm in cryptography is in the computation of the modular inverse. In public-key cryptography, particularly in the RSA algorithm, it is often necessary to find the modular inverse of an integer e modulo \phi(n), where \phi is Euler's totient function.

Given two integers e and \phi(n) such that \text{GCD}(e, \phi(n)) = 1, the modular inverse of e modulo \phi(n) is an integer d such that:

    \[ e \cdot d \equiv 1 \mod \phi(n) \]

Using the Extended Euclidean Algorithm, we can find d by expressing 1 as a linear combination of e and \phi(n):

    \[ 1 = e \cdot d + \phi(n) \cdot k \]

for some integer k. The coefficient d in this equation is the modular inverse of e modulo \phi(n).

Example in RSA

Consider an RSA setup where p = 61 and q = 53. The modulus n is given by:

    \[ n = p \cdot q = 61 \cdot 53 = 3233 \]

Euler's totient function \phi(n) is calculated as:

    \[ \phi(n) = (p-1) \cdot (q-1) = 60 \cdot 52 = 3120 \]

Suppose we choose e = 17. We need to find the modular inverse of 17 modulo 3120.

Using the Extended Euclidean Algorithm:

1. Euclidean Algorithm:

    \[    <span class="ql-right-eqno">   </span><span class="ql-left-eqno">   </span><img src="https://eitca.org/wp-content/ql-cache/quicklatex.com-59aca7698091e3022c90d10f1c7cd73c_l3.png" height="95" width="147" class="ql-img-displayed-equation quicklatex-auto-format" alt="\begin{align*}    3120 &= 17 \cdot 183 + 9 \\    17 &= 9 \cdot 1 + 8 \\    9 &= 8 \cdot 1 + 1 \\    8 &= 1 \cdot 8 + 0    \end{align*}" title="Rendered by QuickLaTeX.com"/>    \]

The GCD is 1.

2. Back Substitution:

    \[    <span class="ql-right-eqno">   </span><span class="ql-left-eqno">   </span><img src="https://eitca.org/wp-content/ql-cache/quicklatex.com-ff35a4a171d6ed3f4cc21ad1d55ba3ad_l3.png" height="70" width="576" class="ql-img-displayed-equation quicklatex-auto-format" alt="\begin{align*}    1 &= 9 - 8 \cdot 1 \\    8 &= 17 - 9 \cdot 1 \implies 1 = 9 - (17 - 9) = 9 \cdot 2 - 17 \\    9 &= 3120 - 17 \cdot 183 \implies 1 = (3120 - 17 \cdot 183) \cdot 2 - 17 = 3120 \cdot 2 - 17 \cdot 367    \end{align*}" title="Rendered by QuickLaTeX.com"/>    \]

Thus, 1 = 3120 \cdot 2 - 17 \cdot 367.

Therefore, the modular inverse of 17 modulo 3120 is 2753, as d = -367 \mod 3120 = 2753.

Euler’s Phi Function and Euler’s Theorem

Euler's Phi Function, denoted as \phi(n), is a number-theoretic function that counts the number of integers up to n that are coprime with n. For a positive integer n, \phi(n) is defined as:

    \[ \phi(n) = n \prod_{p | n} \left(1 - \frac{1}{p}\right) \]

where the product is over all distinct prime numbers p dividing n.

Euler's Theorem states that for any integer a such that \text{GCD}(a, n) = 1:

    \[ a^{\phi(n)} \equiv 1 \mod n \]

This theorem is a generalization of Fermat's Little Theorem and plays a important role in the RSA algorithm. Specifically, it ensures that the encryption and decryption processes in RSA are inverses of each other.

The Extended Euclidean Algorithm is a fundamental tool in number theory and cryptography. It not only helps in computing the greatest common divisor of two integers but also provides a way to express this GCD as a linear combination of the integers. This capability is essential in finding modular inverses, which are critical in various cryptographic algorithms, including RSA. Understanding and applying the Extended Euclidean Algorithm is a key skill for anyone working in the field of cryptography.

Other recent questions and answers regarding Number theory for PKC – Euclidean Algorithm, Euler’s Phi Function and Euler’s Theorem:

  • What does Fermat’s Little Theorem state?
  • Can public key be used for authentication if the asymmetric relation in terms of complexity in computing keys is reversed?
  • What are eulers theorem used for?
  • What are eulers theorem used for?
  • Can a private key be computed from public key?
  • What is a public key?
  • What is a public key?
  • What is the parameter t of the extended eulers algoritm?
  • What is an extended eulers algorithm?
  • What is an extended eulers algorithm?

View more questions and answers in Number theory for PKC – Euclidean Algorithm, Euler’s Phi Function and Euler’s Theorem

More questions and answers:

  • Field: Cybersecurity
  • Programme: EITC/IS/CCF Classical Cryptography Fundamentals (go to the certification programme)
  • Lesson: Introduction to public-key cryptography (go to related lesson)
  • Topic: Number theory for PKC – Euclidean Algorithm, Euler’s Phi Function and Euler’s Theorem
Tagged under: Cryptography, Cybersecurity, EUCLIDEAN ALGORITHM, Extended Euclidean Algorithm, Number Theory, RSA
Home » Cybersecurity » EITC/IS/CCF Classical Cryptography Fundamentals » Introduction to public-key cryptography » Number theory for PKC – Euclidean Algorithm, Euler’s Phi Function and Euler’s Theorem » » What is EEA ?

Certification Center

USER MENU

  • My Account

CERTIFICATE CATEGORY

  • EITC Certification (105)
  • EITCA Certification (9)

What are you looking for?

  • Introduction
  • How it works?
  • EITCA Academies
  • EITCI DSJC Subsidy
  • Full EITC catalogue
  • Your order
  • Featured
  •   IT ID
  • EITCA reviews (Medium publ.)
  • About
  • Contact

EITCA Academy is a part of the European IT Certification framework

The European IT Certification framework has been established in 2008 as a Europe based and vendor independent standard in widely accessible online certification of digital skills and competencies in many areas of professional digital specializations. The EITC framework is governed by the European IT Certification Institute (EITCI), a non-profit certification authority supporting information society growth and bridging the digital skills gap in the EU.
Eligibility for EITCA Academy 90% EITCI DSJC Subsidy support
90% of EITCA Academy fees subsidized in enrolment

    EITCA Academy Secretary Office

    European IT Certification Institute ASBL
    Brussels, Belgium, European Union

    EITC / EITCA Certification Framework Operator
    Governing European IT Certification Standard
    Access contact form or call +32 25887351

    Follow EITCI on X
    Visit EITCA Academy on Facebook
    Engage with EITCA Academy on LinkedIn
    Check out EITCI and EITCA videos on YouTube

    Funded by the European Union

    Funded by the European Regional Development Fund (ERDF) and the European Social Fund (ESF) in series of projects since 2007, currently governed by the European IT Certification Institute (EITCI) since 2008

    Information Security Policy | DSRRM and GDPR Policy | Data Protection Policy | Record of Processing Activities | HSE Policy | Anti-Corruption Policy | Modern Slavery Policy

    Automatically translate to your language

    Terms and Conditions | Privacy Policy
    EITCA Academy
    • EITCA Academy on social media
    EITCA Academy


    © 2008-2026  European IT Certification Institute
    Brussels, Belgium, European Union

    TOP
    CHAT WITH SUPPORT
    Do you have any questions?
    We will reply here and by email. Your conversation is tracked with a support token.