Homomorphic cyclic calculation system, homomorphic cyclic calculation device, homomorphic cyclic calculation method, and homomorphic cyclic calculation program

The homomorphic cyclic arithmetic system addresses the challenge of performing cyclic operations on encrypted data by shifting the storage location within a periodic array, reducing computational costs and improving practicality.

JP7563607B2Active Publication Date: 2024-10-08NEC CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
JP2023537870
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2021-07-29
Publication Date
2024-10-08
Estimated Expiration
2041-07-29

AI Technical Summary

Technical Problem

Existing homomorphic encryption systems struggle to perform cyclic operations on encrypted data without decrypting the periodic array, leading to high computational costs and difficulties in practical implementation.

Method used

A homomorphic cyclic arithmetic system that shifts the storage location of encrypted data within a periodic array using homomorphic encryption, defined for at least one multiplication, by generating a ciphertext from a polynomial of an indefinite element and applying a shift amount to the ciphertext.

Benefits of technology

Enables cyclic operations on encrypted data without decryption, reducing computational costs and enhancing the practicality of homomorphic encryption systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007563607000013
    Figure 0007563607000013
  • Figure 0007563607000014
    Figure 0007563607000014
  • Figure 0007563607000015
    Figure 0007563607000015
Patent Text Reader

Abstract

This homomorphic cyclic operation system performs a homomorphic cyclic operation on a periodic array of data using homomorphic encryption in which a homomorphic operation is defined with respect to at least one multiplication, and comprises: an encryption device that stores, in a coefficient of a polynomial in an indeterminate, and encrypts the periodic array of data to generate ciphertext of periodic data; and a homomorphic cyclic operation device that shifts the periodic array of data in the ciphertext of the periodic data by causing powers of a shift amount of the indeterminate to act on the ciphertext of the periodic data.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a homomorphic cyclic arithmetic system, a homomorphic cyclic arithmetic device, a homomorphic cyclic arithmetic method, and a homomorphic cyclic arithmetic program. [Background technology]

[0002] One type of encryption technology is homomorphic encryption. Homomorphic encryption is a technology that, when ciphertexts Enc(m1) and Enc(m2) of plaintexts m1 and m2 are given, it is possible to calculate the ciphertext Enc(m1○m2) of the binary operation m1○m2 of plaintexts m1 and m2 without decrypting it to plaintexts m1 and m2. Here, "○" is a binary operation, such as addition "+" or multiplication "×". Homomorphic encryption for addition "+" is called additive homomorphic encryption. Homomorphic encryption that is also homomorphic for multiplication "×" is called fully homomorphic encryption.

[0003] Fully homomorphic encryption has the best properties because it is homomorphic with respect to addition and multiplication as well. However, fully homomorphic encryption requires a large amount of calculations, which makes it difficult to put into practical use. Therefore, homomorphic encryption with intermediate properties between additive homomorphic encryption and fully homomorphic encryption has also been developed. For example, an encryption method called "Somewhat homomorphic encryption" is a homomorphic encryption method that has homomorphism with respect to a finite number of additions and multiplications (for example, see Non-Patent Document 1). [Prior art documents] [Non-patent literature]

[0004] [Non-Patent Document 1] Yasuda M., Shimoyama T., Kogure J., Yokoyama K., Koshiba T. (2013) Packed Homomorphic Encryption Based on Ideal Lattices and Its Application to Biometrics. In: Cuzzocrea A., Kittl C., Simos DE, Weippl E., Xu L. (eds) Security Engineering and Intelligence Informatics. CD-ARES 2013. Lecture Notes in Computer Science, vol 8128. Springer, Berlin, Heidelberg. Summary of the Invention [Problem to be solved by the invention]

[0005] The disclosures of the above-mentioned prior art documents are incorporated herein by reference. The following analysis has been carried out by the present inventors.

[0006] Incidentally, in real computer systems, it is common to provide not only addition and multiplication but also other commonly used operations. This is because it is more convenient to provide users with a predetermined operation as a protocol, even if the operation is theoretically realized as a combination of addition and multiplication. An example of such an operation is a cyclic operation. A cyclic operation is an operation that moves the storage location of a cyclic array of data while maintaining the order of the data. An operation that moves the storage location while maintaining the order of the data is generally called a shift, and a cyclic operation is an operation that shifts a cyclic array.

[0007] Of course, to perform cyclic operations in a homomorphic encryption system, it is necessary not only to realize cyclic operations but also to shift the storage location of data without decrypting the periodic array of encrypted data. And to perform cyclic operations in homomorphic encryption, it is also necessary to deal with the computational cost, which is a problem unique to homomorphic encryption.

[0008] In view of the above-mentioned problems, an object of the present invention is to provide a homomorphic cyclic arithmetic system, a homomorphic cyclic arithmetic device, a homomorphic cyclic arithmetic method, and a homomorphic cyclic arithmetic program that shift the storage location of data without decrypting the periodic arrangement of encrypted data. [Means for solving the problem]

[0009] In a first aspect of the present invention, there is provided a homomorphic cyclic arithmetic system that performs homomorphic cyclic arithmetic on a periodic array of data using homomorphic encryption in which homomorphic arithmetic is defined with respect to at least one multiplication, the homomorphic cyclic arithmetic system comprising: an encryption device that stores the periodic array of data in coefficients of a polynomial of an indeterminate element and encrypts it to generate an encrypted text of periodic data; and a homomorphic cyclic arithmetic device that shifts the periodic array of data in the encrypted text of the periodic data by applying the encrypted text of the periodic data to the power of a shift amount of the indeterminate element.

[0010] In a second aspect of the present invention, there is provided a homomorphic cyclic arithmetic device that performs homomorphic cyclic arithmetic on a periodic array of data using homomorphic encryption in which homomorphic arithmetic is defined with respect to at least one multiplication, and that shifts the periodic array of data in the encrypted text of the periodic data by applying a power of a shift amount of the indeterminate to the encrypted text generated by storing the periodic array of data in coefficients of a polynomial of an indeterminate element and encrypting the generated text.

[0011] In a third aspect of the present invention, there is provided a homomorphic cyclic operation method for performing homomorphic cyclic operation on a periodic array of data using homomorphic encryption in which homomorphic operation is defined with respect to at least one multiplication, the homomorphic cyclic operation method comprising the steps of: generating an encrypted text of periodic data by storing the periodic array of data in coefficients of a polynomial of an indeterminate element and encrypting the stored data; and shifting the periodic array of data in the encrypted text of the periodic data by applying the encrypted text of the periodic data to the power of a shift amount of the indeterminate element.

[0012] In a fourth aspect of the present invention, there is provided a program for causing a computer to perform homomorphic cyclic operation on a periodic array of data using homomorphic encryption in which homomorphic operation is defined for at least one multiplication, the program shifting the periodic array of data in the encrypted text of the periodic data by applying a power of a shift amount of the indeterminate to the encrypted text generated by storing the periodic array of data in coefficients of a polynomial of an indeterminate element and encrypting the coefficients. The program can be recorded in a computer-readable storage medium. The storage medium can be a non-transient medium such as a semiconductor memory, a hard disk, a magnetic recording medium, or an optical recording medium. The present invention can also be embodied as a computer program product. Effect of the Invention

[0013] According to each aspect of the present invention, it is possible to provide a homomorphic cyclic arithmetic system, a homomorphic cyclic arithmetic device, a homomorphic cyclic arithmetic method, and a homomorphic cyclic arithmetic program that shift the storage location of data without decrypting the periodic array of encrypted data. [Brief description of the drawings]

[0014] [Figure 1] FIG. 1 is a block diagram showing a schematic configuration example of a homomorphic cyclic arithmetic system according to the first embodiment. [Diagram 2]FIG. 2 is a block diagram showing a schematic configuration example of a homomorphic cyclic arithmetic device according to the first embodiment. [Diagram 3] FIG. 3 is a system flowchart of the system according to the first embodiment. [Figure 4] FIG. 4 is a diagram illustrating an example of a hardware configuration of a homomorphic cyclic arithmetic device. [Diagram 5] FIG. 5 is a diagram showing the concept of secure calculation of the similarity of heterocyclic compounds. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0015] Hereinafter, an embodiment of the present invention will be described with reference to the drawings. However, the present invention is not limited to the embodiment described below. In addition, in each drawing, the same or corresponding elements are appropriately assigned the same reference numerals. Furthermore, it should be noted that the drawings are schematic, and the dimensional relationship of each element, the ratio of each element, etc. may differ from the actual ones. There may also be parts in which the dimensional relationship and ratio differ between the drawings.

[0016] [First embodiment] A homomorphic cyclic arithmetic system according to a first embodiment will be described below with reference to Figures 1 and 2. The first embodiment is an embodiment for explaining only the basic concept of the present invention.

[0017] FIG. 1 is a block diagram showing a schematic configuration example of a homomorphic cyclic arithmetic system according to the first embodiment. As shown in FIG. 1, a homomorphic cyclic arithmetic system 100 according to the first embodiment includes an encryption device 110 and a homomorphic cyclic arithmetic device 120. The encryption device 110 and the homomorphic cyclic arithmetic device 120 are information processing devices (computers) whose hardware configurations will be exemplified later. The encryption device 110 and the homomorphic cyclic arithmetic device 120 may be connected by wired communication or wireless communication. For example, the encryption device 110 may be a general-purpose personal computer or a mobile terminal such as a smartphone.

[0018] A homomorphic cyclic arithmetic system 100 according to a first embodiment shown in Fig. 1 is capable of encrypting a data array and is for performing cyclic arithmetic on a periodic array of data using homomorphic encryption in which homomorphic arithmetic is defined for at least one multiplication. An encryption device 110 generates an encrypted text of periodic data by storing the periodic array of data in coefficients of a polynomial of an indeterminate element and encrypting the stored data, and a homomorphic cyclic arithmetic device 120 shifts the periodic array of data in the encrypted text of the periodic data by applying a power of a shift amount of the indeterminate element to the encrypted text of the periodic data.

[0019] Note that the homomorphic cyclic arithmetic device 120 shifts the periodic arrangement of data without decrypting it. Therefore, the output of the homomorphic cyclic arithmetic device 120 is also a ciphertext. There are various ways to use the obtained ciphertext, such as the embodiments exemplified later, but if a decryption device for decrypting the obtained ciphertext is provided separately from the homomorphic cyclic arithmetic device 120, the private key and the public key of the homomorphic encryption can be managed separately in different devices, which is preferable since it enhances security.

[0020] The homomorphic encryption used in the first embodiment can encrypt a data array and can use a homomorphic operation defined for at least one multiplication. Although not directly used in the embodiment, it is preferable that a homomorphic operation is also defined for addition. That is, the homomorphic encryption used in the first embodiment defines homomorphic addition and homomorphic multiplication that satisfy the following relational expressions. Homomorphic addition HomAdd(Enc(m), Enc(m′))=Enc(m+m′) Homomorphic multiplication HomMul(Enc(m), Enc(m′))=Enc(m*m′)

[0021] Fig. 2 is a block diagram showing a schematic configuration example of a homomorphic cyclic arithmetic device in the first embodiment. As shown in Fig. 2, the homomorphic cyclic arithmetic device 120 includes a storage unit 121, a receiving unit 122, and a calculation unit 123. The storage unit 121 stores various information used in relation to the homomorphic cyclic arithmetic and the homomorphic cyclic arithmetic. The receiving unit 122 receives the ciphertext of the cyclic data from the encryption device 110. The calculation unit 123 performs cyclic arithmetic on the ciphertext of the cyclic data using the homomorphic arithmetic without decrypting it.

[0022] Next, the processing between the encryption device 110 and the homomorphic cyclic calculation device 120 will be described with reference to Fig. 3. Fig. 3 is a system flowchart of the system in the first embodiment. The system flowchart shown in Fig. 3 shows the procedure of a homomorphic cyclic calculation method that can encrypt a data array and performs homomorphic cyclic calculation on a periodic array of data using homomorphic encryption in which homomorphic calculation is defined for at least one multiplication.

[0023] In step S1, the encryption device 110 generates a ciphertext of cyclic data by storing a cyclic sequence of data in coefficients of an indeterminate polynomial and encrypting the data. The generated ciphertext of cyclic data is transmitted from the encryption device 110 to the homomorphic cyclic arithmetic device 120.

[0024] In step S2, the homomorphic cyclic arithmetic device 120 applies a power of an indeterminate element to the ciphertext of the cyclic data received from the encryption device 110 to shift the cyclic sequence of data in the ciphertext of the cyclic data.

[0025] The encrypted text obtained in step S2 can be used in a variety of ways, including the embodiments exemplified below.

[0026] [Hardware configuration example] 4 is a diagram illustrating an example of a hardware configuration of a homogeneous cyclic arithmetic device. That is, the hardware configuration example illustrated in FIG.

[0027] An information processing device (computer) employing the hardware configuration shown in Fig. 4 executes the homomorphic cyclic arithmetic method described above as a program, thereby enabling each function of the homomorphic cyclic arithmetic device 120 to be realized. However, the hardware configuration example shown in Fig. 4 is an example of a hardware configuration for realizing each function of the homomorphic cyclic arithmetic device 120, and is not intended to limit the hardware configuration of the homomorphic cyclic arithmetic device 120. The homomorphic cyclic arithmetic device 120 may include hardware not shown in Fig. 4.

[0028] As shown in FIG. 4, a hardware configuration 10 that can be adopted by a homomorphic cyclic arithmetic device 120 includes a CPU (Central Processing Unit) 11, a main memory device 12, an auxiliary memory device 13, and an IF (Interface) unit 14, which are interconnected by, for example, an internal bus.

[0029] The CPU 11 executes each command included in the homomorphic cyclic arithmetic program executed by the homomorphic cyclic arithmetic device 120. The main storage device 12 is, for example, a RAM (Random Access Memory), and temporarily stores various programs such as the homomorphic cyclic arithmetic program executed by the homomorphic cyclic arithmetic device 120 for processing by the CPU 11.

[0030] The auxiliary storage device 13 is, for example, a hard disk drive (HDD), and can store various programs such as the homomorphic cyclic arithmetic program executed by the homomorphic cyclic arithmetic device 120 in the medium to long term. Various programs such as the homomorphic cyclic arithmetic program can be provided as a program product recorded in a non-transitory computer-readable storage medium. The auxiliary storage device 13 can be used to store various programs such as the homomorphic cyclic arithmetic program recorded in the non-transitory computer-readable storage medium in the medium to long term. The IF unit 14 provides an interface for input / output between the homomorphic cyclic arithmetic device 120 and the encryption device 110, for example.

[0031] An information processing device employing the above-described hardware configuration 10 realizes each function of the homomorphic cyclic arithmetic device 120 by executing the homomorphic cyclic arithmetic method described above as a program.

[0032] As described above, the homomorphic cyclic arithmetic system in the first embodiment can contribute to shifting the storage location of data without decrypting the periodic array of encrypted data. In addition, the homomorphic cyclic arithmetic system in the first embodiment can be implemented as a homomorphic cyclic arithmetic method, and the homomorphic cyclic arithmetic method in the first embodiment can also be implemented as a program executed by an information processing device (computer) having the above-mentioned hardware configuration.

[0033] [Second embodiment] A homomorphic cyclic operation system according to the second embodiment will be described below. In the second embodiment, a method for performing homomorphic cyclic operation on a periodic array of data will be described while illustrating the homomorphic encryption used in the first embodiment. The homomorphic encryption described below can encrypt an array of data, and homomorphic operation is defined for at least one multiplication.

[0034] First, one period of a periodic array of data can be considered as a vector. Then, vector a=(a0, a1, … , a n-1 ) and polynomial a(x)=Σ i=0 n-1 a i * x i can be identified. By this identification, vector a=(a0, a1, … , a n-1 ) and vector b=(b0, b1, … , b n-1 ) contains the multiplication a(x) * b(x) as a polynomial and the dot product as a vector<a, b> =Σ i=0 n-1 a i * b i is defined.

[0035] Here, the noise vector u=(u0, u1, … , un-1 ) is prepared. i (i=0,1,…n-1) is one of {0, 1, -1}. i The probability of u = 0 is q, and i The probability of u = 1 is (1-q) / 2. i The probability of =-1 is (1-q) / 2.

[0036] This noise vector u=(u0, u1, … , u n-1 ), the plaintext vector m=(m0, m1, … , m n-1 ) is defined as follows:

[0037]

number

[0038] In the above definition of the ciphertext, t is the space size of the plaintext, d is the space size of the ciphertext, and r is a binary number. n = -1 mod d. Also, [ ] d is a reduction to the interval [-d / 2, d / 2), i.e. a reduction such that when divided by d, the remainder is in the interval [-d / 2, d / 2).

[0039] The above ciphertext is a noise vector u=(u0, u1, … , u n-1 ) and plaintext vector m=(m0, m1, … , m n-1 ) into polynomials u(x)=Σ i=0 n-1 u i * x i and polynomial m(x)=Σ i=0 n-1 m i * x i If we consider this, it can be seen as follows:

[0040]

number

[0041] Next, we show that the ciphertext defined in this way is homomorphic encrypted.

[0042] Homomorphic addition For the ciphertexts Enc(m(x)) and Enc(m'(x)) of plaintext vectors m(x) and m'(x) expressed as polynomials, additive homomorphism holds as shown below. [Enc(m(x))+Enc(m′(x))] d =[[m(r)+t*u(r)] d +[m′(r)+t*u′(r)] d ] d =[[m(r)+ m′(r)+t*(u(r)+ u′(r))] d =Enc(m(x)+m′(x) mod t) Note that mod t means that when each coefficient of m(r) + m(r) becomes larger than t, it is absorbed into t*(u(r) + u'(r)).

[0043] Homomorphic multiplication For the ciphertexts Enc(m(x)) and Enc(m'(x)) of plaintext vectors m(x) and m'(x) expressed as polynomials, multiplicative homomorphism holds as shown below. [Enc(m(x))*Enc(m′(x))] d =[[m(r)+t*u(r)] d *[m′(r)+t*u′(r)] d ] d =[(m(r)+t*u(r))*(m′(r)+t*u′(r))] d =[m(r)*m′(r)+t*(m(r)*u′(r)+ m′(r)*u(r)+t*u(r)*u′(r))] d =[m(r)*m′(r)+t*u′′(r) mod r n +1] d =Enc(m(x)*m′(x) mod (t, x n +1)) However, in the above transformation, u′′(r)=m(r)*u′(r)+m′(r)*u(r)+t*u(r)*u′(r). Also, r n Note that f(x) mod (t, x) = -1 mod d. n +1) is f(x) mod t mod (x n +1), that is, f(x) is expressed as x n =-1 to convert it into a polynomial f'(x) of degree n or less, and then divide each coefficient of f'(x) by t.

[0044] Homomorphic inner product Plaintext vector m = (m0,m1,…,m n-1 ), the inner product vector m2 = (m20, m21, …, m2 n-1 ) =(m0,-m n-1 ,-m n-2 ,…,-m1) are prepared. The inner product ciphertext Enc2(m) is defined as Enc(m2), and the polynomial with the inner product vector m2 as a coefficient is defined as m2(x). In this case, the following holds for the ciphertext Enc(m(x)) of the plaintext vector m(x) expressed as a polynomial, and the inner product ciphertext Enc2(m'(x)) of the plaintext vector m'(x).

[0045] HomMul(Enc(m(x)), Enc2(m′(x))) =Enc(m(x)*m2′(x) mod (t, x n+1 )) =Enc(<m,m′> +m′′(x) mod t)

[0046] Because x n Note that = -1, so Σ i=1 n-1 -m i *m′ i *x n = Σ i=1 n-1 m i *m′ i Therefore, the following calculation holds: m(x)=m0+ m1*x + m2*x2 + … + m n-1 *x n-1 ×m2′(x)=m′0- m′1*x n-1 - m′2*x n-2 - … - m′ n-1 *x 1 =m0* m′0+ Σ i=1 n-1 -m i *m′ i *x n + m′′(x) =Σ i=0 n-1 m i *m′ i + m′′(x) =<m,m′> + m′′(x)

[0047] Using the above homomorphic operation, the shift of the indefinite element x to the power s, that is, x s Enc(x s By homomorphically multiplying m(x) with the ciphertext Enc(m(x)) of the cyclic data m(x), it is possible to shift the cyclic arrangement of data in the ciphertext Enc(m(x)) of the cyclic data m(x), because the following relational expression holds:

[0048] HomMul(Enc(m(x)), Enc(x s )) =Enc(m(x)*x s mod (t, x n+1 )) =Enc((m>>_s) mod t)

[0049] In the above formula, >>_ represents a negative cyclic operation to the right of the vector (a cyclic operation in which the vector is multiplied by -1 when cyclic). In other words, the homomorphic cyclic operation is a cyclic operation in which the plaintext vector plaintext m=(m0, m1,…,m n-1 ) is Enc(m) and the amount of cycles is s, the ciphertext after cycle HomCycle(Enc(m), s) is obtained as follows: HomCycle(Enc (m), s)=Enc((-mn-s , … ,-m n-1 , m0, … , m n-1-s ))

[0050] In addition, the homomorphic cyclic operation is multiplied by -1 when cyclically operating, but this does not pose a problem in practice as will be understood from the embodiments described later. Furthermore, by combining the homomorphic cyclic operation with the homomorphic cyclic operation system, homomorphic cyclic operation device, homomorphic cyclic operation method, and homomorphic cyclic operation program of the first embodiment, the homomorphic cyclic operation system, homomorphic cyclic operation device, homomorphic cyclic operation method, and homomorphic cyclic operation program of the second embodiment are realized.

[0051] [Third embodiment] Next, a homomorphic cyclic operation that is an improvement of the homomorphic cyclic operation in the second embodiment will be described. Since the homomorphic cyclic operation in the third embodiment can use homomorphic operations other than the encryption and homomorphic cyclic operation in the second embodiment, only the homomorphic cyclic operation in the third embodiment will be described in the following description of the third embodiment.

[0052] In the third embodiment, the homomorphic cyclic operation is carried out by substituting the binary number r for the indefinite element x in the ciphertext Enc(m(x)) of the cyclic data m(x), and shifting the result to the power of s, that is, r s By multiplying the cyclic data m(x) by a scalar, the cyclic array of the data in the encrypted data Enc(m(x)) of the cyclic data m(x) is shifted.

[0053] Specifically, for the ciphertext Enc(m(x)) of the plaintext m(x) expressed as a polynomial, the homomorphic cyclic operation with the amount of cycles s can be calculated as follows. In the following transformation of the formula, u′(r))=u(r)*r s It is.

[0054] [Enc(m(x))*r s ] d =[[m(r)+t*u(r)] d *r s ] d =[m(r)*rs + t*u(r)*r s ] d =[m0*r s + m1*r 1+s + … + m n-1 *r n-1+s + t*u′(r)] d =[-m n-s + (-m n-s+1 )*r + … + (-m n-1 )*r s-1 + m0*r s + m1*r s+1 + … + m n-s-1 *r n-1 + t*u′(r)] d =Enc((m>>_s) mod t)

[0055] In addition, r n = -1 mod d to r -1 = -r n-1 Since it is mod d, if the shift amount s is negative, it becomes a negative cyclic operation to the left.

[0056] Here, the difference between the homomorphic cyclic operation in the second embodiment and the homomorphic cyclic operation in the third embodiment will be described.

[0057] The homomorphic cyclic operation in the second embodiment is HomMul(Enc(m(x)), Enc(x s )) is calculated, so Enc(x s ) must be stored or calculated each time. On the other hand, r i Since is also used in encryption, it is often calculated in advance and the calculation result is stored in memory. Therefore, in that case, the already calculated r i can be reused, so no additional storage and computation costs are incurred.

[0058] In addition, r used in the homomorphic cyclic operation in the third embodiment iEven if you cannot reuse r and need to calculate i The computation cost of Enc(x s ) is smaller than the computational cost of the encryption formula Enc(m)=[Σ i=0 n-1 (m i +t*u i )*r i ] d r i Because it contains.

[0059] Furthermore, the homomorphic cyclic operation in the second embodiment causes an increase in noise, which is a cause of decryption errors, when homomorphic multiplication HomMul is used. Here, the increase in noise means an increase in the ciphertext Enc(m(x))=[m(r)+t*u(r)] d On the other hand, in the homomorphic cyclic operation in the third embodiment, the noise after the homomorphic cyclic operation is u′(r)=u(r)*r s Therefore, it is a polynomial with the corresponding u>>_s as a coefficient, and although the sign of the rotated element is inverted, the absolute value of the coefficient does not change. Therefore, there is no increase in noise.

[0060] In other words, compared to the homomorphic cyclic operation in the second embodiment, the homomorphic cyclic operation in the third embodiment has the advantage of requiring less additional storage or computational costs, and less computational cost for the entire encryption scheme due to an increase in the probability of decryption errors or increasing the parameters of the encryption scheme to accommodate such an increase.

[0061] In addition, the homomorphic cyclic computation in the third embodiment can also be combined with the homomorphic cyclic computation system, homomorphic cyclic computation device, homomorphic cyclic computation method, and homomorphic cyclic computation program of the first embodiment to realize the homomorphic cyclic computation system, homomorphic cyclic computation device, homomorphic cyclic computation method, and homomorphic cyclic computation program of the third embodiment.

[0062] [Fourth embodiment] The homomorphic cyclic operation described above is a negative cyclic operation that is multiplied by -1 when circulating. In the fourth embodiment, a similarity calculation is used as an example to explain that even a negative cyclic operation that is multiplied by -1 when circulating can be put to practical use with some ingenuity. By making a periodic array of data periodically redundant and then storing it in the coefficients of an indeterminate polynomial and encrypting it, it is possible to properly calculate the similarity even with a negative cyclic operation that is multiplied by -1 when circulating.

[0063] Figure 5 is a diagram showing the concept of secure calculation of the similarity of heterocyclic compounds. As shown in Figure 5, assume that there is a database in which the structures of heterocyclic compound A are encrypted and registered from multiple pharmaceutical companies. A user wants to know how similar heterocyclic compound B that he or she discovered is to a heterocyclic compound that was previously registered. The similarity of heterocyclic compounds is determined by the correspondence of atoms contained in the heterocyclic compounds, for example, as shown in the score table below.

[0064] [Table 1]

[0065] Then, the similarity can be calculated from the score table using an inner product operation. For example, in the example shown in FIG. 5, rows of the score table are selected according to the atoms contained in heterocyclic compound A, and array A is created by connecting these selected rows of the score table in a row. Here, the rows are connected in order from the top left in a clockwise direction. For the other heterocyclic compound B, array B is created by assigning 1 to the corresponding positions and 0 to the non-corresponding positions in accordance with the atoms contained in heterocyclic compound B. Similarly, the rows are connected in order from the top left in a clockwise direction.

[0066] The similarity can be calculated by performing an inner product operation as vectors on these two arrays A and B. Here, as already explained, the inner product operation can use a homomorphic operation, so that the similarity can be calculated while keeping the structures of heterocyclic compound A and heterocyclic compound B secret.

[0067] [Table 2] <A, B> = +5 + 0 + 0 + … + 0 + 0 + 0

[0068] Incidentally, since heterocyclic compounds have cyclic structures, the value of the similarity changes depending on which starting point is used for the similarity calculation. In fact, heterocyclic compound A and heterocyclic compound B are the same heterocyclic compound, but the starting points of the cyclic structures are different, so the similarity is calculated to be low. Without homomorphic cyclic operations, it is necessary to encrypt the data of the heterocyclic compound by repeating it for the number of possible combinations of the starting points of the cyclic structures. On the other hand, with homomorphic cyclic operations, it is possible to arbitrarily set the starting point of the cyclic structure to one and encrypt it, and then change the starting point while it is still encrypted by homomorphic cyclic operations.

[0069] However, the homomorphic cyclic operation described above is a negative cyclic operation in which a value is multiplied by −1 when cyclically rotating, and so the following two problems arise.

[0070] Case 1: Sometimes, if the number of dimensions of the plaintext handled by homomorphic encryption differs from the length of the vector to be encrypted, it will not be cycled.

[0071] For example, as shown below, if the number of dimensions of the plaintext handled by homomorphic encryption differs from the length of the vector to be encrypted, 0 is stored in the remaining dimension. In this case, the correct result will not be obtained even if a homomorphic inner product operation is performed.

[0072] [Table 3] <A′, B> = +1 (originally +5)

[0073] Case 2: Even if the number of dimensions of the plaintext handled by homomorphic encryption is the same as the length of the vector to be encrypted, the value multiplied by -1 is used in the calculation because it is negatively cyclic.

[0074] For example, as shown below, even if the number of dimensions of the plaintext handled by homomorphic encryption is the same as the length of the vector to be encrypted, the value multiplied by -1 is used in the calculation because it is negatively cyclic, so the correct result will not be obtained even if a homomorphic inner product operation is performed.

[0075] [Table 4] <A′, B> = -5 (should be +5)

[0076] Therefore, in the homomorphic cyclic operation of the fourth embodiment, the periodic array of data is made periodically redundant, and then stored in the coefficients of an indeterminate polynomial and encrypted. As a result, the homomorphic cyclic operation of the fourth embodiment can perform a homomorphic inner product operation appropriately even in the case of a negative cyclic operation in which the data is multiplied by -1 when cyclically circulating, and as a result, the similarity can also be calculated correctly. As can be seen from the example below, zeros are inserted into the corresponding part of the other vector that has been made periodically redundant. The redundant parts are written in white text.

[0077] [Table 5] <A′, B> = +5 (correct)

[0078] In addition, even if the number of dimensions of the plaintext handled by homomorphic encryption is the same as the length of the vector to be encrypted, by making the periodic array of data periodically redundant and then storing it in the coefficients of an indefinite polynomial and encrypting it, it is possible to perform homomorphic inner product operations properly even with negative cyclic operations that are multiplied by -1 when cyclically circulating. As a result, similarity can also be calculated correctly.

[0079] [Table 6] <A′, B> = +5 (correct)

[0080] The homomorphic cyclic arithmetic operation of the fourth embodiment described above will be described in more detail below. Note that in the following description, the encryption device 110 and the homomorphic cyclic arithmetic device 120 used in the description of the first embodiment will be referred to, but the device configuration is not necessarily limited to this.

[0081] ·Prerequisites First, as a prerequisite, we assume that each element is encoded from 0 to l-1. The size of the score space is s size and the length of the periodic data array is r size In addition, the cyclic operation here allows shifts to both the left and right, and the shift amount of the left shift is s l The right shift amount is s r Let the i-th row of the score table below be the vector T i It is considered to be.

[0082] [Table 7]

[0083] ·set up The security parameters are input, and the coefficient space size s>s size of n-1th order (n≧(r size +s l +s r Generate a public key pk and a private key sk for Somewhat homomorphic encryption that can handle a polynomial of s×l as a plaintext, where s>s. size means that all possible scores can be handled. Also, n ≥ (r size +s l +s r )×l is the condition for the length of the vector to be encrypted to be able to be encrypted.

[0084] ·Registration In the registration phase, a public key pk and a periodic array (vector) of data x=(x0, x1, … , x r_size-1) is input and the following calculation is performed. Note that this process is typically performed using the encryption device 110, but is not limited to any device as long as it can be registered in the homomorphic cyclic arithmetic device 120 in advance. 1. Let x′=(x r_size-s_r , … , x r_size-1 , x0, … , x r_size-1 , x0, ... , x s_l ) 2. Let T = (T x_{r_size-s_r} , ... , T x_{r_size-1} , T x_0 , … , T x_{r_size-1} , T x_0 , … , T x_{s_l} ) (see table below). 3. Calculate and output c1 = Enc(T).

[0085] [Table 8]

[0086] · Query In the query phase, the encryption device 110 receives a public key pk and a periodic array (vector) of data y=(y0, y1, … , y r_size-1 ) is used as input and the following calculation is performed. 1. Let B = (B y_0 , … , B y_{r_size-1} ),B i =(b0, b1, … , b l-1 ),b j ={0 if j≠y i ,1 if j=y i}. 2. s to the left and right of vector B r , s l Let B′=(0 s_r*l , B y_0 , … , B y_{r_size-1}, 0 s_l*l ), where 0 a represents a zero vector of dimension a (see the table below). 3. Calculate c2=Enc2(B′) and send the output to the homomorphic cyclic arithmetic unit 120.

[0087] [Table 9]

[0088] ·Similarity calculation In the similarity calculation phase, the homomorphic cyclic arithmetic device 120 receives as input the public key pk, the ciphertext c1 generated by registration, and the ciphertext c2 generated by the query, and performs the following calculation. 1. Prepare an empty set C={}. 2.j = -s l ,...,s r Calculate a through d below. a. c = HomCycle(c1, l*j) b.c ip = HomIP pk (c, c2) c. r = (0, r1, r2, … , r n-1 ) (r i is generated) that is uniformly random in the plaintext space of the encryption method. d.c r =Enc(r) e. c = HomAdd(c ip , c r ) to C. 3. Output C and send it to the encryption device 110.

[0089] In addition, the calculation of a and b in the above similarity calculation is done by c = HomCycle(c2, l*j) and c ip = HomIP pk(c, c1) may be used. In addition, the calculations of c to e in the above similarity calculations are for masking to prevent information leakage from the homomorphic inner product operation other than the constant term. Therefore, if there is no need to prevent information leakage, it may be omitted.

[0090] Decryption In the decryption phase, the encryption device 110 performs the following calculation using the private key sk and the set C of ciphertexts generated by the similarity calculation as input. 1. Prepare an empty set M = {}. 2. For all c∈C, calculate: a. m = (m0, m1, … , m n-1 ) = Dec(c). b. Add m0 to M. 3. Output M.

[0091] As described above, the homomorphic cyclic operation described in the second and third embodiments is a negative cyclic operation that is multiplied by -1 when circulating, but it has been shown that it can be used for calculating similarity by using some ingenuity. Note that the calculation of similarity is merely one example where the negative cyclic operation that is multiplied by -1 when circulating can be applied, and application examples of the homomorphic cyclic operation described in the second and third embodiments are not limited to this.

[0092] Moreover, the homomorphic cyclic calculation system, homomorphic cyclic calculation device, homomorphic cyclic calculation method, and homomorphic cyclic calculation program of the fourth embodiment can be realized by combining the homomorphic cyclic calculation system, homomorphic cyclic calculation device, homomorphic cyclic calculation method, and homomorphic cyclic calculation program of the first embodiment with the homomorphic cyclic calculation system, homomorphic cyclic calculation device, homomorphic cyclic calculation method, and homomorphic cyclic calculation program of the fourth embodiment. Therefore, the homomorphic cyclic calculation system, homomorphic cyclic calculation device, homomorphic cyclic calculation method, and homomorphic cyclic calculation program of the fourth embodiment are suitable embodiments for calculating the similarity of periodic arrays of data.

[0093] [Fifth embodiment] Next, another application example of the homomorphic cyclic operation described in the second and third embodiments will be described. The homomorphic cyclic operation in the fifth embodiment is used for secure function evaluation. In the following description, the encryption device 110 and the homomorphic cyclic operation device 120 used in the description of the first embodiment will be referred to, but the device configuration is not necessarily limited to this.

[0094] In the secret function evaluation, the ciphertext Enc(m) of data m is registered in the database server, and the user evaluates the polynomial function f(x)=a0+a1*x+a2*x with integer coefficients. 2 +…+a N *x N The evaluation value of the function f(m)=a0+a1*m+a2*m is kept secret in the database server. 2 +…+a N *m N Here, the degree N of the polynomial to be evaluated may be made public, and the private key is given to the user by another secure means.

[0095] First, for comparison, a secure function evaluation without homomorphic cyclic operations will be described. This secure function evaluation without homomorphic cyclic operations uses the Horner algorithm, and f(x)=a0+a1*x+a2*x 2 +…+a N *x N f(x)=a0+x*(a1+x*(a2+…x(a N-1 +x*a N ))) This Horner method is known to be able to evaluate n-th degree polynomials with the fewest number of additions and multiplications.

[0096] 1. The user can use Enc(a0), Enc(a1), ... , Enc(a N ) and send them to the database server. 2. The database server calculates Enc(f(m)) using homomorphic operations as follows and sends it to the user. a.c = Enc(a N ) b. For i = N-1, N-2, ... , 0, compute 1. c = HomMul(c, Enc(m)) 2. c = HomAdd(c, Enc(a i )) 3.m′=(m′0, m′1, ... , m′ n-1 ) = Dec(c). 4. m′0 is evaluated as f(m) = a0+a1*m+a2*m 2 +…+a N *m N Let us assume that.

[0097] As can be seen from the above calculation, in the secure function evaluation using Horner's algorithm, for the degree N of the polynomial to be evaluated, the user generates N+1 ciphertexts Enc(a0), Enc(a1), ... , Enc(a N ) and send it to the database server. Therefore, as the degree N of the polynomial to be evaluated increases, the encryption cost for the user and the amount of communication between the database server and the user will increase.

[0098] Therefore, by using homomorphic cyclic operations, the encryption cost for users and the amount of communication between the database server and the database server are not increased even when the degree N of the polynomial to be evaluated is large.

[0099] Specifically, the polynomial function f(x)=a0+a1*x+a2*x as follows: 2 +…+a N *x N The evaluation value of the function f(m)=a0+a1*m+a2*m is kept secret in the database server. 2 +…+a N *m N Calculate.

[0100] 1. First, the user uses the user terminal (encryption device 110) to generate the inner product ciphertext Enc2((a0, a1, ..., a N )) and send it to the database server. 2. The database server (homomorphic cyclic calculation device 120) calculates Enc(f(m)) using homomorphic calculation as follows. A. c = Enc(m) B. Repeat the following process N-1 times, and Enc((m, m 2 , ... , m N )) to calculate a. c = HomMul(c, Enc(m)) b. c = HomCycle(c, 1) c. c = HomAdd(c,Enc(m)) C. The following process is used to Enc((1, m, m 2 , ... , m N Calculate a. c = HomCycle(c, 1) b. c=HomAdd(c,Enc(1)) (Enc(1) is calculated in advance) D. c = Enc((m, m 2 , ... , m N )) and Enc2((a0, a1, ... , a N )) and the homomorphic inner product c=HomIP(c, Enc2((a0, a1, ... , a N After this calculation, c=Enc(a0+a1*m+a2*m 2 +…+a N *m N )=Enc(f(m)). 3. The user decrypts c using the private key at the user terminal (encryption device 110) and extracts the evaluation value f(m).

[0101] Here, a comparison is made between a secure function evaluation method (Horner method) that does not use homomorphic cyclic operations and a secure function evaluation method using homomorphic cyclic operations of the fifth embodiment. The table below compares a secure function evaluation method (Horner method) that does not use homomorphic cyclic operations and a secure function evaluation method using homomorphic cyclic operations of the fifth embodiment. Note that the computational cost of HomMul and HomCycle is the same, and the computational cost of Enc and Enc2 is the same, and the computational cost can be compared by comparing the number of times of processing.

[0102] [Table 10]

[0103] As can be seen from the above comparison table, the secure function evaluation using homomorphic cyclic arithmetic of the fifth embodiment requires less encryption calculation cost and less communication traffic from the user to the database server than the secure function evaluation not using homomorphic cyclic arithmetic. On the other hand, the secure function evaluation using homomorphic cyclic arithmetic of the fifth embodiment requires more calculation cost of homomorphic processing performed in the database server than the secure function evaluation not using homomorphic cyclic arithmetic. Therefore, the secure function evaluation using homomorphic cyclic arithmetic of the fifth embodiment can be suitably used in cases where the terminal (encryption device 110) used by the user is weak.

[0104] Moreover, the homomorphic cyclic calculation system, homomorphic cyclic calculation device, homomorphic cyclic calculation method, and homomorphic cyclic calculation program of the fifth embodiment can be realized by combining the homomorphic cyclic calculation system, homomorphic cyclic calculation device, homomorphic cyclic calculation method, and homomorphic cyclic calculation program of the first embodiment with the homomorphic cyclic calculation system, homomorphic cyclic calculation device, homomorphic cyclic calculation method, and homomorphic cyclic calculation program of the fifth embodiment. Therefore, the homomorphic cyclic calculation system, homomorphic cyclic calculation device, homomorphic cyclic calculation method, and homomorphic cyclic calculation program of the fifth embodiment are suitable embodiments for performing secure function evaluation.

[0105] A part or all of the above-described embodiments can be described as, but is not limited to, the following supplementary notes. [Appendix 1] A homomorphic cyclic operation system that performs homomorphic cyclic operation on a periodic array of data using homomorphic encryption in which homomorphic operation is defined for at least one multiplication, an encryption device for storing the periodic sequence of the data in coefficients of an indeterminate polynomial and encrypting the coefficients to generate a ciphertext of the periodic data; a homomorphic cyclic arithmetic device that operates the ciphertext of the cyclic data to the power of a shift amount of the indeterminate element to shift a periodic arrangement of the data in the ciphertext of the cyclic data; A homomorphic cyclic arithmetic system comprising: [Appendix 2] the homomorphic cyclic arithmetic device shifts a periodic array of the data in the encrypted text of the periodic data by homomorphically multiplying an encrypted value of the shift amount of the indeterminate element and the encrypted text of the periodic data. 2. A homomorphic cyclic arithmetic system as described in appendix 1. [Appendix 3] The homomorphic cyclic arithmetic device shifts a periodic array of the data in the encrypted cyclic data by scalar multiplying the encrypted cyclic data by a shift amount power of a binary number substituted into the indefinite element. 2. A homomorphic cyclic arithmetic system as described in appendix 1. [Appendix 4] The binary number r is expressed as r when the period n of the array and the ciphertext space size d are used. n A homomorphic cyclic arithmetic system as described in Appendix 3, where d is a number that satisfies ≡ -1 mod d. [Appendix 5] The encryption device adds a noise vector to the periodic array of data, stores the data in coefficients of an indeterminate polynomial, and encrypts the data. 5. A homomorphic cyclic arithmetic system according to any one of claims 1 to 4. [Appendix 6] the encryption device performs cyclic redundancy on the periodic sequence of the data, stores the data in coefficients of an indeterminate polynomial, and encrypts the coefficients. 6. A homomorphic cyclic arithmetic system according to any one of claims 1 to 5. [Appendix 7] the periodic array is a coefficient of an evaluation polynomial to be evaluated by substituting an evaluation value; The encryption device encrypts coefficients of the evaluation polynomial; the homomorphic cyclic arithmetic device repeatedly performs one shift on the ciphertext obtained by encrypting the evaluation value and multiplies the ciphertext by itself, and performs an inner product operation with the ciphertext of the coefficient of the evaluation polynomial, thereby obtaining a ciphertext in which the evaluation value is substituted into the evaluation polynomial. 6. A homomorphic cyclic arithmetic system according to any one of claims 1 to 5. [Appendix 8] A homomorphic cyclic arithmetic device that performs homomorphic cyclic arithmetic on a periodic array of data using homomorphic encryption in which homomorphic arithmetic is defined for at least one multiplication, comprising: A homomorphic cyclic arithmetic device that shifts a periodic array of data in a ciphertext of cyclic data by storing the periodic array of data in coefficients of a polynomial of an indeterminate element and encrypting the data to generate a ciphertext and applying a power of a shift amount of the indeterminate element to the ciphertext. [Appendix 9] A homomorphic cyclic operation method for performing homomorphic cyclic operation on a periodic array of data using homomorphic encryption in which homomorphic operation is defined for at least one multiplication, comprising the steps of: generating a ciphertext of the periodic data by storing the periodic sequence of data in coefficients of an indefinite polynomial and encrypting the coefficients; shifting the periodic sequence of data in the ciphertext of the cyclic data by applying the shift amount of the indeterminate element to the ciphertext of the cyclic data; A homomorphic cyclic computation method comprising: [Appendix 10] A program for causing a computer to perform homomorphic cyclic operations on a periodic array of data using homomorphic encryption in which homomorphic operations are defined for at least one multiplication, comprising: A program for shifting a periodic array of data in an encrypted text of periodic data by storing the periodic array of data in coefficients of a polynomial of an indeterminate element and encrypting the data to generate an encrypted text, and applying a power of a shift amount of the indeterminate element to the encrypted text.

[0106] The disclosures of the above cited patent documents are incorporated herein by reference. Within the scope of the entire disclosure of the present invention (including the scope of claims), modifications and adjustments of the embodiments and examples are possible based on the basic technical ideas. Furthermore, within the scope of the entire disclosure of the present invention, various combinations or selections (including partial deletions) of various disclosed elements (including each element of each claim, each element of each embodiment or example, each element of each drawing, etc.) are possible. In other words, the present invention naturally includes various modifications and corrections that a person skilled in the art would be able to make in accordance with the entire disclosure including the scope of claims and the technical ideas. In particular, with regard to the numerical ranges described in this specification, any numerical value or small range included in the range should be construed as being specifically described even if not otherwise specified. Furthermore, the disclosures of the above cited documents, if necessary, in accordance with the spirit of the present invention, may be used in part or in whole in combination with the disclosures of this specification as part of the disclosure of the present invention, and are deemed to be included in the disclosures of this application. [Explanation of symbols]

[0107] 100 Homomorphic Cyclic Arithmetic System 110 Encryption device 120 Homomorphic cyclic arithmetic unit 121 Storage section 122 Receiving section 123 Arithmetic section 10 Hardware Configuration 11 CPU(Central Processing Unit) 12 Main storage 13 Auxiliary storage device 14 IF (Interface) Section

Claims

1. A homomorphic cyclic operation system that performs homomorphic cyclic operation on a periodic array of data using homomorphic encryption in which homomorphic operation is defined for at least one multiplication, comprising: an encryption device for storing the periodic sequence of the data in coefficients of an indeterminate polynomial and encrypting the coefficients to generate a ciphertext of the periodic data; a homomorphic cyclic arithmetic device that operates the encrypted cyclic data by a power of a shift amount of the indeterminate element to shift a periodic arrangement of the data in the encrypted cyclic data; A homomorphic cyclic arithmetic system comprising:

2. the homomorphic cyclic arithmetic device shifts a periodic array of the data in the encrypted text of the periodic data by homomorphically multiplying an encrypted value of the shift amount of the indeterminate element and the encrypted text of the periodic data. The homomorphic cyclic arithmetic system according to claim 1 .

3. the homomorphic cyclic arithmetic device shifts a periodic array of the data in the encrypted cyclic data by scalar multiplying the encrypted cyclic data by a shift amount power of a binary number substituted into the indefinite element; The homomorphic cyclic arithmetic system according to claim 1 .

4. The homomorphic cyclic arithmetic system according to claim 3 , wherein, when the base number is r, the period of the array is n, and the ciphertext space size is d, rn ≡ −1 mod d is satisfied.

5. The encryption device adds a noise vector to the periodic array of data, stores the data in coefficients of an indeterminate polynomial, and encrypts the data. The homomorphic cyclic arithmetic system according to any one of claims 1 to 4.

6. the encryption device performs cyclic redundancy on the periodic sequence of the data, stores the data in coefficients of an indeterminate polynomial, and encrypts the coefficients. The homomorphic cyclic arithmetic system according to any one of claims 1 to 5.

7. the periodic array is a coefficient of an evaluation polynomial to be evaluated by substituting an evaluation value; The encryption device encrypts coefficients of the evaluation polynomial; the homomorphic cyclic arithmetic device repeatedly performs one shift on the ciphertext obtained by encrypting the evaluation value and multiplies the ciphertext by itself, and performs an inner product operation with the ciphertext of the coefficient of the evaluation polynomial, thereby obtaining a ciphertext in which the evaluation value is substituted into the evaluation polynomial. The homomorphic cyclic arithmetic system according to any one of claims 1 to 5.

8. A homomorphic cyclic arithmetic device that performs homomorphic cyclic arithmetic on a periodic array of data using homomorphic encryption in which homomorphic arithmetic is defined for at least one multiplication, comprising: A homomorphic cyclic arithmetic device that shifts a periodic array of data in a ciphertext of periodic data by storing the periodic array of data in coefficients of a polynomial of an indeterminate element and encrypting the data to generate a ciphertext and applying a power of a shift amount of the indeterminate element to the ciphertext.

9. A homomorphic cyclic operation method in which an encryption device and a homomorphic cyclic operation device perform homomorphic cyclic operation on a periodic array of data using homomorphic encryption in which homomorphic operation is defined for at least one multiplication, comprising: generating a ciphertext of the periodic data by storing the periodic sequence of the data in coefficients of an indefinite polynomial and encrypting the coefficients; a step of shifting a periodic sequence of the data in the encrypted cyclic data by applying a shift amount of the indeterminate element to the encrypted cyclic data by the homomorphic cyclic arithmetic device; A homomorphic cyclic computation method comprising:

10. A program for causing a computer to perform homomorphic cyclic operations on a periodic array of data using homomorphic encryption in which homomorphic operations are defined for at least one multiplication, comprising: A program for shifting a periodic array of data in an encrypted text of periodic data by storing the periodic array of data in coefficients of a polynomial of an indeterminate element and encrypting the data to generate an encrypted text, and applying a power of a shift amount of the indeterminate element to the encrypted text.