spockwall
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note No publishing access yet

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.

      Your account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

      Your team account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

      Explore these features while you wait
      Complete general settings
      Bookmark and like published notes
      Write a few more notes
      Complete general settings
      Write a few more notes
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note No publishing access yet

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.

    Your account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

    Your team account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

    Explore these features while you wait
    Complete general settings
    Bookmark and like published notes
    Write a few more notes
    Complete general settings
    Write a few more notes
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    4
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # II. History of Homomorphic Encryption [TOC] ## Introduction This is the second chapter of [Understanding Homomorphic Encryption](https://hackmd.io/@spockwall/rJgV4qFgZe) series. This chapter we discuss the evolution of HE, tracing the path from early schemes that supported only partial HE to the pivotal breakthroughs that enabled the realization of Fully Homomorphic Encryption. This historical context is essential for appreciating the complexity and significance of modern lattice-based schemes. ## What Is Homomorphism? In mathematics, a **homomorphism** is a "structure-preserving" map between two algebraic structures. ### Excample Imagine the operation of **addition** in the set of real numbers (e.g., $x + y$) and the operation of **multiplication** in the set of positive real numbers. - The **exponential function** $f(x) = e^x$ is a homomorphism *from* addition *to* multiplication. - It "preserves the structure." If you add two numbers first and then apply the function, you get the same result as applying the function to each number first and then multiplying. **$$f(x + y) = f(x) \times f(y) = e^x \times e^y = e^{(x+y)}$$** The structure is preserved: **Addition** in the first world maps to **Multiplication** in the second world. --- ### The Core Principle - A function $f$ is a homomorphism if performing the operation gives the same result, whether you do it before or after mapping (use $\circ$ for the first set and $\bullet$ for the second set): **$$f(a \circ b) = f(a) \bullet f(b)$$** - This means you can do your work in the "original" world ($a \circ b$) or in the "mapped" world ($f(a) \bullet f(b)$) and get a corresponding result. --- ### Connection to Cryptography - In this context, the "map" is the **encryption function** ($E$). The "original world" is your plaintext data, and the "mapped world" is the encrypted ciphertext. - An **additive homomorphic** scheme, (like Paillier) preserves the addition operation. It allows you to perform an operation on the ciphertexts (let's call it $\oplus$) that corresponds to addition on the plaintexts: **$$E(m_1) \oplus E(m_2) = E(m_1 + m_2)$$** - A **multiplicative homomorphic** scheme (like Elgamal Encryption) does the same for multiplication, using an operation $\otimes$: **$$E(m_1) \otimes E(m_2) = E(m_1 \times m_2)$$** - For a fully homomorphic encryption scheme, additive and multiplicative homomorphism are achieved with the construction of encrpytion function. ## Partial Homomorphic Encryption (PHE) **Partial Homomorphic Encryption (PHE)** refers to cryptosystems that allow for one specific type of mathematical operation (either addition or multiplication) to be performed an unlimited number of times on encrypted data. This is in contrast to **Fully Homomorphic Encryption (FHE)**, which allows for *both* addition and multiplication. Because PHE systems are limited to a single operation, they are generally much faster and more efficient than FHE, making them practical for specific applications like secure e-voting or statistical analysis. --- ### RSA (1977) - THe RSA encryption scheme is **multiplicatively homomorphic**. - **Property:** Multiplying two RSA ciphertexts together results in a new ciphertext that, when decrypted, yields the product of the original plaintexts. - **How it works:** * Let $E(m_1) = m_1^e \mod n$ be the ciphertext of message $m_1$. * Let $E(m_2) = m_2^e \mod n$ be the ciphertext of message $m_2$. * If you multiply these two ciphertexts: $E(m_1) \times E(m_2) = (m_1^e \mod n) \times (m_2^e \mod n)$ $= (m_1 \times m_2)^e \mod n$ $= E(m_1 \times m_2)$ - **Key Caveat:** This homomorphic property is **lost in modern, secure implementations of RSA**. Secure RSA requires padding schemes (like OAEP), which add randomness to the message before encryption. This randomness breaks the multiplicative relationship. --- ### Elgamal (1984) - The **Elgamal** cryptosystem is also naturally **multiplicatively homomorphic**. - **Property:** Multiplying two Elgamal ciphertexts (specifically, their corresponding components) results in a ciphertext that decrypts to the product of the original plaintexts. - **How it works:** * An Elgamal ciphertext for a message $m$ is a pair $(c_1, c_2)$. * $E(m_1) = (c_{1a}, c_{2a})$ * $E(m_2) = (c_{1b}, c_{2b})$ * Multiplying the components: $(c_{1a} \times c_{1b}, c_{2a} \times c_{2b}) = E(m_1 \times m_2)$ - **Note:** A variation known as "Exponential Elgamal" can be used to achieve *additive* homomorphism by encoding a message $m$ as $g^m$ (a generator $g$ to the power of $m$) before encryption. --- ### Paillier (1999) - The **Paillier** cryptosystem is the most widely cited example of an **additively homomorphic** scheme. - **Property:** Multiplying two Paillier ciphertexts together results in a new ciphertext that, when decrypted, yields the *sum* of the original plaintexts. - **How it works:** * Let $E(m_1)$ and $E(m_2)$ be the ciphertexts of messages $m_1$ and $m_2$. * If you multiply these two ciphertexts: $E(m_1) \times E(m_2) = E(m_1 + m_2)$ - **Applications:** This property is extremely useful for privacy-preserving applications. For example, in an **e-voting system**, each vote (0 for 'No', 1 for 'Yes') can be encrypted with Paillier. The election server can then multiply all the ciphertexts together. Decrypting this single, combined ciphertext reveals only the *total sum* of the votes, not the individual vote of any participant. --- ### Others - Additively Homomorphic Schemes - Benaloh Cryptosystem - Damgård–Jurik Cryptosystem - Okamoto–Uchiyama Cryptosystem - Naccache–Stern Cryptosystem - Exclusive-OR (XOR) Homomorphic Schemes - Goldwasser–Micali (GM) Cryptosystem - Fully-Additive and One-multiplicative Homomorphic Schemes - **Boneh–Goh–Nissim (BGN) Cryptosystem**: Supports an unlimited number of additions but only one multiplication. It's more powerful than a purely additive scheme. It's often used in situations requiring a single multiplicative step, like calculating a squared distance. ## Somewhat (practical) Homomorphic Encryption (SHE) - A Somewhat Homomorphic Encryption (SHE) scheme is a system that can perform both addition and multiplication, but only for a limited number of operations. ## Leveled Homomorphic Encryption (LHE) - A Leveled Homomorphic Encryption scheme is a more powerful and practical version of SHE. It allows you to perform computations up to a pre-determined, bounded depth. - Note: Both SHE and LHE are a part of building blocks of fully homomorphic encryption schemes. ## Fully Homomorphic Encryption - **Integer-based FHE: DGHV scheme (2010):** - The security relies on the **Approximate Greatest Common Divisor (AGCD)** difficulty problem on integers and the lattice difficulty problem. - **First-Generation FHE: Gentry's scheme (2009):** - Based on **ideal lattices**. - The security relies on the **Sparse Subset Summation Problem (SSSP)** assumption. - Impractical efficiency for implementation. - **Second-Generation FHE: BGV, (B)FV schemes (2011, 2012):** - Based on the **(Ring) Learning With Errors (\(R)LWE)) problem**. - This generation notably no longer relies on the SSSP assumption. - The message encoding techique makes SIMD available. - **Third-Generation FHE: GSW, FHEW, TFHE schemes (2013, 2014, 2016):** - Using bit manipulation, allowing abritrary circuit composition. - This generation, which uses an approximate eigenvector-based construction, is based on the **\(R)LWE problem**. - TFHE is based on "Torus" not ring. - **Fourth-Generation FHE: CKKS scheme (2016):** - CKKS also called HEAAN is a designed for approximate arithmetic on real or complex numbers. Unlike other schemes that are exact, - Derived from the second generation, so SIMD is also available. - Supports approximate arithmetic, is based on the **\(R)LWE problem**. - There is a exact version of CKKS. ## FHE Evolution Graph ![Screenshot 2025-11-18 at 3.29.00 PM](https://hackmd.io/_uploads/ByaIeoKe-g.png) ## Reference - [Progress and Applications of Fully Homomorphic Encryption](https://www.researchgate.net/publication/385062114_Progress_and_Applications_of_Fully_Homomorphic_Encryption) - [History of FHE: A Timeline](https://fhe.org/history/) - [Open, Application-Driven FHE for Ethereum](https://ethresear.ch/t/open-application-driven-fhe-for-ethereum/23044)

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password
    or
    Sign in via Facebook Sign in via X(Twitter) Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    By signing in, you agree to our terms of service.

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully