SECURE RELATIONAL ALGEBRAIC OPERATION SYSTEM, SECURE COMPUTING APPARATUS, SECURE RELATIONAL ALGEBRAIC OPERATION METHOD, AND PROGRAM
Patent Information
- Application Number
- JP2022574900
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-01-13
- Publication Date
- 2024-09-18
- Estimated Expiration
- 2041-01-13
Smart Images

Figure 0007552734000002 
Figure 0007552734000001 
Figure 0007552734000004
Abstract
Description
[Technical field]
[0001] The present invention relates to a secure computation technique, and more particularly to a technique for performing secure computation of relational algebraic operations. [Background technology]
[0002] A database management system (DBMS) is a system for storing and efficiently processing large amounts of data, and is an important platform used for data analysis and its preprocessing. When performing integrated data analysis, which is considered a promising application of secure computing, a database management system that manages the integrated data is required as a subsystem in addition to the analytical parts such as statistical analysis and machine learning.
[0003] The subject of this invention is a type of database management system known as a relational database management system (RDBMS). A relational database management system is a database management system that handles tabular data, and can search and modify data in response to queries from users. Queries are expressed in a query language based on relational algebraic operations. A representative example of such a query language is Structured Query Language (SQL).
[0004] Examples of research that reports on the implementation of database management systems using secure computation include Non-Patent Document 1 and Non-Patent Document 2. [Prior art documents] [Non-patent literature]
[0005] [Non-Patent Document 1] Naoto Kiribuchi, Dai Igarashi, "Design of a database that can be processed in a confidential state", CSS2015, pp. 419-426, 2015. [Non-Patent Document 2] Yusuke Ishida, Jun Kunii, Junichi Okeya, Yukiya Ohata, Takahiro Matsuda, Attarapadunnuttapon, Goichiro Hanaoka, "Query Ahead: Design and Implementation of a Privacy-Based Query System with Simple Expressions", SCIS2020, pp. 1-8, 2020. Summary of the Invention [Problem to be solved by the invention]
[0006] Database processing in a relational database management system can be regarded as a repetition of the composition of relational algebraic operations. Consider a composition g(f(·)) of two relational algebraic operations f and g. One method of constructing g(f(·)) using secure computation is to construct a protocol f that completely conceals each of the relational algebraic operations f and g. sec , g sec Replace with g sec (f sec One possible way to do this is to construct it like this: ([·]), where [·] indicates that the value · is encrypted.
[0007] However, there are many relational algebra operations used in database management systems that have fewer output rows than input rows (e.g., union, difference, intersection, restriction, union, summary, etc.). When implementing such relational algebra operations using secure computation while concealing the number of rows, dummy rows are inserted into the computation result. As a result, even if the number of valid rows in the computation result is small, the apparent number of output rows becomes large, which creates a problem in that the computation cost of subsequent processing on the computation result becomes large.
[0008] In view of the above technical problems, an object of the present invention is to reduce the computational cost required for securely computing the composition of relational algebraic operations. [Means for solving the problem]
[0009] In order to solve the above problems, a first aspect of the present invention is a secret relational algebra computation system that includes a plurality of secure computing devices and securely computes a composition of relational algebraic operations on an input table to be computed, and each secure computing device includes a relational algebra computation unit that securely computes a relational algebraic operation on the input table or an intermediate table, and a valid row extraction unit that generates an intermediate table by extracting valid rows from the result of the relational algebraic operation.
[0010] A second aspect of the secure computing device of the present invention is a secure computing device that securely computes a composition of relational algebraic operations on an input table that is the subject of the computation, and includes a relational algebra computation unit that securely computes a relational algebraic operation on the input table or an intermediate table, and a valid row extraction unit that generates an intermediate table by extracting valid rows from the result of the relational algebraic operation. Effect of the Invention
[0011] According to this invention, since the operation result of the preceding relational algebra operation that is input to the subsequent relational algebra operation is only valid rows, it is possible to reduce the calculation cost for securely computing the composition of relational algebra operations. [Brief description of the drawings]
[0012] [Figure 1] FIG. 1 is a diagram illustrating a functional configuration of a secret relational algebraic computation system. [Diagram 2] FIG. 2 is a diagram illustrating an example of the functional configuration of the secure computing device. [Diagram 3] FIG. 3 is a diagram illustrating a processing procedure of the secret relational algebraic computation method. [Figure 4] FIG. 4 is a diagram illustrating an example of the functional configuration of a computer. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0013] Hereinafter, an embodiment of the present invention will be described in detail. In the drawings, components having the same functions are designated by the same reference numerals, and duplicated explanations will be omitted.
[0014] [notation] The notation used in this specification is as follows. Vectors are written with lowercase alphabetic characters (e.g., x). The i-th element of vector x is x i It is represented as follows. σ(x) represents a vector obtained by permuting vector x with permutation σ. Two-dimensional arrays (tables) are represented by capital letters (for example, X). The encrypted value of value x is represented as [x]. A vector in which each element of vector x is encrypted is also represented as [x]. A table in which each element of table X is encrypted is represented as [X].
[0015] [term] The following provides definitions of terms used in this specification.
[0016] <Secret calculation> Secure computation is a general term for technology that performs a given calculation while keeping data secret. A specific implementation method is, for example, a method based on secret sharing. Secret sharing is an encryption technique in which data is divided into multiple values and distributed to multiple parties. An example of secret sharing that can be used for secure computation is (k, n) threshold secret sharing. (k, n) threshold secret sharing is a secret sharing method in which data is divided into n random values (called "shares"), and the original data can be restored by collecting k or more shares, but information about the original data cannot be obtained from shares less than k. Well-known (k, n) threshold secret sharing methods include Shamir secret sharing (see Reference 1) and cloning secret sharing (see References 2 and 3).
[0017] [References 1] Adi Shamir, "How to share a secret", Communications of the ACM, Vol. 22, No. 11, pp. 612-613, 1979. [Reference 2] Mitsuru Ito, Akira Saito, and Takao Nishizeki, "Secret sharing scheme realizing general access structure", Electronics and Communications in Japan (Part III: Fundamental Electronic Science), Vol. 72, No. 9, pp. 56-64, 1989. [Reference 3] Ronald Cramer, Ivan Damgard, and Yuval Ishai, "Share conversion, pseudorandom secret-sharing and applications to secure computation", Theory of Cryptography Conference, pp. 342-362. Springer, 2005.
[0018] In this specification, an embodiment in which data is encrypted by (k, n) threshold secret sharing, which is a form of secret sharing, is described, but in addition to secret sharing, there are also secure computations based on homomorphic encryption and Garbled Circuits. The present invention can be used without assuming a specific implementation method.
[0019] <Random substitution> Random permutation is a protocol that shuffles a one-dimensional array (vector) with a random permutation σ. Random permutation can also be applied to two-dimensional arrays (tables). In this specification, the operation of shuffling a table [X] with a hidden two-dimensional array X with a permutation σ is written as σ[X]←RANDPERM([X]). In this case, it indicates that each column of the two-dimensional array X is permuted with the same random permutation σ.
[0020] Known methods for implementing a private random permutation algorithm include, for example, those described in Reference 4. Also, Reference 4 is an algorithm based on the secret sharing scheme, but obvious methods that do not rely on the secret sharing scheme include, for example, random permutation using a logic circuit that includes random numbers.
[0021] [References 4] Dai Igarashi, Hiroki Hamada, Ryo Kikuchi, Koji Senda, "Improvement of Secure Computation Radix Sorting Aiming at 1-second Statistical Processing of Internet Environment Responses," SCIS2014, pp. 1-8, 2014.
[0022] <Restore> This is an operation to restore the secret shared value (or vector) [x] and obtain the original value (or vector) x. In this specification, this operation is written as x←REVEAL([x]).
[0023] [Embodiment] The secret relational algebraic computation system of the embodiment is an information processing system that executes a secret relational algebraic computation protocol for secretly computing a composition g(f(·)) of relational algebraic computations f and g under conditions that keep everything secret except for the number of rows. Here, the secret relational algebraic computation protocol is a general-purpose protocol that does not depend on the relational algebraic computations f and g.
[0024] In this embodiment, as such a protocol, a row reduction protocol φ that leaves only valid rows between relational algebra operations f and g is inserted, and g sec (φ(f sec ([R]))), where R∈P, P represents the class of record sets. Any operation f, g in relational algebra operations can be expressed as a mapping f, g: P→P. Therefore, if we can successfully design a row reduction protocol φ on [P] that hides the elements of P, we can unify row reduction protocols for the composition of any f, g with a single algorithm φ.
[0025] As a method for implementing such an algorithm φ, the following row reduction protocol can be mentioned. This row reduction protocol first randomly replaces the concatenation of the flag column indicating the selected rows and the table, and then publishes (restores) only the replaced flag column. Then, based on the published flags, only the rows of the randomly replaced table whose flags are true are left. Here, if the flag column is used to select valid rows from the output of the relational algebra operation f, based on the security of the secret random replacement algorithm, it is possible to leave only the valid rows without revealing anything other than the number of rows.
[0026] ===================================================================== Protocol 1: Row Reduction Protocol φ --------------------------------------------------------------------- Input: [X], [e] (where X is a table with n rows and m columns, and e is a flag column of length n with 1 stored at positions corresponding to the selected rows and 0 at other positions) Output: [X'] (where X' is a table with n' (< n) rows and m columns) 1: σ([X])||σ([e]) ← RANDPERM([X]||[e]) 2: σ(e) ← REVEAL(σ([e])) 3: σ(e i ) = 1 such that only n' records σ([X] i ) are selected to construct [X']. 4: return [X'] =====================================================================
[0027] As shown in FIG. 1, the secret relational algebra operation system 100 of the embodiment includes N (≧ 1) secret computing devices 11,..., 1 NIn the case where the system is configured with multiple (N≧2) secure computing devices, they may perform processing in cooperation with each other. In this embodiment, the secure computing devices 11, ..., 1 N are each connected to a communication network 9. The communication network 9 is a circuit-switched or packet-switched communication network configured so that each connected device can communicate with each other, and may be, for example, the Internet, a LAN (Local Area Network), or a WAN (Wide Area Network). Note that each device does not necessarily need to be able to communicate online via the communication network 9. For example, the secure computing device 1 i (i=1, . . . , N) is stored in a portable recording medium such as a magnetic tape or a USB memory, and the information is read from the portable recording medium to the secure computing device 1. i It may also be configured so that the data can be input offline.
[0028] A secure computation device 1 included in the secure relational algebra computation system 100 i 2, the secure computing device 1 includes an input unit 11, a first relational algebra calculation unit 12, a valid row extraction unit 13, a second relational algebra calculation unit 14, and an output unit 15. The valid row extraction unit 13 includes, for example, a random permutation unit 131, a flag restoration unit 132, and an intermediate table construction unit 133. i By itself or by other secure computing devices 1 i' (i'=1, . . . , N, where i ≠ i') and performing the processes in the steps described below, the secret relational algebraic operation method of the embodiment is realized.
[0029] Secret computing device 1 i The secure computing device 1 is a special device configured by loading a special program into a publicly known or dedicated computer having a central processing unit (CPU), a main memory (RAM), etc. i For example, the secure computing device 1 executes each process under the control of the central processing unit. iThe data input to the secure computing device 1 and the data obtained in each process are stored in, for example, a main memory device, and the data stored in the main memory device is read out to the central processing unit as necessary and used for other processes. i At least a part of each of the processing units may be configured by hardware such as an integrated circuit.
[0030] The procedure of the secret relational algebra calculation method executed by the secret relational algebra calculation system 100 of the embodiment will be described with reference to FIG.
[0031] In step S11, each secure computing device 1 i The input unit 11 receives the encrypted text [R] obtained by encrypting the target table R∈Ρ. The table R has n rows and m columns. The input unit 11 outputs the encrypted text [R] of the input table R to the first relational algebra operation unit 12.
[0032] In step S12, each secure computing device 1 i The first relational algebra operation unit 12 receives the encrypted text [R] of the table R from the input unit 11, and calculates the relational algebra operation f in secret. sec Calculate f sec Calculate ([R]). sec outputs ciphertext [X] which, when restored, becomes table X with n rows and m columns, and ciphertext [e] which, when restored, becomes vector e of length n. Table X is the result of relational algebra operation f on table R. Table X has one or more dummy rows inserted in it to conceal the number of rows. Vector e is a flag string in which 1s are stored in positions corresponding to valid rows in table X, and 0s are stored in other positions (i.e., dummy rows). Flag string e can be expressed as, for example, f sec may be generated when inserting a dummy row. The first relational algebra operation unit 12 outputs the encrypted text [X] of table X and the encrypted text [e] of the flag string e to the valid row extraction unit 13.
[0033] In step S13, each secure computing device 1 iThe valid row extraction unit 13 receives the ciphertext [X] of table X and the ciphertext [e] of the flag string e from the first relational algebra operation unit 12, and generates the ciphertext [X'] which becomes the intermediate table X' when restored. The intermediate table X' is a table obtained by extracting valid rows from table X according to the flag string e. The valid row extraction unit 13 outputs the ciphertext [X'] of the intermediate table X' to the second relational algebra operation unit 14.
[0034] Specifically, valid row extractor 13 executes the following steps S131 to S133 to implement the above row reduction protocol φ.
[0035] In step S131, the random permutation unit 131 permutes a table obtained by concatenating the ciphertext [X] of table X and the ciphertext [e] of the flag string e according to the random permutation σ. That is, σ([X])||σ([e])←RANDPERM([X]||[e]) is executed.
[0036] In step S132, the flag restoration unit 132 restores the flag sequence σ[e] after the random substitution, that is, executes σ(e)←REVEAL(σ([e])).
[0037] In step S133, the intermediate table construction unit 133 constructs the ciphertext [X'] of the intermediate table X' from the table σ([X]) after random permutation according to the restored flag sequence e. Specifically, for i=1, ..., n, σ(e i )=1 for the row σ[X i ] is extracted and output as the ciphertext [X'] of the intermediate table X'.
[0038] In step S14, each secure computing device 1 i The second relational algebra operation unit 14 receives the ciphertext [X'] of the intermediate table X' from the valid row extraction unit 13, and calculates the relational algebra operation g in secret. sec That is, g sec Calculate ([X']). g secoutputs a ciphertext [R'] which, when restored, becomes table R' with n' rows and m columns. Table R' is the result of a relational algebra operation g on intermediate table X', and is also the result of a combination of relational algebra operations f and g on input table R. Table R' may have one or more dummy rows inserted to conceal the number of rows. There may also be cases where all rows of table R' are valid rows and no dummy rows are inserted. The second relational algebra operation unit 14 outputs the ciphertext [R'] of table R' to the output unit 15.
[0039] In step S15, each secure computing device 1 i The output unit 15 receives the encrypted text [R′] of table R′ from the second relational algebra operation unit 14 , and outputs it from the secure relational algebra operation system 100 .
[0040] [Variations] Although the secret relational algebra computation system 100 of the embodiment is configured to calculate the composition g(f(·)) of the relational algebra computations f and g once, it is also possible to realize any query by repeating the composition of the relational algebra computations. In this case, the second relational algebra computation unit 14 outputs the ciphertext [e] of the flag string e indicating the valid rows of the table R' together with the ciphertext [R'] of the table R' to the valid row extraction unit 13. Thereafter, the processes of the valid row extraction unit 13 and the second relational algebra computation unit 14 are repeatedly executed until the desired query is completed. Then, when the desired query is completed, the second relational algebra computation unit 14 outputs the ciphertext [R'] of the table R' at that time to the output unit 15.
[0041] [effect] If the result of a relational algebra operation inputted to a subsequent relational algebra operation is only valid rows, the information on the number of rows cannot be kept secret. However, since the number of rows in the result of a relational algebra operation can be regarded as a statistical value, the impact of privacy leakage is considered to be small. On the other hand, by reducing the number of rows to be inputted, it is expected that the performance of the subsequent relational algebra operation will be significantly improved. For example, even if only one row out of 10 million rows of output of a relational algebra operation is valid, if the number of rows is also kept secret, it is inevitable that 10 million rows of data will be inputted to the subsequent relational algebra operation by definition. On the other hand, according to the configuration of the present invention, only one row will be inputted to the subsequent relational algebra operation, and the number of input rows can be reduced to 1 / 10 million. In fact, as a result of executing the above-mentioned row reduction protocol φ in a three-party multi-party computing system, it has been confirmed that the overhead is sufficiently small compared to the execution time that can be reduced, and that it is effective in reducing the execution time.
[0042] It is an unexpected result that all combinations of very general-purpose processing such as databases can be covered by simply inserting one row reduction protocol φ, as in the present invention. In fact, although the processing used in the configuration itself is mentioned in multiple documents, there is no mention of it relating to the present invention, and the configuration of the present invention is not known to those skilled in the art.
[0043] Although the embodiments of the present invention have been described above, the specific configuration is not limited to these embodiments, and it goes without saying that the present invention includes appropriate design changes and the like within the scope of the gist of the present invention. The various processes described in the embodiments are not only executed in chronological order according to the order described, but may also be executed in parallel or individually depending on the processing capacity of the device executing the processes or as necessary.
[0044] [Programs, recording media] When the various processing functions of each device described in the above embodiment are realized by a computer, the processing contents of the functions that each device should have are described by a program. Then, the various processing functions of each device are realized on the computer by loading this program into the storage unit 1020 of the computer shown in Fig. 4 and operating the arithmetic processing unit 1010, the input unit 1030, the output unit 1040, etc.
[0045] The program describing the processing contents can be recorded on a computer-readable recording medium. The computer-readable recording medium is, for example, a non-transitory recording medium, such as a magnetic recording device or an optical disk.
[0046] The program may be distributed, for example, by selling, transferring, lending, etc. portable recording media such as DVDs and CD-ROMs on which the program is recorded. Furthermore, the program may be distributed by storing the program in a storage device of a server computer and transferring the program from the server computer to other computers via a network.
[0047] A computer that executes such a program, for example, first stores a program recorded on a portable recording medium or a program transferred from a server computer in the auxiliary recording unit 1050, which is a non-transient storage device of the computer. Then, when executing a process, the computer reads the program stored in the auxiliary recording unit 1050, which is a non-transient storage device, into the storage unit 1020, which is a temporary storage device, and executes a process according to the read program. As another execution form of the program, the computer may directly read the program from the portable recording medium and execute a process according to the program, or may execute a process according to the received program each time a program is transferred from the server computer to the computer. Alternatively, the server computer may not transfer the program to the computer, but may execute the above-mentioned process by a so-called ASP (Application Service Provider) type service that realizes a processing function only by issuing an execution instruction and obtaining a result. Note that the program in this embodiment includes information used for processing by an electronic computer and equivalent to a program (data that is not a direct instruction to a computer but has a nature that specifies the processing of a computer, etc.).
[0048] In addition, in this embodiment, the present device is configured by executing a specific program on a computer, but at least a part of the processing contents may be realized by hardware.
Claims
1. A secure relational algebra computation system including a plurality of secure computation devices, which performs secure computation of a composition of relational algebraic computations on an input table to be computed, Each secure computing device is a relational algebra calculation unit that performs secret calculation of the relational algebraic calculation on the input table or the intermediate table, and outputs an encryption flag string indicating valid rows in the calculation result together with a calculation result of the relational algebraic calculation; a row permutation unit that performs secret calculation on a table in which the calculation result and the encryption flag string are concatenated, and a valid position calculation unit that obtains a position of a valid row in the operation result after row permutation by using the encryption flag string after row permutation; an intermediate table constructing unit that constructs the intermediate table by extracting valid rows from the operation result after the row permutation according to the positions of the valid rows; A secret relational algebra system including:
2. 2. The secret relational algebra computation system of claim 1, comprising: the secret relational algebra computation system secretly computes an arbitrary query by repeating a composition of relational algebraic operations on the input table; repeating the processes of the relational algebra operation unit, the row replacement unit, the valid position calculation unit, and the intermediate table construction unit until the arbitrary query is completed; A secret relational algebra system.
3. 2. The secret relational algebra computation system of claim 1, comprising: The row permutation, the permutation content of which is secret, is a random permutation, The valid position calculation unit recovers the encryption flag string to obtain the position of a valid row. A secret relational algebra system.
4. A secure computation device that performs secure computation of a composition of relational algebraic operations on an input table to be computed, comprising: a relational algebra calculation unit that performs secret calculation of the relational algebraic calculation on the input table or the intermediate table, and outputs an encryption flag string indicating valid rows in the calculation result together with a calculation result of the relational algebraic calculation; a row permutation unit that performs secret calculation on a table in which the calculation result and the encryption flag string are concatenated, and a valid position calculation unit that obtains a position of a valid row in the operation result after row permutation by using the encryption flag string after row permutation; an intermediate table constructing unit that constructs the intermediate table by extracting valid rows from the operation result after the row permutation according to the positions of the valid rows; A secure computing device comprising:
5. A secret relational algebra computation method for secretly computing a composition of relational algebra operations on an input table to be computed, the method being executed by a secret relational algebra computation system including a plurality of secure computation devices, comprising: a relational algebra calculation unit of each secure computing device performs the relational algebra calculation on the input table or the intermediate table in a secret manner, and outputs an encryption flag string indicating a valid row in the calculation result together with a calculation result of the relational algebra calculation in a secret manner; a row permutation unit of each secure computing device performs secure computation on a table in which the computation result and the encryption flag string are concatenated, the permutation content of the row permutation being secret; a validity position calculation unit of each secure computing device obtains a valid row position in the computation result after row permutation using the encryption flag string after row permutation; an intermediate table construction unit of each secure computing device constructs the intermediate table by extracting valid rows from the computation result after the row permutation according to the positions of the valid rows; Secret relational algebraic operations method.
6. A secret relational algebra computation method for secretly computing a composition of relational algebra operations on an input table to be computed, the method being executed by a single secure computing device, comprising: a relational algebra operation unit secretly performs the relational algebra operation on the input table or the intermediate table, and outputs an encryption flag string indicating valid rows in the operation result together with a result of the secret calculation of the relational algebra operation; a row permutation unit performs a secret computation on a table obtained by concatenating the operation result and the encryption flag string, the permutation content of which is secret; a valid position calculation unit obtains a position of a valid row in the operation result after row permutation by using the encryption flag string after row permutation; an intermediate table construction unit constructs the intermediate table by extracting valid rows from the operation result after the row permutation according to the positions of the valid rows; Secret relational algebraic operations method.
7. 7. A program for causing a computer to execute each step of the secret relational algebraic computation method according to claim 5 or 6.
Citation Information
Patent Citations
Secure multiparty computation of shuffle, sort, and set operations
US20200242234A1
