×
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

How many keys are used by the RSA cryptosystem?

by Emmanuel Udofia / Monday, 05 August 2024 / Published in Cybersecurity, EITC/IS/CCF Classical Cryptography Fundamentals, Introduction to public-key cryptography, The RSA cryptosystem and efficient exponentiation

The RSA cryptosystem, named after its inventors Rivest, Shamir, and Adleman, is a widely utilized form of public-key cryptography. This system fundamentally revolves around the use of two distinct but mathematically linked keys: the public key and the private key. Each of these keys plays a critical role in the encryption and decryption processes, ensuring secure communication over potentially insecure channels.

Key Generation in RSA

The process of generating the public and private keys in RSA involves several steps rooted in number theory, particularly the properties of prime numbers and modular arithmetic. Here is a detailed breakdown of the key generation process:

1. Selection of Prime Numbers: The first step involves choosing two large distinct prime numbers, denoted as p and q. These primes should be of roughly equal length to ensure the security of the RSA system.

2. Compute n: The product of the two prime numbers is calculated:

    \[    n = p \times q    \]

The value n is used as a modulus for both the public and private keys and is a part of the public key.

3. Compute Euler's Totient Function \phi(n): Euler's Totient Function, \phi(n), is computed as:

    \[    \phi(n) = (p - 1) \times (q - 1)    \]

This function is important for the key generation process, particularly in determining the values of the public and private exponents.

4. Choose Public Exponent e: The public exponent e is chosen such that it is relatively prime to \phi(n) (i.e., the greatest common divisor \gcd(e, \phi(n)) = 1). Common choices for e include 3, 17, and 65537, as these values strike a balance between encryption efficiency and security.

5. Compute Private Exponent d: The private exponent d is computed as the modular multiplicative inverse of e modulo \phi(n):

    \[    d \times e \equiv 1 \pmod{\phi(n)}    \]

This means that d satisfies the equation d \times e mod \phi(n) = 1.

Public and Private Keys in RSA

The RSA cryptosystem leverages the properties of the public and private keys to facilitate secure communication. Here is a detailed description of each key:

– Public Key: The public key in RSA is composed of the pair (e, n). This key is distributed openly and can be used by anyone wishing to send an encrypted message to the key's owner. The public key is used in the encryption process and is designed to be widely accessible.

– Private Key: The private key is composed of the pair (d, n). This key must be kept confidential by the key's owner, as it is used to decrypt messages that were encrypted using the corresponding public key. The private key ensures that only the intended recipient can access the plaintext message.

Encryption and Decryption Process

The RSA encryption and decryption processes utilize the public and private keys as follows:

– Encryption: To encrypt a message M, the sender converts the message into an integer m such that 0 \leq m < n. The ciphertext c is then computed using the recipient's public key (e, n):

    \[   c = m^e \mod n   \]

The resulting ciphertext c is then transmitted to the recipient.

– Decryption: Upon receiving the ciphertext c, the recipient uses their private key (d, n) to decrypt the message. The plaintext message m is recovered by computing:

    \[   m = c^d \mod n   \]

The recipient can then convert the integer m back to the original message M.

Example of RSA Key Generation and Usage

To illustrate the RSA key generation and usage, consider the following example with small prime numbers for simplicity:

1. Select Primes: Choose p = 61 and q = 53.
2. Compute n:

    \[    n = 61 \times 53 = 3233    \]

3. Compute \phi(n):

    \[    \phi(n) = (61 - 1) \times (53 - 1) = 60 \times 52 = 3120    \]

4. Choose Public Exponent e: Let e = 17 (a common choice).
5. Compute Private Exponent d: Find d such that:

    \[    d \times 17 \equiv 1 \pmod{3120}    \]

Using the Extended Euclidean Algorithm, we find d = 2753.

Thus, the public key is (17, 3233) and the private key is (2753, 3233).

To encrypt a message M, convert M into an integer m. Suppose m = 65:

    \[ c = 65^{17} \mod 3233 = 2790 \]

The ciphertext c is 2790.

To decrypt c, compute:

    \[ m = 2790^{2753} \mod 3233 = 65 \]

The decrypted message is 65, which corresponds to the original message M.

Security Considerations

The security of RSA relies on the computational difficulty of factoring the large composite number n into its prime factors p and q. The larger the primes p and q, the more secure the RSA system. In practice, primes of 2048 bits or more are commonly used to ensure robust security.

Additionally, RSA's security can be compromised if the private key d is exposed or if the primes p and q are not chosen properly. Therefore, secure key generation practices and key management are important to maintaining the integrity of the RSA cryptosystem.

Other recent questions and answers regarding The RSA cryptosystem and efficient exponentiation:

  • Was public-key cryptography introduced for use in encryption?
  • Is the encryption function in the RSA cipher an exponential function modulo n and the decryption function an exponential function with a different exponent?
  • In RSA cipher, does Alice need Bob’s public key to encrypt a message to Bob?
  • How many part does a public and private key has in RSA cipher
  • What is the exponentiation function in the RSA cipher?
  • Are public keys transferred secretly in RSA?
  • In the context of public-key cryptography, how do the roles of the public key and private key differ in the RSA cryptosystem, and why is it important that the private key remains confidential?
  • Why is the security of the RSA cryptosystem dependent on the difficulty of factoring large composite numbers, and how does this influence the recommended key sizes?
  • How does the method of "Exponentiation by Squaring" optimize the process of modular exponentiation in RSA, and what are the key steps of this algorithm?
  • What are the steps involved in the key generation process of the RSA cryptosystem, and why is the selection of large prime numbers crucial?

View more questions and answers in The RSA cryptosystem and efficient exponentiation

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: The RSA cryptosystem and efficient exponentiation (go to related topic)
Tagged under: Cryptography, Cybersecurity, Decryption, Encryption, Key Generation, Modular Arithmetic, Prime Numbers, Private Key, Public Key, RSA, Security
Home » Cybersecurity » EITC/IS/CCF Classical Cryptography Fundamentals » Introduction to public-key cryptography » The RSA cryptosystem and efficient exponentiation » » How many keys are used by the RSA cryptosystem?

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.