Source code compiling method and ciphertext calculation instruction code executing method and device

By identifying and determining specified strings in the ciphertext computation source code through instruction set compilation methods, and compiling them into ciphertext computation instruction codes, the problem of low compilation and execution efficiency of ciphertext computation source code is solved, achieving efficient ciphertext computation that is applicable to various ciphertext computation engines.

CN115794109BActive Publication Date: 2026-07-17HUAKONG TSINGJIAO INFORMATION SCI BEIJING LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
HUAKONG TSINGJIAO INFORMATION SCI BEIJING LTD
Filing Date
2022-11-15
Publication Date
2026-07-17

AI Technical Summary

Technical Problem

Among existing multi-party secure computation technologies, the compilation and execution efficiency of encrypted computation source code is relatively low, making it difficult to efficiently share and compute data while protecting privacy information.

Method used

It adopts an instruction set compilation method to identify the specified strings in the ciphertext calculation source code, and determines the corresponding instructions according to the instruction set, compiling them into ciphertext calculation instruction codes, including in-place calculation, unary calculation, binary calculation, ternary calculation, positional operation and memory operation instructions, supporting operand types such as Clabel and MemoryData, and is suitable for different ciphertext calculation engines.

Benefits of technology

It improves the compilation and execution efficiency of ciphertext computation source code, simplifies the programming process, reduces statement analysis, eliminates variable coupling, improves code optimization efficiency, and supports the execution of multiple ciphertext computation engines.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115794109B_ABST
    Figure CN115794109B_ABST
Patent Text Reader

Abstract

The application discloses a source code compiling method and ciphertext calculation instruction code executing method and device, relates to the technical field of multi-party secure computation, and comprises the following steps: identifying each specified string contained in ciphertext calculation source code to be compiled; determining the instruction corresponding to each specified string identified from an instruction set; and compiling the source code content covered by the specified string into instruction code according to the instruction corresponding to the specified string based on the source code content covered by the specified string; wherein the instruction set at least includes in-place calculation instruction, unary calculation instruction and binary calculation instruction, and the type of the operand of the instruction in the instruction set at least includes Clabel type, which represents a label pointing to a piece of ciphertext data. By adopting the scheme, the efficiency of the compilation and execution of the ciphertext calculation source code is improved.
Need to check novelty before this filing date? Find Prior Art