Sunchul Jung
    • 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
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # Convergent Evolution: Why Secure Homomorphic Encryption Will Ressemble High-Performance GPU Computing **Sunchul Jung** *CryptoLab Inc, zotanika@heaan.com* --- ## TL;DR > Fully Homomorphic Encryption (FHE) programming hits a fundamental **Turing Barrier** where secure computation forbids the dynamic branching that makes conventional software work, forcing it into a parallel-first paradigm surprisingly similar to the high-performance GPU model. > This means the future of FHE isn't a magic compiler, but a **hybrid architecture** where a trusted client orchestrates complex logic, while an untrusted server executes simple, branchless secure kernels on encrypted data across a well-defined **offloading boundary**. > Ultimately, developers must stop trying to translate old optimization habits and start redefining problems from the ground up, because **in the world of FHE, performance isn't about pruning—it's about parallelism**. ## Abstract Fully Homomorphic Encryption (FHE) and high-performance GPU computing have evolved under fundamentally different pressures—security and performance—yet I argue that **their programming models are converging toward a branch-free, massively parallel paradigm**. This convergence arises from FHE’s **Turing Barrier**: while FHE is *theoretically Turing-complete* at the gate level, **supporting secret-dependent control flow securely is practically infeasible** without incurring combinatorial overheads. Meanwhile, GPUs evolved under different constraints—avoiding **warp divergence**—but reached similar design instincts: **uniform, parallel-first kernels**. However, FHE introduces strictly stronger constraints than GPUs: - Every kernel must be **data-oblivious**. - Memory access patterns must remain uniform. - The **Host ↔ Device** (Trusted-Host ↔ Secure-Kernel-Executor in the FHE context) **offloading boundary** must be formally defined. Using Quicksort and Approximate Nearest Neighbor (ANN) search as case studies, I show why pruning-based optimizations—highly effective in plaintext—become **anti-secure** (i.e., the act of optimization itself introduces security vulnerabilities contrary to the original intention) under encryption. Recent works, including the FHE compiler project **HEIR** [^1], programmable bootstrapping optimizations [^2], and private inference frameworks [^3], confirm these fundamental constraints, demonstrating incremental improvements within fixed sandboxes but falling short of general solutions. I conclude that the future of practical FHE lies in **hybrid architectures** where trusted clients orchestrate control flow and untrusted servers execute **branchless, parallel secure kernels**. GPU programming models provide valuable blueprints, but advancing secure computation demands an **FHE-native programming model**. --- ## Table of Contents 1. [Introduction](#1-introduction) 2. [Background: Fundamental Constraints](#2-background-fundamental-constraints) 2.1. [The FHE Security Model and the Turing Barrier](#21-the-fhe-security-model-and-the-turing-barrier) 2.2. [How FHE Compilers Handle Control Flow](#22-how-fhe-compilers-handle-control-flow) 2.3. [Compilation Resource Explosion Warning](#23-compilation-resource-explosion-warning) 2.4. [Programmable Bootstrapping and Its Limits](#24-programmable-bootstrapping-and-its-limits) 2.5. [Memory Access and ORAM Lower Bounds](#25-memory-access-and-oram-lower-bounds) 3. [Convergent Evolution: FHE and GPUs](#3-convergent-evolution-fhe-and-gpus) 4. [A Practical Architecture: The Hybrid Model](#4-a-practical-architecture-the-hybrid-model) 5. [Case Studies: The Parallel-First Imperative](#5-case-studies-the-parallel-first-imperative) 6. [Comparative Analysis of Recent Research](#6-comparative-analysis-of-recent-research) 7. [Implications for FHE Systems](#7-implications-for-fhe-systems) 8. [Conclusion: The Path to FHE-Native Development](#8-conclusion-the-path-to-fhe-native-development) 9. [References](#9-references) --- ## 1. Introduction Fully Homomorphic Encryption (FHE) enables arbitrary computation on encrypted data without exposing plaintexts [^4]. Meanwhile, GPUs have revolutionized computing by enabling massive parallelism, powering deep learning and high-performance computing [^5]. Despite different origins, these two paradigms now face **structurally similar challenges**. The need for a parallel-first model in FHE arises from a dual mandate: - Translating secret-dependent branching from conventional programs introduces critical **side-channel leakage** risks, forcing a branchless, data-oblivious model. - FHE operations are often heavily **memory-bound**, and mitigating the I/O overhead caused by chaining multiple operations requires exploiting **massive parallelism via fused, coarse-grained kernels**. - For GPUs, divergent branching causes performance degradation. In both domains, uniform, parallel computation emerges as the natural solution. This blog explores why these dual pressures lead to a convergence with the GPU model, why traditional optimizations fail, and why the future depends on building a new ecosystem of FHE-native, fused kernels managed by a smart, hybrid architecture. --- ## 2. Background: Fundamental Constraints ### 2.1 The FHE Security Model and the Turing Barrier An FHE scheme evaluates $f(\mathrm{Enc}(x)) \rightarrow \mathrm{Enc}(f(x))$ without revealing $x$. However, secure execution forbids revealing **control flow** or **memory access patterns** derived from secret data. Dynamic branches and loops are problematic: - `if-else` decisions → leak branch outcomes. - Secret-dependent loops → leak iteration counts. Thus, FHE programs must adopt **data-oblivious execution** [^6]: - Evaluate both paths of all branches. - Fix loop bounds to public constants. - Make memory accesses uniform. This reality is summarized as the **Turing Barrier**: FHE remains Turing-complete in theory at the gate level, but we use this term to describe the practical infeasibility of securely compiling general-purpose programs that rely on unrestricted control flow. --- ### 2.2 How FHE Compilers Handle Control Flow Many developers assume FHE behaves like a traditional runtime: write an `if` statement, and only the chosen branch executes. **But this would leak secrets**—if the server observes which path was taken, it learns private data. In FHE, **both branches must always execute**. The compiler produces an arithmetic `select`: $$\mathrm{Enc}(r) = \mathrm{Enc}(\text{cond}) \cdot \mathrm{Enc}(r_a) + (1 - \mathrm{Enc}(\text{cond})) \cdot \mathrm{Enc}(r_b)$$ #### Figure 1. FHE Conditional Execution ```mermaid flowchart TD A[Encrypted Condition] --> B[Execute Subroutine A] A --> C[Execute Subroutine B] B --> D["Enc(result_a)"] C --> E["Enc(result_b)"] D --> F["Combine:</br>cond * res_a + (1 - cond) * res_b"] E --> F F --> G[Final Encrypted Result] ``` **Key takeaway:** Under FHE, writing `if (encrypted(cond)) ...` in source code **does not** imply conditional execution; the compiler **always executes both paths** and combines results securely. --- ### 2.3 Compilation Resource Explosion Warning The combinatorial blow-up caused by encrypted control flow affects not only runtime performance but also the **compilation process itself**. For every secret-dependent branch, the FHE-aware compiler must **materialize all possible subroutines** into encrypted circuits. In the worst case, $N$ nested conditions yield a circuit size of $O(2^N)$. Recent experiments with [LLVM](https://llvm.org/)-based FHE Intermediate Representations (IRs) such as HEIR [^1] highlight this challange. While research explores sophisticated optimizations to avoid naive full unrolling (e.g., by hoisting common code from both branches), these techniques can only mitigate the overhead for shared computational paths. For genuinely divergent logic, the compiler must still materialize a circuit whose complexity grows exponentially with the number of secret-dependent branches. It is therefore an expected and observable outcome that beyond a certain branching complexity, this exponential growth will cause the compiler to exhaust system resources, leading to **out-of-memory (OOM) errors**—*before execution even begins*. This demonstrates that directly translating branch-heavy business logic is infeasible. **Problem redefinition is not an optimization choice — it is a requirement for tractable FHE compilation**. #### Figure 2. Branch Explosion at Compile Time ```mermaid graph TD A[Secret-Dependent</br> Branches: N Levels] --> B[Compiler Generates</br> Encrypted Circuits] B --> C{Total Paths = 2^N} C --> D[Circuit Size Grows</br> Exponentially] D --> E[Compile-Time Memory</br> Explosion] D --> F[Optimization Passes</br> Become Infeasible] E --> G[Possible OOM or</br> Compiler Failure] ``` --- ### 2.4 Programmable Bootstrapping and Its Limits TFHE’s **Programmable Bootstrapping (PBS)** [^7] and CKKS's **BB-BTS (Batch-bits Bootstrapping)** [^8] enable efficient Look-Up Table (LUT)-based evaluation of small non-linear functions. Recent works on optimizing these circuits [^2] further reduce cost by compressing LUT evaluation. However, PBS does **not** eliminate the combinatorial blow-up of complex business logic: - Optimizations are **pattern-limited**, applicable to fixed, low-dimensional functions. - Decision-tree inference using private inference frameworks like Piranha [^3] works only for **small, fixed-depth trees**; adaptive branching remains insecure. PBS provides a valuable tool but **not a universal escape hatch**. --- ### 2.5 Memory Access and ORAM Lower Bounds Just as control flow must be made data-oblivious, memory access patterns must also be protected. When computations require secret-dependent memory access, **Oblivious RAM (ORAM)** must be used to hide patterns [^6]. However: - ORAM has a **provable lower bound**: $\Omega(\log n)$ per access, where `n` is the number of blocks in memory. - Even optimal constructions like OptORAMa [^9] cannot break this limit. - For large-scale workloads, ORAM costs dominate if memory access depends on secrets. **Implication:** Secret-driven memory access cannot be made “cheap” under FHE. Algorithms must be **redesigned** to avoid adaptive memory patterns. --- ## 3. Convergent Evolution: FHE and GPUs FHE and GPU computing converge structurally, driven by the dual pressures of security and performance. | Aspect | GPU Offloading ([CUDA](https://developer.nvidia.com/cuda-toolkit)/[ROCm](https://www.amd.com/en/products/software/rocm.html)/[SYCL](https://www.khronos.org/sycl/)) | FHE Hybrid Model (Proposed) | |--------|---------------------------------|-----------------------------| | **Primary Goal** | Maximize throughput | Preserve confidentiality | | **Execution Style** | SIMT (Single Instruction, Multiple Threads), branch-minimized | Branchless, data-oblivious | | **Offloading Model** | Implicit, library-driven | Explicit, security-driven | | **Boundary Definition** | Kernel APIs, runtime libraries | Formally defined security surface | | **Workload Assumption** | Dense, GPU-friendly ops | Arbitrary → refactoring needed | | **Memory Model** | Observable, hierarchical | Must be oblivious | | **Programming Model** | Emergent, pragmatic | Intentional, security-first | FHE's constraints are stricter, mandating a more intentional and formally defined programming model than the emergent, pragmatic model of GPUs. We must **explicitly define host-device offloading** and **design kernels intentionally**. #### Figure 3. Conceptual Overlap of FHE and GPU Constraints ```mermaid graph LR subgraph FHE Constraints A("Every Kernel Must Be<br/>Data-Oblivious"); B("Memory Access Must<br/>Be Uniform"); C("Formal Security Boundary<br/>(Host-Device)"); end subgraph GPU Constraints D("Avoid Warp Divergence"); E("Maximize Parallelism"); F("Performance-Driven<br/>API Offloading"); end subgraph Shared Paradigm G("Branchless,</br> Uniform Kernels"); H("Massively Parallel</br> Execution"); end A --> G; B --> G; C --> G; D --> G; E --> H; F --> H; ``` --- ## 4. A Practical Architecture: The Hybrid Model > **Terminology Note**: I borrow the **host-device** terminology from GPU programming models for intuitive consistency. In the FHE context: > - **Host** → **Trusted-Host**: Orchestrates application logic, manages secret-dependent control flow, and launches secure kernels. > - **Device** → **Secure-Kernel-Executor**: Executes branchless, data-oblivious kernels on encrypted inputs in an untrusted environment. ### 4.1 Note on GPU Programming Models Although I borrow GPU programming terminology, **GPU programming models themselves are not fully standardized**. Offloading is often API-driven via libraries like [cuBLAS](https://developer.nvidia.com/cublas) or [TensorRT](https://developer.nvidia.com/ko-kr/tensorrt), not formal control-flow abstractions. This implies an **even greater challenge for FHE**: we must **explicitly define the offloading boundary**, because FHE imposes **far stricter constraints** than GPUs. #### Figure 4. Offloading Model Comparison ```mermaid flowchart TD subgraph GPU["GPU Programming Model"] GHost[Host] -->|Launch CUDA Kernel| GDev[GPU Device] GDev -->|Result| GHost end subgraph FHE["FHE Programming Model"] FHost[Trusted-Host] -->|Launch Secure-Kernel| FDev[Secure-Kernel-Executor] FDev -->|Encrypted Result| FHost end ``` --- ## 5. Case Studies: The Parallel-First Imperative Developers often misconceive that FHE’s Turing completeness at the gate level implies pruning-based optimizations can be directly ported. However, pruning is **anti-secure**. ### 5.1 Sorting - **Quicksort (FHE-unfriendly):** Adaptive pivots and partitions leak structural information. - **Sorting Networks (FHE-Friendly):** Fixed compare-swap sequences (e.g., Bitonic Sort) are uniform, oblivious, and parallelizable. #### Figure 5. Algorithmic Paradigms: Adaptive Sorting vs. Data-Oblivious Sorting ```mermaid graph TD subgraph "Adaptive(Quicksort)" A1("Input: [3, 1, 4, 2]") --> A2("Pivot=3"); A2 --> A3("Partition: [1, 2] | 3 | [4]"); A3 --> A4("Recurse..."); end subgraph "Data-Oblivious(Bitonic)" B1("Input: [ , , , ]") --> B2("Fixed Compare</br>Swap Stage 1"); B2 --> B3("Fixed Compare</br>Swap Stage 2"); B3 --> B4("*, *, *, *"); end A1 -- "Path Depends on Data" --> A4; B1 -- "Path is Fixed" --> B4; ``` ### 5.2 Approximate Nearest Neighbor (ANN) In this context, `N` represents the total number of vectors in the dataset, `d` is the dimension of each vector, `k` is the number of clusters in the IVF index, and `n_probe` is the number of clusters to probe during a search. - **IVF-FLAT (FHE-unfriendly):** This popular method works by first selecting a few (`n_probe`) cluster centroids nearest to the query, then searching only within those clusters. This adaptive probing leaks which clusters the query is close to. - **HNSW (FHE-unfriendly):** Adaptive graph traversal leaks query-specific paths [^10]. - **Brute-Force Scan (FHE-Compatible):** Evaluate distances for **all** vectors uniformly. | Algorithm | Plain Complexity | FHE-Compatible Complexity | Overhead Source | |-----------|-----------------|---------------------------|------------------| | IVF-FLAT | $O(k\cdot d + \frac{n_{\text{probe}}}{k}\cdot N\cdot d)$ | $O(k\cdot d + N\cdot d)$ | Removing adaptive probing | | HNSW | $O(d \cdot \log N)$ | $O(N\cdot d)$ | Eliminating path pruning | #### Figure 6. Pruning vs. Parallelism ```mermaid graph TD subgraph Plaintext_World P1[Pruning-Based</br> Optimization] --> P2[Search Space Reduction] --> P3[Dynamic Early Stopping] --> P4[Adaptive Index Traversal] end subgraph FHE_World F1[Branchless Uniform</br> Kernels] --> F2[Parallel Brute-Force</br> Baseline] --> F3[Secure Data-Oblivious</br> Execution] end F3 -.Leaks Secrets.-> P4 F1 -.Not Safe.-> P1 ``` **Key Insight:** In FHE, **brute force is the baseline**, not the fallback. Performance gains come from **parallelizing fixed workloads**, not pruning. --- ## 6. Comparative Analysis of Recent Research | **Work** | **Core Idea / Contribution** | **Scope / Applicability** | **Limitations & Implications** | |-----------|-----------------------------|--------------------------|-------------------------------| | **HEIR**[^1] | MLIR-based compiler for FHE | Expressive across CKKS, BFV, TFHE backends | Optimizations can reduce overhead for shared paths, but cannot solve the core combinatorial explosion for divergent logic. Confirms **Turing Barrier** | | **PBS Optimization** [^2] | PBS circuit optimization for TFHE | Efficient for fixed LUT-based non-linearities | Limited to **local patterns**; cannot eliminate control-flow explosion | | **Private Inference** [^3] | GPU-friendly framework for private inference | Works for **fixed-depth, small models** | Not scalable to adaptive branching; dynamic paths remain insecure | | **OptORAMa** [^9] | Near-optimal oblivious memory | Provably tight asymptotics | $\Omega(\log n)$ overhead unavoidable; secure random access is inherently expensive | Recent progress expands FHE’s reach but validates the central thesis: **general-purpose, efficient, secure FHE requires problem redefinition, not direct translation.** --- ## 7. Implications for FHE Systems - **FHE-aware compilers** must act as **policy enforcers**, not magicians: - Convert branches into predicated arithmetic. - Enforce loop unrolling to constant bounds. - Optimize SIMD-style ciphertext packing. - **Hardware accelerators** for FHE will **increasingly resemble GPUs**: - High-throughput execution cores. - On-die NTT engines. - High-bandwidth memory for ciphertext batching. - **Design implication**: The **parallel-first paradigm** isn’t just optimal — it’s necessary for secure performance. --- ## 8. Conclusion: The Path to FHE-Native Development The theoretical Turing completeness of Fully Homomorphic Encryption (FHE) may suggest that any software can be privatized with a magical compiler. In reality, secure computation faces a fundamental **Turing Barrier**: the dynamic, branching-based optimizations that make conventional software efficient become the very conduits that leak secrets under encryption. The future of FHE, therefore, depends not on translating legacy code, but on redefining problems from first principles. The most pressing challenge is FHE’s dominant performance bottleneck: memory I/O. Optimizing individual operations in isolation is insufficient; for any non-trivial business logic, the cumulative overhead of sequential IR-level kernels quickly makes applications impractical. Inspired by high-performance GPU computing, **the solution is to move from fine-grained primitives toward a hierarchy of fused, coarse-grained kernels—reducing data movement, exploiting massive parallelism, and unlocking practical performance**. Building these kernels also solves the ecosystem’s chicken-and-egg problem: useful, coarse-grained kernels must come first to create immediate value, attract developers, and enable sustainable growth. **A lightweight orchestration framework can manage this efficiently, where the trusted host performs simple runtime scheduling—dispatching fused kernels when available and falling back to basic ones otherwise**. Since scheduling depends only on the public sequence of API calls, it remains inherently secure. Beyond kernels, the next step is to formalize the offloading boundary between the trusted host and the secure executor. Unlike GPU computing, where offloading is pragmatic and API-driven, **FHE’s boundary is a security contract that must be explicit and rigorously defined**. Establishing this foundation transforms FHE development from a set of clever hacks into a true engineering discipline. Ultimately, this leads to a **truly FHE-native programming model**. Compilers will evolve from magical translators into **policy enforcers**, guiding developers toward parallel-first problem formulations. By combining optimized fused kernels with explicit host-device boundaries, we can unlock scalable, secure, and high-performance computation—turning FHE from a theoretical promise into a practical reality. Looking further ahead, inspiration can be drawn from **quantum computing**, where developers also work within strict constraints, composing algorithms from a limited set of gates while carefully managing entanglement. Similarly, **tomorrow’s FHE developers will think less like conventional software engineers and more like quantum algorithm designers**—crafting solutions in a fundamentally constrained, parallel-first universe. ### **Stop translating. Start redefining.** --- ## 9. References [^1]: Asra Ali, Jaeho Choi, Bryant Gipson, Shruthi Gorantala, Jeremy Kun, Wouter Legiest, Lawrence Lim, Alexander Viand, Meron Zerihun Demissie & Hongren Zheng, **"HEIR: A Universal Compiler for Homomorphic Encryption"**, arXiv preprint arXiv:2508.11095, 2025. [^2]: Ilaria Chillotti, Damien Ligier, Jean-Baptiste Orfila & Samuel Tap, **"“Improved Programmable Bootstrapping with Larger Precision and Efficient Arithmetic Circuits for TFHE**", ASIACRYPT 2021. [^3]: Jean-Luc Watson, Sameer Wagh & Raluca Ada Popa, **"Piranha: A GPU Platform for Secure Computation"**, USENIX Security 2022. [^4]: Craig Gentry, **"A Fully Homomorphic Encryption Scheme"**, STOC ’09. [^5]: John D. Owens, Mike Houston, David Luebke, Simon Green, John E. Stone & James C. Phillips, **"GPU Computing"**, *Proceedings of the IEEE*, vol. 96, no. 5, 2008. [^6]: Oded Goldreich & Rafail Ostrovsky, **"Software Protection and Simulation on Oblivious RAMs"**, *Journal of the ACM*, vol. 43, no. 3, 1996. [^7]: Ilaria Chillotti, Nicolas Gama, Mariya Georgieva & Malika Izabachène, **"TFHE: Fast Fully Homomorphic Encryption over the Torus"**, *Journal of Cryptology*, 33(1), 2020. [^8]: Youngjin Bae, Jaehyung Kim, Damien Stehlé & Elias Suvanto, **"Bootstrapping Small Integers With CKKS"**, ASIACRYPT (1) 2024: 330-360 [^9]: Gilad Asharov, Ilan Komargodski, Wei-Kai Lin, Kartik Nayak, Enoch Peserico & Elaine Shi, "**OptORAMa: Optimal Oblivious RAM**", EUROCRYPT, 2020. [^10]: Yu A. Malkov & D. A. Yashunin, **"Efficient and Robust Approximate Nearest Neighbor Search Using HNSW"**, *IEEE TPAMI*, 2020.

    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