Asymmetric Key Cryptography (original) (raw)

Last Updated : 23 Jul, 2025

In asymmetric Key cryptography, there are two keys, also known as key pairs: a public key and a private key. The public key is publicly distributed. Anyone can use this public key to encrypt messages, but only the recipient, who holds the corresponding private key, can decrypt those messages. "Public-key cryptography" is another representation used to refer to Asymmetric Key cryptography.

This cryptographic system addresses two major challenges faced in traditional (symmetric) cryptography: **key distribution and digital signatures. Asymmetric algorithms use one key for encrypting data and another, related key for decrypting it. These algorithms possess an important feature:

Asymmetric-key cryptography uses mathematical functions to transform plaintext and ciphertext represented as numbers for encryption and decryption, while symmetric-key cryptography involves symbol substitution or permutation. In asymmetric-key cryptography, plaintext and ciphertext are treated as integers, requiring encoding and decoding processes for encryption and decryption.

General idea of asymmetric-key cryptosystem

General idea of asymmetric-key cryptosystem

Characteristics of Asymmetric Key Cryptography

**Security Responsibility

**Unique Key Pairs

**Key Management

Key Components

Concept of the T**rapdoor One-Way Function

Asymmetric-key cryptography lies in the concept of the trapdoor one-way function.Imagine a function as a simple rule we follow in math. It takes something from one group (let's call it "Set A") and matches it with something in another group (we'll call this one "Set B"). It's like connecting dots from one set to another, as can be seen below.

A function as rule mapping a domain to a range

A function as rule mapping a domain to a range

Now, let's talk about something called a one-way function (OWF). It's a special kind of function that has two important qualities:

Now, let's add a secret ingredient to our one-way function, making it a trapdoor one-way function (TOWF). This type of function has a third feature:

If you have "y" and a special secret (let's call it a "trapdoor"), then you can easily figure out what "x" was. So, even though it's normally hard to go from "y" back to "x," if you have this secret code, it becomes a lot easier.

**We can write it as follows: A trapdoor one-way function is a relative of invertible functions f p , such that:

**Primary Terminologies

**Working

In this setup, all participants possess public keys, while private keys are locally generated and never distributed. As long as a user's private key remains secure and undisclosed, incoming communications are safe. The system can change its private key at any time and publish the corresponding public key to replace the old one.

**Algorithms

There are several algorithms used in asymmetric key cryptography, some of them are as follows:

RSA (Rivest–Shamir–Adleman)

It is commonly utilized to ensure secure communication and for creating digital signatures. It Uses large integer prime numbers for key generation. It Encrypts data with the public key and decrypts with the private key. It is Slower than some other algorithms but offers strong security.

**Key Generation

Encryption

Decryption

Elliptic Curve Cryptography (ECC)

It gives equal protection to RSA with shorter key sizes. The concept behind this is based on the mathematical properties of elliptic curves. It is Faster and more efficient for resource-constrained devices. It Gaining popularity in mobile security and the Internet of Things (IoT).

**Key Generation

Encryption and Decryption

Diffie-Hellman Key Exchange

It doesn't directly encrypt data but establishes a shared secret key for secure communication. Two parties can generate a common secret key without ever exchanging it directly. It often used in conjunction with other algorithms like RSA for key exchange.

Key Exchange

Security

**Digital Signature Standard (DSS)

It Uses a variant of the ElGamal encryption scheme. It is primarily for digital signatures, ensuring message authenticity and integrity. The sender signs a message with their private key, receiver verifies with the sender's public key. It is often used for secure emails and software signing.

Key Generation

Signing

Verification

**Applications

Algorithm Encryption/Decryption Digital Signature Key Exchange
RSA Yes Yes Yes
Elliptic Curve Yes Yes Yes
Diffie-Hellman No No Yes
DSS No Yes No

Advantages

Public-Key Cryptanalysis

Cryptanalysis is the study of studying cryptographic systems to understand their vulnerabilities or weaknesses, often with the goal of breaking or bypassing their security measures.

When it comes to public-key encryption schemes, cryptanalysis has some challenges and risks: