Encrypted Edit Distance via Programmable Bootstrapping

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing fully homomorphic encryption (FHE) schemes face challenges in computational overhead, particularly due to costly polynomial multiplication and noise accumulation, which hinder efficient string similarity calculations like edit distance, especially in data-dependent branching and large input sizes.

Innovation Solution

A method for equality checking and edit distance calculation in the encrypted domain using programmable bootstrapping operations, employing negacyclic lookup tables and differential encoding values to optimize computations, allowing for efficient handling of larger input sizes and reducing the number of bootstrapping operations.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If traditional FHE schemes are used for edit distance calculation, then data confidentiality is maintained, but computational overhead becomes prohibitively high

Engineering Contradiction:
Improvedata confidentialityVSAvoidcomputational overhead
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The patent changes the parameter space from traditional FHE schemes to TFHE (Torus Fully Homomorphic Encryption) which operates over the torus group. This parameter change enables more efficient polynomial multiplication using Toom-Cook and Karatsuba algorithms, reducing computational overhead while maintaining confidentiality

Inventive Principle:
Principle #35Parameter changes

Solution Approach 2:

The patent replaces traditional arithmetic operations with homomorphic Boolean algebra operations (NAND, XOR, XNOR logic gates) in the TFHE scheme. This substitution allows for more efficient computation and enables programmable bootstrapping that reduces the number of expensive bootstrapping operations needed

Inventive Principle:
Principle #28Mechanics substitution (Replace mechanical system)

2Adaptability or versatility

If polynomial multiplication is performed in FHE schemes, then string similarity calculations can be performed on encrypted data, but computational cost increases substantially

Engineering Contradiction:
Improveencrypted data computation capabilityVSAvoidcomputational cost
Core Design Contradiction:
Adaptability or versatilityVSUse of energy by moving object

Solution Approach 1:

The patent uses Toom-Cook multiplication and Karatsuba multiplication algorithms that create intermediate copies of the polynomial representations. These algorithms break down the multiplication into smaller sub-problems, reducing the overall computational cost while maintaining the ability to perform operations on encrypted data

Inventive Principle:
Principle #26Copying

Solution Approach 2:

The patent performs preliminary polynomial decomposition and preparation before the main multiplication operation. By pre-processing the polynomial representations and using efficient multiplication algorithms, the actual multiplication cost is significantly reduced

Inventive Principle:
Principle #10Preliminary action

3Productivity

If multiple homomorphic operations are performed sequentially, then edit distance calculation can be completed, but noise accumulates and requires frequent bootstrapping

Engineering Contradiction:
Improveedit distance calculation completionVSAvoidbootstrapping frequency
Core Design Contradiction:
ProductivityVSLoss of time

Solution Approach 1:

The patent designs the computation to minimize interruptions for bootstrapping by continuously performing operations that keep noise levels manageable. Through optimized operation sequencing and using TFHE's properties, the system maintains useful computation continuity rather than alternating between computation and bootstrapping

Inventive Principle:
Principle #20Continuity of useful action

Solution Approach 2:

The patent extracts and isolates the noise accumulation problem by using TFHE's specific properties where noise behaves differently than in traditional FHE. This extraction allows for longer computation sequences before bootstrapping is required, as the noise management characteristics of TFHE enable more operations between bootstrap cycles

Inventive Principle:
Principle #2Taking out (Extraction)

4Reliability

If bootstrapping operations are performed frequently to manage noise, then data security is maintained, but computational overhead increases

Engineering Contradiction:
Improvenoise level controlVSAvoidcomputational overhead
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The patent changes the underlying mathematical parameters from traditional FHE to TFHE over the torus. This parameter change fundamentally alters how noise accumulates and manages, reducing the frequency of bootstrapping operations needed while maintaining security and noise level control

Inventive Principle:
Principle #35Parameter changes

Solution Approach 2:

The patent introduces dynamic noise management through programmable bootstrapping where the bootstrap operation can be adapted to the specific computational needs. The system can adjust when and how bootstrapping is applied based on the actual noise levels and computation progress, rather than following a fixed frequent bootstrap schedule

Inventive Principle:
Principle #15Dynamics

Data Source

PatentEP4712402A1Method for edit distance calculation in a cryptographic application
Publication Date: 2026.03.18 BELFORT LABS BV
  • EP4712402A1 patent drawingFigure 1~3
  • EP4712402A1 patent drawing
  • EP4712402A1 patent drawing

AI summary

The present invention relates to a method for performing an equality checking of a first character and a second character in a cryptographic application wherein programmable bootstrapping is used, at least one of said first and said second character being encrypted, the method comprising: o checking the equality of the first character with the second character by determining a difference between said characters, and o using the difference as input for a lookup table operation through a programmable bootstrap operation, said lookup table yielding a first predetermined value if the difference equals zero and a second predetermined value different from the first predetermined value, so obtaining an equality result for the pair of characters formed by the first and the second character.