IP Library › Granted Patent US 12,750,205
Granted Patent B2
US 12,750,205 · App. 18/915,995 · Granted Sep 29, 2026

Practical sorting on large-scale encrypted data

Inventors: Jung Hee Cheon (Seoul, KR); Seungwan Hong (Seoul, KR)
Assignees: Crypto Lab Inc.; Seoul National University R&DB Foundation
H04L9/008H04L9/06H04L2209/125
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,750,205
App. No.
18/915,995
Granted
Sep 29, 2026
Kind
B2
Abstract

A method for processing homomorphic ciphertexts includes: receiving an input of an instruction for sorting regarding a plurality of homomorphic ciphertexts; sorting the plurality of homomorphic ciphertexts by using a sorter which can sort 3 more homomorphic ciphertexts in a single stage; and outputting the sorting result. The sorter performs sorting by using a comparison function that selectively outputs a bigger value or a smaller value between two input values.

Claims (53)

1 . A method for processing homomorphic ciphertexts, the method comprising:

receiving an input of an instruction for sorting regarding a plurality of homomorphic ciphertexts;

sorting the homomorphic ciphertexts by using a k-way sorter configured to sort k homomorphic ciphertexts in a single stage, wherein k is an integer equal to or greater than 3; and

outputting a sorting result, wherein

the k-way sorter is configured to:

perform sorting by using a comparison function that selectively outputs a bigger value or a smaller value between two input values,

divide the k homomorphic ciphertexts into a first group and a second group by sorting each of the first group and the second group using at least one of a 3-way sorter and a less-than (LT) comparison function, and

generate k sorted homomorphic ciphertexts by performing homomorphic operations based on sorting results of the first group and the second group.

2 . The method for processing homomorphic ciphertexts of claim 1 , wherein

the sorting comprises:

performing a parallel sorting process by using a plurality of the k-way sorters.

3 . The method for processing homomorphic ciphertexts of claim 1 , wherein

the comparison function is calculated through a multiplication calculation between an approximate sign function outputting a predetermined value according to comparison of sizes and an input value.

4 . The method for processing homomorphic ciphertexts of claim 3 , wherein

the approximate sign function is a function which is a result of repetitively calculating a composite function of which output value is made to be close to 1 regarding an input value bigger than 0, and of which output value is made to be close to −1 regarding an input value smaller than 0 by a predetermined number of times.

5 . The method for processing homomorphic ciphertexts of claim 4 , wherein

the approximate sign function is a function which is a result of repetitively calculating two different composite functions by three times, respectively.

6 . The method for processing homomorphic ciphertexts of claim 1 , wherein

the k-way sorter is 5-way sorter:

the 5-way sorter is configured to:

based on a first homomorphic ciphertext, a second homomorphic ciphertext, and a third homomorphic ciphertext being input, calculate a bigger value and a smaller value between the first homomorphic ciphertext and the second homomorphic ciphertext by using the comparison function, input the calculated bigger value and the third homomorphic ciphertext into the comparison function and output a first output value, input the calculated smaller value and the third homomorphic ciphertext into the comparison function and output a third output value, and calculate a second output value by subtracting the first output value and the third output value from a summed-up value for the first to third homomorphic ciphertexts and output the second output value.

7 . The method for processing homomorphic ciphertexts of claim 1 , wherein

the k-way sorter extends plain sentence spaces of the k sorted homomorphic ciphertexts.

8 . A calculation device comprising:

a memory that stores a plurality of homomorphic ciphertexts for an approximate message including an error; and

a processor that sort the homomorphic ciphertexts

by using a k-way sorter configured to sort k homomorphic ciphertexts in a single stage, wherein k is an integer equal to or greater than 3, wherein

the k-way sorter is configured to:

perform sorting by using a comparison function that selectively outputs a bigger value or a smaller value between two input values,

divide the k homomorphic ciphertexts into a first group and a second group by sorting each of the first group and the second group using at least one of a 3-way sorter and a less-than (LT) comparison function, and

generate k sorted homomorphic ciphertexts by performing homomorphic operations based on sorting results of the first group and the second group.

9 . The calculation device of claim 8 , wherein

the processor is configured to:

perform a parallel sorting process by using a plurality of the k-way sorters.

10 . The calculation device of claim 8 , wherein

the comparison function is calculated through a multiplication calculation between an approximate sign function outputting a predetermined value according to comparison of sizes and an input value.

11 . The calculation device of claim 10 , wherein

the approximate sign function is a function which is a result of repetitively calculating a composite function of which output value is made to be close to 1 regarding an input value bigger than 0, and of which output value is made to be close to −1 regarding an input value smaller than 0 by a predetermined number of times.

12 . The calculation device of claim 11 , wherein

the approximate sign function is a function which is a result of repetitively calculating two different composite functions by three times, respectively.

13 . The calculation device of claim 8 , wherein

the k-way sorter is 5-way sorter:

the 5-way sorter is configured to:

based on a first homomorphic ciphertext, a second homomorphic ciphertext, and a third homomorphic ciphertext being input, calculate a bigger value and a smaller value between the first homomorphic ciphertext and the second homomorphic ciphertext by using the comparison function, input the calculated bigger value and the third homomorphic ciphertext into the comparison function and output a first output value, input the calculated smaller value and the third homomorphic ciphertext into the comparison function and output a third output value, and calculate a second output value by subtracting the first output value and the third output value from a summed-up value for the first to third homomorphic ciphertexts and output the second output value.

14 . The calculation device of claim 8 , wherein

the k-way sorter extends plain sentence spaces of the k sorted homomorphic ciphertexts.

15 . A non-transitory computer-readable recording medium including a program for executing a method for processing homomorphic ciphertexts, the method comprising:

receiving an input of an instruction for sorting regarding a plurality of homomorphic ciphertexts; and

sorting the homomorphic ciphertexts by using a k-way sorter configured to sort k homomorphic ciphertexts in a single stage, wherein k is an integer equal to or greater than 3, wherein

the k-way sorter is configured to:

perform sorting by using a comparison function that selectively outputs a bigger value or a smaller value between two input values,

divide the k homomorphic ciphertexts into a first group and a second group by sorting each of the first group and the second group using at least one of a 3-way sorter and a less-than (LT) comparison function, and

generate k sorted homomorphic ciphertexts by performing homomorphic operations based on sorting results of the first group and the second group.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Apr 28, 2026
From: CHEON, JUNG HEE; HONG, SEUNGWAN
To: CRYPTO LAB INC.; SEOUL NATIONAL UNIVERSITY R&DB FOUNDATION
Reel/Frame 074497/0252 →
Priority Claims (1)
KR 10-2020-0036119 · Mar 25, 2020 · national
Continuity (3)
Continuation 17616349 · Jun 5, 2020
Provisional Application 62857617 · Jun 5, 2019
Related Publication 20250038949A1 · Jan 30, 2025
References Cited (8)
US 10007865B1 · Kim · 2018 [cited by examiner]
US 10601584B2 · Takatsukasa · 2020 [cited by examiner]
US 10701034B2 · Mower · 2020 [cited by examiner]
US 11550961B1 · Horesh · 2023 [cited by examiner]
US 12095896B1 · Retivykh · 2024 [cited by examiner]
US 12135811B2 · Fox-Epstein · 2024 [cited by examiner]
US 12149604B2 · Cheon · 2024 [cited by examiner]
US 12219043B1 · Rososhek · 2025 [cited by examiner]