# US 2022/0255722 A1 · Practical sorting on large-scale encrypted data

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2022/0255722 A1
- Document ID: US20220255722A1
- Status: Published application
- Kind: A1
- Application number: 17/616,349
- Filed: 2020-06-05
- Published: 2022-08-11
- Earliest claimed: 2019-06-05
- Assignees: Crypto Lab Inc.; Seoul National University R&Db Foundation
- Applicants: Crypto Lab Inc.; Seoul National University R&DB Foundation
- Inventors: Jung Hee Cheon; Seungwan Hong
- Web page: https://patentgrep.com/patent/US20220255722A1

## CPC

- H04L 9/008: {involving homomorphic encryption}
- G06F 7/24: Sorting, i.e. extracting data from one or more carriers, rearranging the data in numerical or other ordered sequence, and rerecording the sorted data on the original carrier or on a different carrier or set of carriers {sorting methods in general}(G06F7/36 takes precedence)
- H04L 9/06: the encryption apparatus using shift registers or memories for block-wise {or stream} coding, e.g. DES systems {or RC4; Hash functions; Pseudorandom sequence generators}
- G06F 2207/228: Sorting or merging network
- H04L 2209/125: Parallelization or pipelining, e.g. for accelerating processing of cryptographic operations
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Disclosed is a calculation device. The present calculation device includes: a memory for storing a plurality of homomorphic ciphertexts for an approximate message including an error; and a processor for sorting the plurality of homomorphic ciphertexts by using a 5-way sorter which can sort five homomorphic ciphertexts in a single stage.

## Claims

### Claim 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 plurality of homomorphic ciphertexts by using a 5-way sorter which can sort five homomorphic ciphertexts in a single stage; and
outputting the sorting result.

### Claim 2 (depends on 1)

The method for processing homomorphic ciphertexts of claim 1,
wherein the sorting comprises:
performing a parallel sorting process by using a plurality of 5-way sorters.

### Claim 3 (depends on 1)

The method for processing homomorphic ciphertexts of claim 1,
wherein the 5-way sorter performs sorting by using a comparison function that selectively outputs a bigger value or a smaller value between two input values.

### Claim 4 (depends on 3)

The method for processing homomorphic ciphertexts of claim 3,
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.

### Claim 5 (depends on 4)

The method for processing homomorphic ciphertexts of claim 4,
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.

### Claim 6 (depends on 5)

The method for processing homomorphic ciphertexts of claim 5,
wherein the approximate sign function is a function which is a result of repetitively calculating two different composite functions by three times, respectively.

### Claim 7 (depends on 3)

The method for processing homomorphic ciphertexts of claim 3,
wherein 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.

### Claim 8 (depends on 1)

The method for processing homomorphic ciphertexts of claim 1,
wherein the 5-way sorter extends plain sentence spaces of the five respective sorted homomorphic ciphertexts.

### Claim 9

A calculation device comprising:
a memory storing a plurality of homomorphic ciphertexts for an approximate message including an error; and
a processor sorting the plurality of homomorphic ciphertexts,
wherein the processor is configured to:
sort the plurality of homomorphic ciphertexts by using a 5-way sorter which can sort five homomorphic ciphertexts in a single stage.

### Claim 10 (depends on 9)

The calculation device of claim 9,
wherein the processor is configured to:
perform a parallel sorting process by using a plurality of 5-way sorters.

### Claim 11 (depends on 9)

The calculation device of claim 9,
wherein the 5-way sorter performs sorting by using a comparison function that selectively outputs a bigger value or a smaller value between two input values.

### Claim 12 (depends on 11)

The calculation device of claim 11,
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.

### Claim 13 (depends on 12)

The calculation device of claim 12,
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.

### Claim 14 (depends on 13)

The calculation device of claim 13,
wherein the approximate sign function is a function which is a result of repetitively calculating two different composite functions by three times, respectively.

### Claim 15 (depends on 11)

The calculation device of claim 11,
wherein 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.

### Claim 16 (depends on 11)

The calculation device of claim 11,
wherein the 5-way sorter extends plain sentence spaces of the five respective sorted homomorphic ciphertexts.

### Claim 17

A computer-readable recording medium including a program for executing a method for processing homomorphic ciphertexts,
wherein the method for processing homomorphic ciphertexts comprises:
receiving an input of an instruction for sorting regarding a plurality of homomorphic ciphertexts; and
sorting the plurality of homomorphic ciphertexts by using a 5-way sorter which can sort five homomorphic ciphertexts in a single stage.
