# US 2025/0167980 A1 · Data processing methods and systems for encrypted database

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

- Number: US 2025/0167980 A1
- Document ID: US20250167980A1
- Status: Published application
- Kind: A1
- Application number: 18/947,659
- Filed: 2024-11-14
- Published: 2025-05-22
- Earliest claimed: 2023-11-16
- Assignees: Alipay (Hangzhou) Information Technology Co., Ltd.
- Applicants: Alipay (Hangzhou) Information Technology Co., Ltd.
- Inventors: Yixuan Song; Yinchao Zou
- Web page: https://patentgrep.com/patent/US20250167980A1

## CPC

- H04L 9/0618: {Block ciphers, i.e. encrypting groups of characters of a plain text message using fixed encryption transformation}
- G06F 21/602: {Providing cryptographic facilities or services}
- G06F 21/6218: {to a system of files or objects, e.g. local or distributed file system or database}
- G06F 21/6227: {where protection concerns the structure of data, e.g. records, types, queries}
- H04L 9/008: {involving homomorphic encryption}
- 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

A data processing method for an encrypted database is performed by a heterogeneous processing platform including a first computing unit implemented by a general processing unit and a second computing unit implemented by a dedicated acceleration unit. The method includes: obtaining, by the first computing unit, a ciphertext parameter and a database instruction from a user end device, where the database instruction instructs to perform a target operation on the encrypted database; converting the database instruction into a computing instruction to be executed by the second computing unit, and transmitting the computing instruction to the second computing unit; performing, by the second computing unit according to the computing instruction, a cryptographic operation corresponding to the target operation on ciphertext data in the encrypted database and the ciphertext parameter, to obtain a ciphertext result; and transmitting, by the second computing unit, the ciphertext result to the first computing unit.

## Claims

### Claim 1

A data processing method for an encrypted database, wherein the method is performed by a heterogeneous processing platform including a first computing unit implemented by a general processing unit and a second computing unit implemented by a dedicated acceleration unit, and the method comprises:
obtaining, by the first computing unit, a ciphertext parameter and a database instruction from a user end device, wherein the database instruction instructs to perform a target operation on the encrypted database;
converting, by the first computing unit, the database instruction into a computing instruction to be executed by the second computing unit, and transmitting the computing instruction to the second computing unit;
performing, by the second computing unit according to the computing instruction, a cryptographic operation corresponding to the target operation on ciphertext data in the encrypted database and the ciphertext parameter, to obtain a ciphertext result; and
transmitting, by the second computing unit, the ciphertext result to the first computing unit.

### Claim 2 (depends on 1)

The method according to claim 1, wherein before the performing, by the second computing unit according to the computing instruction, the cryptographic operation corresponding to the target operation on ciphertext data in the encrypted database and the ciphertext parameter, the method further comprises:
reading, by the first computing unit, the ciphertext data from the encrypted database based on the database instruction, and transmitting the ciphertext data and the ciphertext parameter to the second computing unit.

### Claim 3 (depends on 1)

The method according to claim 1, wherein before the performing, by the second computing unit according to the computing instruction, the cryptographic operation corresponding to the target operation on the ciphertext data in the encrypted database and the ciphertext parameter, the method further comprises:
transmitting, by the first computing unit, a read instruction determined based on the database instruction to the second computing unit; and
reading, by the second computing unit, the ciphertext data from the encrypted database according to the read instruction.

### Claim 4 (depends on 1)

The method according to claim 1, wherein after the transmitting, by the second computing unit, the ciphertext result to the first computing unit, the method further comprises:
storing, by the first computing unit, the ciphertext result in the encrypted database; or
sending, by the first computing unit, the ciphertext result to the user end device.

### Claim 5 (depends on 1)

The method according to claim 1, wherein the first computing unit is a central processing unit (CPU), and the second computing unit is at least one of a graphics processing unit (GPU), a field programmable gate array (FPGA), or an application-specific integrated circuit (ASIC).

### Claim 6 (depends on 1)

The method according to claim 1, wherein the encrypted database is a homomorphically encrypted database, and the cryptographic operation is a homomorphic operation.

### Claim 7 (depends on 1)

The method according to claim 1, wherein the user end device has a public key and a corresponding private key, the ciphertext parameter is obtained after a user parameter is encrypted by using the public key, and the private key is used to decrypt the ciphertext result.

### Claim 8 (depends on 7)

The method according to claim 7, further comprising:
obtaining, by the first computing unit, an auxiliary key from the user end device, and transmitting the auxiliary key to the second computing unit; and
performing, by the second computing unit, the cryptographic operation based on the auxiliary key.

### Claim 9 (depends on 6)

The method according to claim 6, wherein the second computing unit is a graphics processing unit (GPU) or an AI accelerator chip that is applicable for a matrix operation, the cryptographic operation comprises a fully homomorphic encryption operation implemented based on a fast number-theoretic transform (NTT), and the NTT is implemented by using the matrix operation.

### Claim 10 (depends on 1)

The method according to claim 1, wherein the first computing unit is a central processing unit (CPU), and the second computing unit is a graphics processing unit (GPU); and
the performing, by the second computing unit according to the computing instruction, a cryptographic operation corresponding to the target operation on ciphertext data in the encrypted database and the ciphertext parameter comprises:
storing, by the second computing unit, the ciphertext data and the ciphertext parameter in a graphics memory based on the computing instruction; and
reading, by the second computing unit, the ciphertext data and the ciphertext parameter from the graphics memory, to perform the cryptographic operation to obtain the ciphertext result.

### Claim 11

A data processing system for an encrypted database, comprising:
at least one processor; and
at least one memory storing instructions executable by the at least one processor,
wherein the at least one processor comprises a first computing unit implemented by a general processing unit and a second computing unit implemented by a dedicated acceleration unit, and is configured to:
obtain, by the first computing unit, a ciphertext parameter and a database instruction from a user end device, wherein the database instruction instructs to perform a target operation on the encrypted database;
convert, by the first computing unit, the database instruction into a computing instruction to be executed by the second computing unit, and transmit the computing instruction to the second computing unit;
perform, by the second computing unit according to the computing instruction, a cryptographic operation corresponding to the target operation on ciphertext data in the encrypted database and the ciphertext parameter, to obtain a ciphertext result; and
transmit, by the second computing unit, the ciphertext result to the first computing unit.

### Claim 12 (depends on 11)

The system according to claim 11, wherein before performing, by the second computing unit according to the computing instruction, the cryptographic operation corresponding to the target operation on ciphertext data in the encrypted database and the ciphertext parameter, the at least one processor is further configured to:
read, by the first computing unit, the ciphertext data from the encrypted database based on the database instruction, and transmit the ciphertext data and the ciphertext parameter to the second computing unit.

### Claim 13 (depends on 11)

The system according to claim 11, wherein before performing, by the second computing unit according to the computing instruction, the cryptographic operation corresponding to the target operation on the ciphertext data in the encrypted database and the ciphertext parameter, the at least one processor is further configured to:
transmit, by the first computing unit, a read instruction determined based on the database instruction to the second computing unit; and
read, by the second computing unit, the ciphertext data from the encrypted database according to the read instruction.

### Claim 14 (depends on 11)

The system according to claim 11, wherein after transmitting, by the second computing unit, the ciphertext result to the first computing unit, the at least one processor is further configured to:
store, by the first computing unit, the ciphertext result in the encrypted database; or
send, by the first computing unit, the ciphertext result to the user end device.

### Claim 15 (depends on 11)

The system according to claim 11, wherein the first computing unit is a central processing unit (CPU), and the second computing unit is at least one of a graphics processing unit (GPU), a field programmable gate array (FPGA), or an application-specific integrated circuit (ASIC).

### Claim 16 (depends on 11)

The system according to claim 11, wherein the encrypted database is a homomorphically encrypted database, and the cryptographic operation is a homomorphic operation.

### Claim 17 (depends on 11)

The system according to claim 11, wherein the user end device has a public key and a corresponding private key, the ciphertext parameter is obtained after a user parameter is encrypted by using the public key, and the private key is used to decrypt the ciphertext result.

### Claim 18 (depends on 17)

The system according to claim 17, wherein the at least one processor is further configured to:
obtain, by the first computing unit, an auxiliary key from the user end device, and transmit the auxiliary key to the second computing unit; and
perform, by the second computing unit, the cryptographic operation based on the auxiliary key.

### Claim 19 (depends on 16)

The system according to claim 16, wherein the second computing unit is a graphics processing unit (GPU) or an AI accelerator chip that is applicable for a matrix operation, the cryptographic operation comprises a fully homomorphic encryption operation implemented based on a fast number-theoretic transform (NTT), and the NTT is implemented by using the matrix operation.

### Claim 20 (depends on 11)

The system according to claim 11, wherein the first computing unit is a central processing unit (CPU), and the second computing unit is a graphics processing unit (GPU); and
the at least one processor is further configured to:
store, by the second computing unit, the ciphertext data and the ciphertext parameter in a graphics memory based on the computing instruction; and
read, by the second computing unit, the ciphertext data and the ciphertext parameter from the graphics memory, to perform the cryptographic operation to obtain the ciphertext result.
