Cryptographic processing device, cryptographic processing method, and cryptographic processing program

The cryptographic processing device addresses the limitations of TFHE by associating integer error variance with ciphertexts, facilitating faster calculation of arbitrary univariate functions using the entire circumference group, overcoming the f(v+1/2)=-f(v) constraint.

JP7556577B2Active Publication Date: 2024-09-26AKUSERU KK
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
JP2022159634
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2022-10-03
Publication Date
2024-09-26
Estimated Expiration
2042-10-03

AI Technical Summary

Technical Problem

Existing fully homomorphic encryption methods, such as TFHE, are limited by the constraint that the function assigned to the test vector polynomial must satisfy f(v+1/2)=-f(v), which restricts the application of trigonometric functions and other functions, and using only the interval from 0 to 0.5 of the circumference group reduces the information held in one ciphertext, diminishing the effectiveness of integer-wise operations.

Method used

A cryptographic processing device that processes ciphertexts by associating a value with an integer error variance, using a first and second polynomial to calculate intermediate ciphertexts, and performing isomorphic operations to obtain a final ciphertext corresponding to the calculation result of a function, allowing the use of the entire circumference group without waste and enabling faster calculation of arbitrary univariate functions.

Benefits of technology

Enables the use of the entire circumference group without reducing information, allowing faster calculation of arbitrary univariate functions compared to conventional methods.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007556577000055
    Figure 0007556577000055
  • Figure 0007556577000061
    Figure 0007556577000061
  • Figure 0007556577000068
    Figure 0007556577000068
Patent Text Reader

Abstract

To utilize the entire circumference group with no waste when utilizing TFHE as an Integer-wise type and more speedily calculate a result of an optional one-variable function than conventionally.SOLUTION: A control unit of an encryption processing device includes: a fifth Bootstrapping unit 45 that performs calculation of a coded message using a first polynomial including an odd function based on a second function, a second polynomial including an even function based on the second function, and a third polynomial having a predetermined coefficient, the second function in which an area where a variable x in a first function as a calculation object is a negative value is inverted in an X-axis direction, and performs calculation of a second coded message by using the first polynomial for the first coded message; a sixth Bootstrapping unit 46 for calculating a third coded message by using the second polynomial for the coded message calculated by using the third polynomial to the first coded message; and an arithmetic unit 15 for calculating a fourth coded message corresponding to a calculation result of the first function with the first coded message as input by performing a homomorphic operation using the second coded message and the third coded message.SELECTED DRAWING: Figure 14
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a cryptographic processing device, a cryptographic processing method, and a cryptographic processing program. [Background technology]

[0002] Homomorphic encryption is an encryption method that allows data processing to be performed on encrypted data without decrypting the data. Additive homomorphic encryption is an encryption in which there is an operation between ciphertexts that corresponds to the addition between plaintexts, and multiplicative homomorphic encryption is an encryption in which there is an operation between ciphertexts that corresponds to the multiplication between plaintexts. Additive homomorphic encryption, which treats finite cyclic groups as integers and performs only additive operations (addition and subtraction), and multiplicative homomorphic encryption, which performs only multiplicative operations (multiplication), have long been known. Finite cyclic groups allow integer multiplication by repeated addition, so integer multiplication using plaintext is possible, and exponentiation calculations using plaintext are also possible by repeated multiplication. There is also ring homomorphic encryption, which processes both additive and multiplicative operations while keeping the data encrypted, and fully homomorphic encryption (FHE), which allows all operations including additive and multiplicative operations. One type of fully homomorphic encryption is based on the Learning with Errors (LWE) problem, which involves adding small errors to the plaintext during encryption that do not affect decryption.

[0003] In fully homomorphic encryption based on the LWE problem, errors accumulate as calculations are performed, so bootstrapping is performed to reduce the error components while still encrypting the data before the errors become too large to make decryption possible. The computation time of bootstrapping accounts for most of the computation time in fully homomorphic encryption. In addition, bootstrapping requires a huge amount of data, so the amount of computation is enormous. Therefore, in fully homomorphic encryption, it is sometimes impossible to obtain the computation result within a practical time. A technique that dramatically improves this problem is TFHE (Fast Fully Homomorphic Encryption over the Torus), which is shown in Non-Patent Document 1 (referred to as the above paper in the following description). There are two types of homomorphic encryption: bit-wise homomorphic encryption, which has a binary plaintext and uses logical operations as the base, and integer-wise homomorphic encryption, which uses an entire integer as a single ciphertext as the plaintext. The TFHE described in Non-Patent Document 1 is a bit-wise type. Note that the plaintext of TFHE is a real number between 0 and 1 that is associated with a circular group. Therefore, by sequentially associating integers with intervals that divide the range of the circular group from 0 to 1, TFHE can be extended and applied as an integer-wise homomorphic encryption method that has integers as plaintexts (see Non-Patent Document 2). When TFHE is used as an integer-wise type, multiple bits of information can be stored in a single ciphertext, allowing more complex calculations to be performed in a single homomorphic calculation, significantly reducing the number of calculations required for the entire system. Furthermore, it is known that an arbitrary one-variable function can be evaluated by substituting a function value into the test vector polynomial of Bootstrapping and using it as an LUT (see Non-Patent Document 3). [Prior art documents] [Patent documents]

[0004] [Non-Patent Document 1] TFHE:Fast Fully Homomorphic Encryption over the Torus. Journal of Cryptology, 33:34-91, 2020, I. Chillotti, N. Gama, M. Georgieva, and M. Izabachene [Non-Patent Document 2] Integerwise Functional Bootstrapping on TFHE, 2020, Hiroki Okada, Shinsaku Kiyomoto, and Carlos Cid [Non-Patent Document 3] Bootstrapping in FHEW-like Cryptosystems, 2020, Daniele Micciancio and Yuriy Polyakov Summary of the Invention [Problem to be solved by the invention]

[0005] However, the function substituted into the test vector polynomial must satisfy the property f(v+1 / 2)=-f(v). Although there are trigonometric functions that satisfy this constraint, this is not a general constraint and is difficult to apply. To avoid this restriction, there is an idea to use only the interval from 0 to 0.5 of the circular group as the plaintext. Adding this restriction allows any one-variable function to be evaluated regardless of the above restriction. However, in that case, the information that can be held in one ciphertext is effectively reduced by half, i.e., by l bits, and the effect of going integer-wise is weakened. One aspect of the present invention is to use TFHE as an integer-wise type, and to calculate the result of an arbitrary function of one variable faster than conventional methods while making full use of the entire circle group. [Means for solving the problem]

[0006] According to one embodiment, the present invention is a cryptographic processing device that processes a ciphertext, the ciphertext having a value obtained by adding an error with a predetermined variance to a predetermined value as a plaintext associated with an integer, and being a fully homomorphic ciphertext that allows a predetermined operation between integers without decryption, the cryptographic processing device calculates a ciphertext using a first polynomial including the second function and a second polynomial including the third function among second functions and third functions generated by decomposing a first function to be calculated, calculates a second ciphertext by using the first polynomial on the first ciphertext, calculates a third ciphertext by using the second polynomial on a ciphertext calculated based on using the predetermined polynomial on the first ciphertext, and calculates a fourth ciphertext corresponding to a calculation result of the first function using the first ciphertext as input by performing a homomorphic operation using the second ciphertext and the third ciphertext. Effect of the Invention

[0007] According to one aspect of the present invention, when using TFHE as an integer-wise type, the entire circle group can be used efficiently, while the result of an arbitrary one-variable function can be calculated faster than conventional methods. [Brief description of the drawings]

[0008] [Figure 1] FIG. 2 is a diagram illustrating a functional configuration of the cryptographic processing device according to the present embodiment. [Diagram 2] FIG. 2 is a diagram for explaining a calculation process based on the functional configuration of FIG. [Diagram 3] FIG. 1 is an image diagram for explaining a circular group that the TLWE cipher has as plaintext. [Figure 4] This is an image diagram of binary gate bootstrapping operation. [Diagram 5] FIG. 1 is a diagram for explaining TFHE applied to an integer-wise type. [Figure 6] FIG. 2 is a diagram illustrating an integer-wise TFHE in this embodiment. [Figure 7] FIG. 2 is a diagram illustrating an integer-wise TFHE in this embodiment. [Figure 8] FIG. 2 is a diagram illustrating an integer-wise TFHE in this embodiment. [Figure 9] FIG. 2 is a diagram illustrating an integer-wise TFHE in this embodiment. [Figure 10] FIG. 13 is a diagram for explaining the transition of the value of a ciphertext in this embodiment (even function). [Figure 11] FIG. 13 is a diagram for explaining the transition of the value of a ciphertext in this embodiment (even function). [Figure 12] 11 is a flowchart illustrating a process in which the cryptographic processing device of the present embodiment calculates an odd function and an even function. [Figure 13] 1A to 1C are diagrams illustrating a method for the cryptographic processing device of the present embodiment to execute a calculation of an arbitrary function of one variable. [Figure 14] 1 is a diagram illustrating a configuration for a cryptographic processing device according to an embodiment of the present invention to execute a calculation of an arbitrary function of one variable. [Figure 15] 11 is a flowchart illustrating a process for the cryptographic processing device of the present embodiment to calculate a function of one variable. [Figure 16] 10 is a diagram showing ciphertexts input and output to Gate Bootstrapping of the present embodiment. FIG. [Figure 17] FIG. 1 is a block diagram illustrating an embodiment of a computing device. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0009] Hereinafter, an embodiment of the present invention will be described in detail with reference to the drawings. In the following description, alphanumeric characters enclosed in [] indicate that it is a vector, and alphanumeric characters enclosed in {} indicate that it is a set. In addition, in this specification, the term "logical operation" refers to a binary or multi-valued operation.

[0010] FIG. 1 is a diagram illustrating the functional configuration of the cryptographic processing device of this embodiment. The cryptographic processing device 1 includes a control unit 10, a storage unit 20, a communication unit 25, and an input unit . The control unit 10 includes a receiving unit 11, a first calculation unit 12, a second calculation unit 13, a third calculation unit 14, and a fourth calculation unit 15. The control unit 10 also includes a first bootstrap unit (calculation unit) 41, a second bootstrap unit (calculation unit) 42, a third bootstrap unit (calculation unit) 43, a fourth bootstrap unit (calculation unit) 44, a fifth bootstrap unit (calculation unit) 45, a sixth bootstrap unit (calculation unit) 46, a seventh bootstrap unit (calculation unit) 47, and an output unit 35.

[0011] The reception unit 11 receives an input of a ciphertext to be subjected to an operation via the communication unit 25 or the input unit 26. Alternatively, the reception unit 11 receives an input of a ciphertext from another process executed by the cryptographic processing device 1. In the calculation of the odd function as a function of one variable, the first bootstrap unit 41 performs first gate bootstrap on the input ciphertext. The second bootstrap unit 42 performs second gate bootstrap on the ciphertext output from the first bootstrap unit 41 . The first arithmetic unit 12 performs a first homomorphic operation on the ciphertext output from a second bootstrap unit 42, which will be described later. In the calculation of the even function as a function of one variable, the third bootstrap unit 43 performs third gate bootstrap on the input ciphertext. The second arithmetic unit 13 performs a second homomorphic operation on the ciphertext output from the third bootstrap unit 43 . The fourth bootstrap unit 44 performs fourth gate bootstrap on the ciphertext output from the second arithmetic unit 13 .

[0012] The third calculation unit 14, the fourth calculation unit 15, the fifth bootstrap unit 45, the sixth bootstrap unit 46, and the seventh bootstrap unit 47 relate to a method for calculating an arbitrary one-variable function, which will be described in detail later using FIG. The fifth bootstrap unit 45 performs the fifth bootstrap on the input ciphertext. The sixth bootstrap unit 46 performs sixth bootstrap on the input ciphertext. The third arithmetic unit 14 performs homomorphic arithmetic between the ciphertext output from the sixth bootstrapper 46 and the input ciphertext. The seventh bootstrap unit 47 performs seventh bootstrap on the calculation result by the third calculation unit 14. The fourth arithmetic unit 15 performs homomorphic arithmetic on the ciphertexts output from the fifth bootstrap unit 45 and the seventh bootstrap unit 47, respectively.

[0013] The first calculation unit 12, the second calculation unit 13, the third calculation unit 14, and the fourth calculation unit 15 are calculation processing units that realize homomorphic calculations described below by software. The first bootstrap unit 41, the second bootstrap unit 42, the third bootstrap unit 43, and the fourth bootstrap unit 44 are arithmetic processing units that realize the gate bootstrapping process described below by software. At least one of the first calculation unit 12, the second calculation unit 13, the first bootstrap unit 41, the second bootstrap unit 42, the third bootstrap unit 43, the fourth bootstrap unit 44, and the output unit 35 may be realized in hardware.

[0014] The output unit 35 outputs the final calculation result to the outside of the cryptographic processing device 1 or to another processing process executed by the cryptographic processing device 1. The storage unit 20 can store input ciphertext, temporary files and temporary data used in operations on the ciphertext, and output ciphertext. Furthermore, the storage unit 20 can store an encrypted database 60 . The communication unit 25 connects the cryptographic processing device 1 to a network, enabling communication with external devices. By storing the encrypted database 60 in the storage unit 20 and providing the communication unit 25, the cryptographic processing device 1 can function as a database server. In this case, the cryptographic processing device 1 can accept an encrypted query from a terminal device as an external device, perform a search on the encrypted encrypted database 60, and respond with encrypted search results to the terminal device. The input unit 26 inputs, to the cryptographic processing device 1, ciphertext to be processed and a query for the encrypted database 60.

[0015] FIG. 2 is a diagram for explaining a calculation process based on the functional configuration of FIG. The configuration shown in Figure 2 uses the Gate Bootstrapping proposed in the above paper. The Gate Bootstrapping of TFHE proposed in the above paper is described in detail below. As described above, the cryptographic processing device 1 performs calculations of odd and even functions on the Integer-wise TLWE ciphertext. The TLWE ciphertext ca is the ciphertext of the plaintext integer a for which we wish to calculate odd and even functions. In FIG. 2(a), the cryptographic processing device 1 performs calculations of an odd function as a function of one variable. In (a-1), the TLWE ciphertext ca is input to the first bootstrap unit 41, and a one-variable function F id The first bootstrap is performed using (X) as a test vector to calculate the TLWE ciphertext cb. Next, the cryptographic processing device 1 inputs the ciphertext cb to the second bootstrap unit 42 and computes a one-variable function F f A second bootstrap is performed using (X) as a test vector, and the ciphertext cc corresponding to the calculation result of the odd function is calculated. In (a-2), the cryptographic processing device 1 inputs the TLWE ciphertext ca to the first bootstrap unit 41 and generates a one-variable function F id The first bootstrap is performed using (X) as a test vector to calculate the TLWE ciphertext cb. The cryptographic processing device 1 inputs the ciphertext cb to the second bootstrap unit 42 and computes a one-variable function F f The cryptographic processing device 1 performs a second bootstrap using (X) as a test vector to calculate a ciphertext cc. Next, the cryptographic processing device 1 inputs the ciphertext cc to the first calculation unit 12 to perform a first homomorphic calculation to calculate a new ciphertext cd corresponding to the calculation result of the odd function. In (a-3), the cryptographic processing device 1 inputs the TLWE ciphertext ca to the first bootstrap unit 41 and calculates a one-variable function F' id The first bootstrap is performed using (X) as a test vector to calculate the TLWE ciphertext cb. The cryptographic processing device 1 inputs the ciphertext cb to the second bootstrap unit 42 and calculates a one-variable function F' f A second bootstrap is performed using (X) as a test vector, and the ciphertext cc corresponding to the calculation result of the odd function is calculated.

[0016] In FIG. 2(b), the cryptographic processing device 1 performs calculation of an even function as a function of one variable. In (b-1), the cryptographic processing device 1 inputs the TLWE ciphertext ca to the third bootstrap unit 43 and calculates a one-variable function F abs A third bootstrap is performed using (X) as a test vector to calculate a TLWE ciphertext cb. The cryptographic processing device 1 inputs the ciphertext cb to the second arithmetic unit 13 and performs a second homomorphic operation to calculate a TLWE ciphertext cc. The cryptographic processing device 1 inputs the ciphertext cc to the fourth bootstrap unit 44 and calculates a one-variable function F' f A fourth bootstrap is performed using (X) as a test vector, and the ciphertext cd corresponding to the calculation result of the even function is calculated. In (b-2), the cryptographic processing device 1 inputs the TLWE ciphertext ca to the third bootstrap unit 43 and calculates a one-variable function F' abs The cryptographic processing device 1 performs a third bootstrap using (X) as a test vector to calculate a TLWE ciphertext cb. The cryptographic processing device 1 inputs the ciphertext cb to the second calculation unit 13 and performs a second homomorphic calculation to calculate a TLWE ciphertext cc. The cryptographic processing device 1 inputs the ciphertext cc to the fourth bootstrap unit 44 and computes a one-variable function F f A fourth bootstrap is performed using (X) as a test vector, and the ciphertext cd corresponding to the calculation result of the even function is calculated.

[0017] This section provides details on Gate Bootstrapping as explained in TFHE. Gate Bootstrapping is a technique for making fully homomorphic encryption practical, which was previously considered impractical due to the huge amount of data and computation time required. The TFHE in the above paper uses a cryptosystem called TLWE cryptosystem, which is an LWE (Learning with Errors) cryptosystem constructed on a circular group, to realize various homomorphic logical operations (and ultimately any operation such as addition and multiplication) between TLWE ciphertexts at high speed and with small data size while reducing errors during calculation.

[0018] The input for Gate Bootstrapping in TFHE is a TLWE ciphertext encrypted with a private key. In TFHE, fully homomorphic encryption (FHE) is realized based on TLWE ciphertext. TLWE cryptography is a special case of LWE cryptography, which is a type of lattice cryptography (LWE cryptography defined on a circular group). It is known that TLWE encryption is additively homomorphic, and additive operations between TLWE-encrypted plaintexts can be performed without decrypting the ciphertext.

[0019] FIG. 3 is an image diagram for explaining a circular group that the TLWE cipher has as a plaintext. The TLWE cipher advances from 0 with real number precision and returns to 0 when it reaches 1. Any point on the circle group {T} shown in Figure 3 is used as the plaintext, and the vicinity of 0 (including error) and the vicinity of μ (including error) are used as plaintext. Points on the circle group {T} are also referred to herein as "elements." A cryptographic processing device that handles TFHE performs common homomorphic operations such as additive operations between such TLWE ciphertexts, and by using Gate Bootstrapping to keep the error in the operation results within an appropriate range, it realizes fully homomorphic encryption (FHE) that allows logical operations to be performed again (at a later stage).

[0020] [TLWE cipher] Explain the TLWE cipher. As an element on the circle group {T}, prepare a vector [a] of N uniformly distributed random numbers. Also prepare a secret key [s] of N binary values, 0 and 1. If the mean is the plaintext μ and e is a random number with a Gaussian (normal) distribution and a predetermined variance α, then the set ([a],[s]·[a]+e) is an example of a TLWE ciphertext. The average value of e when an infinite number of TLWE ciphertexts are generated for the same plaintext μ is the plaintext μ, where μ is a plaintext without errors and e is a plaintext with errors. Note that "·" represents the inner product of vectors. The same applies hereafter. If we define the above [s]·[a]+e as b, the TLWE ciphertext can be expressed as ([a], b). φ s (([a],b))=b-[s]·[a]=e is the function that decrypts TLWE ciphertext. Since TLWE ciphertext encrypts plaintext by adding the inner product of the secret key vector and random number vector and an error, it is possible to decrypt the TLWE ciphertext with an error by calculating the inner product of the secret key vector and random number vector. At this time, if the secret key vector is unknown, the components that make up the inner product cannot be calculated, and therefore decryption is not possible.

[0021] This TLWE encryption is additively homomorphic, meaning that addition operations between TLWE ciphertexts can be performed without decrypting the ciphertexts. Add the two TLWE ciphertexts ([a],b) and ([a'],b') as is to obtain ([a]+[a'],b+b'), and then use the above decryption function φ s If you enter φ s (([a]+[a'],b+b'))=(b+b')-[s]·([a]+[a'])=(b-[s]·[a])+(b'-[s]·[a'])=φ s ([a],b)+φ s ([a'],b') This gives us the sum of the two plaintexts. This proves that the TLWE ciphertext is an "additively homomorphic encryption". In the TFHE described in the above paper, various calculations are achieved by repeatedly performing additive operations on the TLWE ciphertext with errors added to the plaintext, and reducing the errors by gate bootstrapping.

[0022] In what follows, a "trivial ciphertext" such as ([0],μ) is a TLWE ciphertext that can be decrypted with any private key, i.e., a ciphertext that can be decrypted with any private key to decrypt the same plaintext. In ([0],μ), [0] represents the zero vector. "Trivial ciphertext" can be treated as TLWE ciphertext, but it essentially contains the plaintext as is. The TLWE ciphertext ([0],μ) is decrypted by the decryption function φ s When multiplied by φ s Since (([0],μ))=μ-[s]·0=μ, and the secret key [s] is multiplied by the zero vector [0] and disappears, the plaintext μ can be easily obtained. Such a ciphertext is nothing but a trivial ciphertext for the plaintext μ.

[0023] We explain the finite cyclic groups used in Gate Bootstrapping of TFHE. In Gate Bootstrapping, the quotient ring of a polynomial ring is used as a finite cyclic group. Explain that the quotient ring of a polynomial ring is a finite cyclic group. A polynomial of degree n is generally n x n +a n-1 x n-1 It is expressed as +...+a0. All these sets form a commutative group for the sum of polynomials f(x) + g(x). Also, the product of polynomials, f(x)g(x), has properties similar to a commutative group, except that an inverse does not necessarily exist. Such a group is called a monoid. The distributive law holds for sums and products of polynomials as follows: f(x){g(x)+g'(x)}=f(x)g(x)+f(x)g'(x) Therefore, if we define the sum and product of polynomials as elements, they form a "ring", which is called a polynomial ring.

[0024] In TFHE, we use a polynomial ring whose coefficients are the circle group {T}, and denote such a polynomial ring as T[X]. Let T(X) be a polynomial ring, and let T[X](X n If we decompose it into the form X+T[X] and collect only the remainders, we obtain the remainder ring of the polynomial ring, since this is also a "ring". In TFHE, the quotient ring of a polynomial ring is defined as T[X] / (X n +1).

[0025] The polynomial ring T[X] / (X n +1), using any coefficient μ(μ∈T), Polynomial F(X)=μX n-1 +μX n-2 +···+μX+μ Take out. When we multiply an element F(X) in the quotient ring of a polynomial ring by X, we get μX n-1 +μX n-2 It becomes +···+μX-μ, and the coefficient of the top term changes from positive to negative and appears as a constant term. Multiplying it by X again gives us μX n-1 +μXn-2 +···+μX 2 The same thing happens again: -μX-μ (the coefficient of the top term flips from positive to negative and appears as a constant term). Repeat this process n times to get -μX n-1 -μX n-2 ...-μX-μ and the coefficients of all terms are negative.

[0026] If we continue multiplying by X, -μX n-1 -μX n-2 -μX+μ -μX n-1 -μX n-2 +μX+μ The coefficient of the top term flips from negative to positive and appears as a constant term. If you repeat this 2n times, you get the element F(X)=μX n-1 +μX n-2 Returning to +···+μX+μ, in this way, the top-order coefficient (μ) appears in the bottom-order constant term with its sign inverted (-μ), resulting in an overall shift of one term. That is, polynomial F(X)=μX n-1 +μX n-2 +···+μX+μ is the quotient ring T[X] / (X n +1), it is a finite cyclic group of order 2n. In TFHE, the cryptographic processing device realizes fully homomorphic encryption by utilizing the properties of a polynomial F(X) based on a remainder ring of such a polynomial ring. Regardless of whether the exponent of X is positive or negative, multiplying an element F(X) of the quotient ring of a polynomial ring n times by X reverses the signs of all the terms, and multiplying it 2n times restores the signs of all the terms. Also, X -1 Since multiplying by is the inverse operation of multiplying X, -1 If you continue to multiply it, the opposite change will occur compared to multiplying it by X, -1 Multiplying it n times inverts all the terms, and multiplying it 2n times returns it to its original state. From the above, we can see that the element F(X) of the quotient ring of the polynomial ring has the same structure as X or X-1 Multiplying it n times will invert the signs of all the terms, and multiplying it 2n times will restore the signs of all the terms. In this cyclic group, since it can be rotated in either direction, it is sometimes referred to as multiplying -n times or multiplying -2n times for convenience.

[0027] [TRLWE cipher] In addition to the TLWE cipher, Gate Bootstrapping uses a cipher called the TRLWE cipher. This section explains the TRLWE encryption. The R in TRLWE stands for ring, and TRLWE is an LWE encryption scheme built on rings. Like TLWE, TRLWE is also an additively homomorphic encryption scheme. The ring in TRLWE cryptography is the remainder ring T[X] / (X n +1). To obtain the TRLWE encryption, we use the polynomial ring T[X] / (X n +1) at random. In practice, the n coefficients of the n-1 degree polynomial are selected from the circle group {T} as uniformly distributed random numbers. If the degree of the polynomial is n-1, then X n Let polynomial a(X) be a polynomial of degree n-1, since it cannot be divided by +1 and there is no need to consider the remainder.

[0028] Randomly collect n values ​​from the binary values ​​0 and 1 and construct the polynomial s(X) that will become the secret key below. s(X)=s n-1 X n-1 +s n-2 X n-2 +···s1X+s0 n random numbers e i The average value is the plaintext μ i Let the random numbers be Gaussian (normal) distributed with variance α, and then construct the following polynomial e(X) from these. e(X)=e n-1 X n-1 +e n-2 Xn-2 +···e1X+e0 s(X) a(X) + e(X) is expressed as f(X)(X n +1)+b(X) to obtain b(X). As a result, the TRLWE ciphertext obtained is (a(X), b(X)). Like the TLWE encryption, the TRLWE encryption uses random numbers for encryption, so an infinite number of ciphertexts can be generated for the same secret key and plaintext. In addition, the TRLWE encryption code has the same structure as the TLWE encryption code. s ((a(X),b(X))=b(X)-s(X)·a(X)+g(X)(X n +1), φ s T[X] / (X n The decryption function is defined as g(X) being the element of b(X) + 1. In other words, (b(X)-s(X) a(X))mod(X n +1) serves as the decoding function. mod means the remainder of the division.

[0029] [Gadget Decomposition] Explain Gadget Decomposition. The coefficients of the polynomial used in the TRLWE ciphertext are real numbers between 0 and 1, which are elements of the circle group {T} in FIG. 3, and have only a decimal part. The operation of decomposing this into several bits in binary notation is defined as Gadget Decomposition (Dec) in TFHE of the above paper. For example, if the degree n of the polynomial F(X) of the TRLWE ciphertext is n=2, then one unit of division is Bg=2. 2 Then, decompose it into l=3 elements, where each element is between -Bg / 2 and Bg / 2. The TRLWE ciphertext is a combination of two polynomials, such as (a(X), b(X)) above. Therefore, the TRLWE ciphertext d can be regarded as a two-dimensional vector whose elements are polynomials that are the elements of the remainder ring of the polynomial ring. For example, d=[0.75X 2 +0.125X+0.5,0.25X2 +0.5X+0.375] Therefore, in the following, each element is written as Bg -1 =Decompose into the form of a sum of powers of 0.25.

[0030] On the circle group {T}, 0.75=-0.25, so d=[0.75X 2 +0.125X+0.5,0.25X 2 +0.5X+0.375] =[-0.25X 2 +0.125X+0.5,0.25X 2 +0.5X+0.25+0.125] = [0.25 × (-X 2 +2)+0.25 2 ×2X+0.25 3 ×0,0.25×(X 2 +2X+1)+0.25 2 ×2+0.25 3 ×0] It can be broken down as follows. Therefore, when Gadget Decomposition is performed, Dec(d) = [-X 2 +2,2X,0,X 2 +2X+1,2,0] This becomes the vector.

[0031] We also define an operator H that converts a vector back to a ciphertext. Based on the above example, The matrix TIFF0007556577000001.tif3034 is the inverse transform operator H. The TRLWE ciphertext d is obtained by calculating Dec(d) H. The lower bits are rounded off.

[0032] For a TRLWE ciphertext d, the operation of obtaining [v] such that ||d-[v]·H|| is the minimum value can also be said to be a gadget decomposition, where || is the norm (length) of the vector. All coefficients of e(X) have a mean of 0 and a variance of α, so 2l ciphertexts Zi=(a(X),b(X)) are generated. Then, the plaintext μ is encrypted as follows to obtain the following ciphertext k. TIFF0007556577000002.tif2643This ciphertext k is defined as the TRGSW ciphertext BK. The TRGSW ciphertext BK constitutes the Bootstrapping Key used below.

[0033] Explain Bootstrapping Key. The Bootstrapping Key is a secret key encrypted with the TRGSW cipher for use in Gate Bootstrapping. In addition to the secret key [s] (Nth order) used for the TLWE ciphertext, each element of the secret key [s'] for encrypting the secret key [s] for use in Gate Bootstrapping is selected as a binary value of 0 or 1. The degree of the private key [s'] must be the same as the degree n of the polynomial used in the TRLWE encryption. Create a TRGSW ciphertext BK for each element of the private key [s]. When decrypted with the private key [s'], φ s’ Create 2l (el) TRLWE ciphertexts Zj such that (Zj)=0. And, according to the structure of the TRGSW ciphertext above, Let's say TIFF0007556577000003.tif2539. A set of N TRGSW ciphertexts, the same number as the degree of the secret key [s], is called a Bootstrapping Key.

[0034] The cross product of the TRGSW ciphertext BKi and the TRLWE ciphertext d is BKi×d=Dec(d)·BKi It is defined as: Gadget Decomposition is an operation to obtain [v] such that ||d-[v]·H|| is the minimum value for the TRLWE ciphertext d. Therefore, [v] = Dec(d) and the error (ε a (X),ε b Using (X), [v] H=d+(ε a (X),ε b (X)). As a result, BKi×d=Dec(d)·BKi The result is TIFF0007556577000004.tif2243. The left half calculates the dot product, and the right half calculates [v] H=d+(ε a (X),ε b Substituting (X), we get The result is TIFF0007556577000005.tif1490, which is the same as calculating the sum of the three ciphertexts c1, c2, and c3 below. TIFF0007556577000006.tif1945TRLWE encryption is an additively homomorphic encryption method, so adding two ciphertexts together is the same as adding two plaintexts together. C1 is Z j Since it is the sum of several times, the plain text φ s’ The expected value of (c1) is 0. Also, the decoded φ s’ In (c3), since the magnitude of the absolute value of the plaintext can be restricted by system parameters, it is set to be sufficiently small, including the subsequent calculations.

[0035] Then, φ s’ (BKi×d)=φ s’ (s i × d), but s i Whether s is 0 or 1, the calculation result is the sum of the three ciphertexts c1, c2, and c3. In other words, a simple comparison of s i It is not possible to determine whether it is 0 or 1. Assuming there are two TRLWE ciphertexts d0 and d1 corresponding to plaintexts μ0 and μ1, and substituting d=d1-d0 and finally adding d0, the CMux function shown below is completed. CMux(BK i ,d0,d1)=BKi×(d1-d0)+d0=Dec(d1-d0)·BKi +d0 The CMux function is i If μ0 is 0, the ciphertext of the plaintext μ0 is output without being decrypted, and s i If is 1, the ciphertext of plaintext μ1 is output without decrypting it. The CMux function can calculate the ciphertext corresponding to either the plaintext μ0 or the plaintext μ1, but even looking at the result, it is not possible to tell which one was selected without decrypting it.

[0036] TFHE's binary gate bootstraping is performed using the various pieces of information described above. Binary Gate Bootstrapping consists of three steps: (1) BlindRotate, (2) SampleExtract, and (3) Public Key Switching, as described below.

[0037] FIG. 4 is a conceptual diagram of the operation of binary gate bootstrapping. Binary Gate Bootstrapping reduces the error of the homomorphic operation result between TLWE ciphertexts with respect to the plaintext through the three steps described below. In the following explanation, unless otherwise specified, the plaintext refers to the result of an operation between plaintexts that is the result of an operation between TLWE ciphertexts. In the circle group {T} in Figure 3, plaintexts in the ranges 0 to 0.25(1 / 4) and 0.75(3 / 4) to 1 are converted into a TLWE ciphertext of 0, and plaintexts in the range 0.25(1 / 4) to 0.75(3 / 4) are converted into a ciphertext of 0.25(1 / 4). During this conversion, the error added to the plaintext is within the range of ±1 / 16.

[0038] (1) BlindRotate BlindRotate is performed as the first step in Gate Bootstrapping. BlindRotate is the process that creates the TRLWE ciphertext. In BlindRotate, we convert the trivial TRLWE ciphertext (0,T(X)) with polynomial T(X) as plaintext into X -φs(c’) The TRLWE ciphertext multiplied by is obtained without decryption. 0 indicates the 0th degree polynomial 0. Here, φs(c') is the plaintext obtained by applying the LWE ciphertext c' below to the decryption function. In BlindRotate, the following polynomial F(X) is used as a test vector, which is a finite cyclic group as described above. F(X)=μX n-1 +μX n-2 +…μX+μ where μ=1 / 8 X n / 2 The following polynomial T(X) is obtained by multiplying T(X)=F(X) X n / 2 Prepare the following.

[0039] Suppose there is a TLWE ciphertext c obtained by encrypting plaintext μ1 with a secret key [s]. Each element of this TLWE ciphertext c = ([a], b) is multiplied by 2n and rounded off to obtain the LWE ciphertext c' = ([a'], b'). When the LWE ciphertext c'=([a'],b') is decrypted, μ1'=φ s (c') ≒ 2n × φ s (c) = 2nμ1. Because of rounding errors, the numbers may not match perfectly, but the larger n is, the smaller the error becomes. Prepare a trivial TRLWE ciphertext (0,T(X)) with polynomial T(X) as plaintext, A0=X -b’ ×(0,T(X))=(0,X -b’ ×T(X)). 0 indicates the 0th degree polynomial 0. In this case, since b' is an integer, the power can be naturally defined. In practice, it is sufficient to rotate the coefficients of each term of the polynomial of the TRLWE ciphertext a predetermined number of times. Hereafter, the above-mentioned Bootstrapping Key, BK i Using, in order, A i =CMux(BK i ,A i-1 ,X a’iA i-1 Here too, since a'i is an integer, the power of X can be naturally defined. Similarly, instead of calculating the power of X, we calculate the TRLWE ciphertext A i-1 It is sufficient to rotate the coefficients of each term of the polynomial, which is an element of the polynomial, a predetermined number of times.

[0040] Then, s i When is 0, the plaintext remains unchanged, and s i When is 1, X a’i are multiplied in order. Therefore, If you repeat this with TIFF0007556577000007.tif2849, The result is TIFF0007556577000008.tif749. Where: Since TIFF0007556577000009.tif629 is equal to the decoding function φs(c') with its sign inverted, The result is TIFF0007556577000010.tif741. Here, φ s’ (A n ) is the polynomial T(X) plus X -1 is a polynomial multiplied by μ1' times, and A n is the ciphertext. At this point, we should clarify that the error component of the error-added plaintext e of the initially set TLWE ciphertext c is expressed as the amount of rotation of the polynomial T(X), and is not expressed as the magnitude of the coefficient values ​​of each term. TFHE essentially reduces the error by this mechanism. In addition, for the plaintext μ1 of the TLWE ciphertext c related to BlindRotate, we add X to the polynomial T(X). -1 Since a unique value (up to 2n values ​​by inverting n coefficients and their signs) corresponding to the number of times μ1' (= 2nμ1) is multiplied is obtained as the coefficient of the constant term of the plaintext polynomial, this can also be considered as a kind of look-up table.

[0041] (2)SampleExtract TRLWE ciphertext A obtained by BlindRotate in (1)n The plaintext polynomial φ obtained by decrypting s’ (A n ), counting from the lower terms, we get n / 2-φ s The coefficient of the (c')th term is -μ, and if it becomes negative, the coefficient of the term from the top down will be -μ. TRLWE Ciphertext A n The plaintext polynomial φ obtained by decrypting s’ (A n ), if we look only at the constant term of φ s (c') is greater than or equal to n / 2 and less than 3n / 2, i.e., φ s If (c) is 1 / 2±1 / 4, the constant term is μ. Otherwise, that is, if φs(c) is ±1 / 4, the constant term is -μ. SampleExtract is the TRLWE ciphertext A obtained by BlindRotate in (1). n From this, we can obtain the plaintext polynomial φ without decrypting it. s’ (A n ) to obtain the TLWE ciphertext cs. As mentioned above, the error added to the initial input TLWE ciphertext c and the error added by rounding only affect the position of the boundary where the plaintext μ and -μ of the constant term switch, and the effect on the magnitude of the coefficient of the constant term is negligibly small. In other words, it can be interpreted as eliminating input errors. Also, the range within which the boundary where the plaintext value of the constant term changes can be moved without any problems is the error limit for which bootstrap processing can be performed correctly, and this is the mechanism that creates the trade-off described below.

[0042] The process for obtaining the TLWE ciphertext cs will now be described. All TRLWE ciphertexts have degree n, Taking TIFF0007556577000011.tif1134 and a polynomial, it can be expressed as (A(X),B(X)). When this is decrypted with the private key [s'], the polynomial of the private key is Put it as TIFF0007556577000012.tif636, It can be expanded as TIFF0007556577000013.tif7116.

[0043] For this, the following calculation is carried out: I get TIFF0007556577000014.tif82136. Since it is a "modulus ring of a polynomial ring", (X n +1), we get the remainder The result is TIFF0007556577000015.tif18156.

[0044] moreover, If you put TIFF0007556577000016.tif1046, The file name becomes TIFF0007556577000017.tif38143. The coefficients of each term of the plaintext polynomial can be found from TIFF0007556577000018.tif776. Of these, what we need is the coefficient of the constant term, so if we extract the coefficient for j=0, we get The result is TIFF0007556577000019.tif638. If you put TIFF0007556577000020.tif620, It can be transformed into a TLWE encryption decryption function, such as TIFF0007556577000021.tif8114.

[0045] In other words, the TRLWE ciphertext A obtained by BlindRotate in (1) n =(A(X),B(X)), the coefficients are When extracted as TIFF0007556577000022.tif1055, the original TRLWE ciphertext A n A new TLWE ciphertext ([a”], b1) is obtained, whose plaintext is the same as the constant term of the plaintext polynomial corresponding to a. This new TLWE ciphertext is the output of SampleExtract, and has two plaintexts: -μ or μ. The obtained TLWE ciphertext is added to the trivial ciphertext ([0],μ) whose plaintext is μ to obtain the TLWE ciphertext cs=([a”],b1)+([0],μ). Specifically, since μ=1 / 8 in the polynomial F(X) serving as the test vector, ciphertexts of −1 / 8 and 1 / 8 are obtained at this stage. Adding to this the trivial TLWE ciphertext ([0],1 / 8) with plaintext μ=1 / 8 gives us -1 / 8+1 / 8=0 1 / 8+1 / 8=1 / 4 From this, a new TLWE ciphertext cs is obtained, which has one of the two plaintext values ​​0 or 1 / 4.

[0046] (3) Public Key Switching The TLWE ciphertext cs obtained by SampleExtract in (2) is encrypted with the private key [s'], not the private key [s]. Therefore, it is necessary to replace the key of the TLWE ciphertext cs with the secret key [s] without decrypting the TLWE ciphertext cs, and return it to a state encrypted with the secret key [s]. Therefore, we will explain the Public Key Switching technique. The secret key [s] of the TLWE ciphertext used in TFHE is an N-dimensional vector. This is used to encrypt the secret key [s'] of the n-th vector used when creating the Bootstrapping Key. That is, TIFF0007556577000023.tif746 and the elements of the circle group {T}, real numbers between 0 and 1, are encrypted as shifted values ​​for each digit when expressed in binary. The private key is [s]. The "number of digits" t is a system parameter. When decrypted with the private key [s], The result is TIFF0007556577000024.tif737. This is the "key switching key". As mentioned above, the TLWE ciphertext cs = ([a], b) obtained in (2) is a value of 0 or 1 / 4 encrypted with the private key [s']. The number of elements of [a] is n, the same as the private key [s']. If we convert each of these into a t-bit fixed-point number, we get It can be written in the format TIFF0007556577000025.tif735. At this stage the error increases, but the maximum absolute value can be constrained by system parameters. As part of the Public Key Switching process, the following TLWE ciphertext cx is calculated. The term TIFF0007556577000026.tif862([0],b) is a trivial ciphertext, so when decrypted it becomes b. When the result of decrypting the TLWE ciphertext cx is calculated, The file is TIFF0007556577000027.tif8118. s' i Since is a constant for j, we can factor it out as Enter TIFF0007556577000028.tif749 and substitute the formula that was decomposed into fixed decimal points above. TIFF0007556577000029.tif977As a result, The file will be TIFF0007556577000030.tif530, which means the key change was successful.

[0047] The TLWE ciphertext cx obtained here is encrypted with the same secret key [s] as the TLWE ciphertext c that was input to Gate Bootstrapping. By performing the public key switching process, the TLWE ciphertext is restored to the TLWE ciphertext encrypted with the private key [s], and s If (c) is within ±1 / 4, then the plain text φ s (cx) is 0, φ s If (c) is in the range of 1 / 2±1 / 4, then the plaintext φ s (cx) is now 1 / 4. Through the above process, the result of Gate Bootstrapping was a TLWE ciphertext that was one of two values, 0 or 1 / 4, with an error within ±1 / 16. The maximum error does not depend on the input TLWE ciphertext c, but is fixed by the system parameters. Therefore, the system parameters are set so that the maximum error value is within ±1 / 16 of the input TLWE ciphertext. This makes it possible to perform NAND operations any number of times, making all kinds of operations possible, including addition and multiplication.

[0048] The errors in the "plaintext" of the TLWE cipher output from Gate Bootstrapping are the error added when the TLWE ciphertext is converted to an integer, the error added by CMux, the error when it is converted to a fixed-point number by Public Key Switching, etc. All of these errors can be constrained by system parameters, and the system parameters can be adjusted so that the error taking all of these into consideration is ±1 / 16. This completes the TFHE Gate Bootstrapping process.

[0049] As described above, TFHE is a bit-wise homomorphic encryption method that has 0 or non-0 as plaintext and performs logical operations. However, as explained in Figure 3, the plaintext is a real number between 0 and 1 that is associated with the circular group {T}. Therefore, by associating integers with the intervals that divide the circular group {T} in order, it can be used as an integer-wise homomorphic encryption method that has integers as plaintext.

[0050] FIG. 5 is a diagram for explaining the TFHE applied to the integer-wise type. As shown in Figure 5, the range of values ​​from 0 to 1 associated with the circular group {T} is divided into t parts. In a TLWE ciphertext, the possible values ​​of the plaintext are the t values ​​obtained by dividing the range of values ​​from 0 to 1, -(t / 2) to (t / 2)-1, and (t / 2)-1 is the maximum value of the integer that can be recorded in one TLWE ciphertext. As shown in FIG. 5, when t=10 and the range of 0 to 1 is divided into 10 parts, the ciphertext can express integers of -5, -4, -3, -2, -1, 0, 1, 2, 3, and 4. These integer values ​​are assigned to intervals centered on -5 / t, -4 / t, -3 / t, -2 / t, -1 / t, 0 / t, 1 / t, 2 / t, 3 / t, and 4 / t, which are obtained by dividing the range of 0 to 1 of the circular group {T} into t=10 parts. In this way, as shown in FIG. 5, it is possible to assign consecutive integers counterclockwise from the area centered on 1 / 2, which is the minimum value when expressed as an integer.

[0051] As shown in Figure 5, 0(1) on the circle group {T} lies in the range of -1 / (2t) to 1 / (2t). If necessary, the plaintext of the ciphertext on the circular group {T} can be adjusted in its position within the domain (its position on the circular group {T}) by adding or subtracting an offset based on, for example, 1 / (2t) to the state in Figure 5. Although there is no essential difference, in the embodiment described below, the meaning of the division number t of the circle group is different from that described in FIG.

[0052] The calculation of odd and even functions is explained below. 6 to 8 are diagrams for explaining the integer-wise TFHE in this embodiment. As in FIG. 5, FIG. 6(b) shows a state where no offset is added to the plaintext (the offset to the plaintext is 0). Figure 6(a) shows the state where an offset of, for example, +1 / (4t) is added to the plaintext of the ciphertext shown in Figure 6(b). By adding an offset, it is possible to change the slicing of the circle group {T}. In the following description, the right and left halves of the circle group are assumed to conform to the state shown in FIG. 6(a) to which an offset of 1 / (4t) has been applied.

[0053] Suppose we have a TLWE ciphertext ca that we want to use as an argument to the function f we want to calculate. The TLWE ciphertext ca is a TLWE ciphertext with the structure shown in FIG. 6(a), in which the right half is divided into t pieces, the left half is divided into t pieces, and the entire circular group {T} is divided into 2t pieces. In the following, the range 0 to 1 of the circle group {T} may be taken to be −0.5 to 0.5 (−1 / 2 to 1 / 2). As shown in FIG. 6(a), the TLWE ciphertext ca has as plaintext the real number a / (2t)+1 / (4t) corresponding to the integer a, which cannot be known without the private key. Note that a / (2t)+1 / (4t) is a plaintext without any error, and a value with an error is actually stored as the plaintext. Here, the cryptographic processing device 1 sets the system parameters so that the range of error added to the plaintext is less than ±1 / {4(t+1)}. In this embodiment, in the TLWE ciphertext ca, the right half plane of the circular group {T} corresponds to plaintext that is a non-negative integer, and the left half plane corresponds to plaintext that is a negative integer. The plaintext of the TLWE ciphertext ca is a / (2t) because the entire circular group is divided into 2t parts.

[0054] In Figure 6(a), on the left half of the circle group {T}, which handles negative numbers, the integers -t to -1 are expressed counterclockwise from the top using slices starting from -t / (2t) to -1 / (2t). On the right half of the circle group {T}, which deals with 0 and positive numbers (non-negative numbers), integers 0 to t-1 are represented using slices starting from 0 / (2t) to t-1 / (2t), going counterclockwise from the bottom.

[0055] In the TLWE ciphertext ca, integer values ​​are assigned to each interval of 1 / (2t) into which the circular group {T} is divided. The possible plaintext integer values ​​for a TLWE ciphertext are 2t values ​​-t to t-1, which are the values ​​divided from the range 0 to 1. t-1 is the maximum integer value that can be recorded in a single TLWE ciphertext, and -t is the minimum integer value that can be recorded in a single TLWE ciphertext.

[0056] As shown above, the TLWE ciphertext ca has an offset of 1 / (4t) added to the plaintext, so for example, the plaintext corresponding to the integer 0 is distributed around 0+1 / 4t in the circular group {T} with an error added. This makes it possible to set the position of 0 in the circular group {T} as the boundary between the integers 0 and -1. The range of 0 is from 0 to 1 / 2t on the circular group {T}, and the slice is divided so that each block is adjacent to that block in order. In the state where no offset is added, as shown in Figure 6(b), 0 (1) on the circular group {T} is within the slice of -1 / (4t) to 1 / (4t) (the noise added to the plaintext before and after 0 is one slice). In this case, since the area around 0.5 cannot be used, the entire circular group cannot be used. As shown in Figure 6(a), by adding an offset, we can map the integer 0 to the slice (0 / 2t) on the circle group {T} starting from 0 and center the plaintext in the slice, while the other slices start from X / 2t (where X is a plaintext integer).

[0057] In Fig. 6(a), the plaintext with the offset is located in the center of each slice (e.g., the slice starting from 1 / (2t)) within the error range of ±1 / 4t. In this case, the mean of the normal distribution is, for example, 1 / (2t)+1 / 4t, and in most cases it is distributed within the error range of ±1 / 4t, so that the plaintext is distributed in the center of the slice starting from 1 / (2t). In Fig. 6(a), the plaintext with an offset is shown only for the slice of 1 / (2t), but this is merely an example, and all slices have plaintext with an offset added to the starting value. The same applies to Fig. 7 described later.

[0058] As described above, the ciphertext in Fig. 6(a) divides the right half of the circular group {T} into t pieces and the left half into t pieces. The right half of the circular group {T} corresponds to 0 and positive plaintext integers (0 to t-1), and the left half corresponds to negative plaintext integers (-1 to -t). The width of one block (slice) is 1 / (2t). Integer values ​​are assigned to 2t slices of the range 0 to 1 (-1 / 2 to 1 / 2) of the circle group {T}, starting from -t / (2t) to (t-1) / (2t). Non-negative integers are assigned to slices starting at 0 / (2t), 1 / (2t), …, (t-3) / (2t), (t-2) / (2t), (t-1) / (2t) in the right-plane, while negative integers are assigned to slices starting at -t / (2t), -(t-1) / (2t), -(t-2) / (2t) …, -1 / (2t) in the left-plane. These slices are centered on the starting value with an offset of +1 / (4t). The 1 / (4t) offset is equivalent to half the slice width of 1 / (2t). If the 1 / 4t offset is expressed as an integer, it can be conveniently expressed as an offset of +0.5.

[0059] As shown in Figure 6(a), when the range of the circular group is divided into 8 parts with 2t=8 (t=4), the right half of the circular group {T} can represent integers from 0 to 3 (=t-1), and the left half can represent integers from -4 (=-t) to -1. In other words, the entire ciphertext can represent integers -4, -3, -2, -1, 0, 1, 2, and 3. These integer values ​​are assigned to the intervals that divide the range of the circle group {T} into 2t = 8 intervals, starting with -4 / (2t), -3 / (2t), -2 / (2t), -1 / (2t), 0 / (2t), 1 / (2t), 2 / (2t), and 3 / (2t). Integers are assigned counterclockwise from the range starting with 1 / 2. Note that, taking the above offset of 0.5 into account, a slice on the right side starting at, say, 1 / (2t) is a slice centered at 1.5 / (2t), and a slice on the left side starting at, say, -4 / (2t) is a slice centered at -3.5 / (2t). The integers expressed with the offset included are, counterclockwise from the top, -3.5, -2.5, -1.5, -0.5, 0.5, 1.5, 2.5, and 3.5.

[0060] By increasing the value of t and dividing the circle group {T} into smaller parts, it is possible to make it larger than the range of integer values ​​that can be recorded in the TLWE ciphertext, but if it is divided too finely, the error range added to the plaintext becomes too small, which reduces the strength of the cipher. This point will be explained later. The offset value 1 / (4t) is an example and is not limited to this, but the polynomial and parameters must be adjusted depending on the offset value.

[0061] A method for calculating odd and even functions using the circle group in FIG. 6 will now be described. Below, we will explain <Method 1> and its application, <Method 2> for calculating odd functions, and <Method 3> and <Method 4> for calculating even functions. [Odd Function] The definition of an odd function is that a function f(x) of real number x satisfies f(-x) = -f(x). The cryptographic processing device 1 assumes that an odd function to be calculated is f(x), and calculates a new ciphertext having a plaintext of f(a+0.5) from the plaintext integer value a of the TLWE ciphertext ca.

[0062] <Method 1> This is the technique corresponding to (a-1) in FIG. The cryptographic processing device 1 is a step-like one-variable polynomial function (one-variable function) F id (X) Using TIFF0007556577000031.tif1063, the first bootstrap is performed on the TLWE ciphertext ca to calculate the TLWE ciphertext cb shown in Figure 7, in which the values ​​(corresponding integer values) on the left half plane of the circular group {T} that handles negative numbers are flipped upside down. Gate Bootstrapping includes BlindRotate, SampleExtract, and Public Key Switching. To calculate a one-variable function on an encrypted integer value, a method that extends the Gate Bootstrapping method described in the above paper (Non-Patent Document 1) can be used. This method is described in the paper "Bootstrapping in FHEW-like Cryptosystems, Daniele Micciancio and Yuriy Polyakov Duality Technologies February 23, 2020." In the disclosed method, the coefficient of the test vector is not set to a constant μ, but rather the result of the function is set to obtain a different result depending on the value of the TLWE ciphertext.

[0063] Figure 7 shows the circle group corresponding to the TLWE ciphertext cb. As shown in Figure 7, the one-variable function F id As a result of the first bootstrap using TLWE, the left half of the ciphertext cb, which is the area used for negative numbers, is upside down compared to the TLWE ciphertext ca. A one-variable function F id For an input of a ciphertext of a non-negative integer 0 to t-1, the function F outputs a ciphertext of the same non-negative integer 0 to t-1, and adds an offset of 0.5 to the plaintext. id For input of a ciphertext of a negative integer -t to -1, it outputs a ciphertext of integers -1 to -t, and adds an offset of 0.5 to the plaintext integer. As shown in Figure 6, the width of the slice that one integer corresponds to in the TLWE ciphertext ca is 1 / (2t), and adding an offset of 0.5 to the plaintext integer a in the TLWE ciphertext cb is equivalent to adding an offset of 1 / (4t) to the plaintext real number a / (2t), etc. The +1 / (4t) offset part for the plaintext is included in the integer representation and expressed as +0.5.

[0064] In Figure 6(a), if there is a plaintext on the right half plane of the circle group {T} (the plaintext is a non-negative number), the one-variable function F idAs a result of the above process using , the plaintext integer of the TLWE ciphertext cb remains within the same slice (area) of the circular group {T} as shown in Fig. 7. On the other hand, if the plaintext is a negative number -t to -1 and is located on the left half plane of the circular group {T}, the plaintext integer of the TLWE ciphertext cb will be upside down in the circular group {T} as shown in Fig. 7 as a result of the above process. For example, as shown in FIG. 6, when the plaintext integer a in the TLWE ciphertext ca is -1, its value on the circle group {T} is in the range of -1 / 2t to 0. Therefore, the polynomial F id The most significant block of the term is inverted and appears at the lowest position. Therefore, the plaintext of the TLWE ciphertext cb after the first bootstrap is -1 / 2+1 / 4t as a value on the circle group, and -t as an integer. If the plaintext integer a in the TLWE ciphertext ca is -t, then its value on the circle group {T} is -t / 2t+1 / 4t=-1 / 2+1 / 4t, which is in the block closest to -1 / 2 on the left half plane. id Since the sign-negated term of the lowest block of is obtained as the TLWE ciphertext cb after the first bootstrap, the plaintext of the TLWE ciphertext cb is −1 / 4t as a value on the circle group, or −1 as an integer.

[0065] In the right half of Figure 7, integers from 0 to t-1 are assigned to slices from 0 / (2t) to 3 / (2t) counterclockwise from the bottom, and the order of plaintext integers is the same as in Figure 6(a). On the other hand, on the left half, integers from -1 to -t are assigned to slices from -t / (2t) to -1 / (2t) in a counterclockwise direction from the top, reversing the order from that in Figure 6(a). In the ciphertext cb shown in Fig. 7, the integers, starting from the top of the circular group {T}, are -1, -2, -3, -4, 0, 1, 2, and 3. Positive and negative values ​​are lined up consecutively in the circular group {T}.

[0066] In FIG. 6(a), for example, if the TLWE ciphertext ca is a ciphertext of -1, the plaintext is in the interval -1 / (2t)~0 on the circle group {T}. As a result of the above process, in the TLWE ciphertext cb, a one-variable function Fid The most significant block of the term appears at the lowest position with its sign inverted. Therefore, in Fig. 7, the plaintext of the TLWE ciphertext ca is -1 / 2+1 / (4t) as a value on the circle group {T}. In Fig. 6(a), this plaintext corresponds to the integer -t (=-4), but in the ciphertext cb shown in Fig. 7, -1 is assigned as the plaintext integer. In Figure 6(a), for example, if the TLWE ciphertext ca is a ciphertext of -t, the plaintext is distributed around -t / (2t)+1 / (4t) on the circular group {T} (a value slightly larger than -1 / 2), so the plaintext is in the section on the circular group {T} closest to -1 / 2. As a result of the above process, in the TLWE ciphertext cb, the term in the lowest block of the one-variable function Fid appears with its sign inverted. Therefore, in Fig. 7, the plaintext of the TLWE ciphertext ca is -1 / (2t)+1 / (4t) as a value on the circle group {T}. This plaintext corresponds to the integer -1 in Fig. 6(a), but in the ciphertext cb shown in Fig. 7, -t (=-4) is assigned as the plaintext integer.

[0067] In general, the plaintext of the TLWE ciphertext ca, whose plaintext is a non-negative number, becomes a / (2t)+1 / (4t) when ciphertexted by cb, and the plaintext integer remains a. In contrast, the plaintext of the TLWE ciphertext ca, whose plaintext is a negative number, is -(t+1+a) / (2t)+1 / (4t) in the TLWE ciphertext cb. If we look at only the numerator of the plaintext, if the plaintext integer a is -1, then -(t+1+a)=-{t+1+(-1)}=-t, and if the plaintext integer a is -t, then -(t+1+a)=-{t+1+(-t)}=-1. We can confirm that this matches when the plaintext of the TLWE ciphertext cb is considered as an integer. As a result of this process, an offset is added to the plaintext by the 1 / 4t term added to the polynomial term, so that the slice boundaries in the ciphertext cb in Figure 7 are aligned to the positions of the zeros in the circle group, just like in the ciphertext ca in Figure 6. In this way, when the plaintext is a negative number, the plaintext to which integers are assigned changes. In other words, if the plaintext of ciphertext cb is viewed as an integer symbol and has the same value as the integer of ciphertext ca, the correspondence between the plaintext slices and integers of ciphertext cb is different from that of ciphertext ca. When looking at this correspondence, the order of the plaintext slices in the circle group itself does not change between ciphertext ca and ciphertext cb, but in the left half where negative numbers are assigned, the order of the plaintext integers assigned to the plaintext is reversed.

[0068] In Figure 7, where t = 4 (2t = 8), the 0.5 offset mentioned above is added to the plaintext of the ciphertext, so the plaintexts located in the center of the slice, going left (counterclockwise) from the top (1 / 2) of the circle group {T}, are -3.5 / (2t), -2.5 / (2t), -1.5 / (2t), -0.5 / (2t), 0.5 / (2t), 1.5 / (2t), 2.5 / (2t), and 3.5 / (2t). These slices are assigned the plaintext integers -1, -2, -3, -4, 0, 1, 2, and 3 in counterclockwise order as the plaintext integers of the ciphertext ca that was used to generate the ciphertext cb. The integers that represent the offset of 0.5 are -0.5, -1.5, -2.5, -3.5, 0.5, 1.5, 2.5, and 3.5, starting from the top of the circle group {T}.

[0069] Next, the cryptographic processing device 1 extracts only values ​​when x is non-negative from the calculation results of the function f(x), and converts them into the following test vector polynomial F f Create (X). TIFF0007556577000032.tif1171Then, the cryptographic processing device 1 uses this test vector polynomial F f A second bootstrap is performed on the ciphertext cb using (X) to obtain the TLWE ciphertext cc. When the TLWE ciphertext cb is non-negative, that is, when the plaintext integer a is 0, 1, 2, ..., it lies in the right half-plane (0 to 0.5) of the circular group, so the TLWE ciphertext cc is obtained without sign inversion, with the plaintext values ​​f(0.5), f(1.5), f(2.5), .... On the other hand, if the TLWE ciphertext cb is negative, that is, if the plaintext integer a is -1, -2, -3..., the integers are in the range 0.5 to 1 in that order, so the sign is reversed and the TLWE ciphertext cc is obtained with the plaintext values ​​-f(0.5), -f(1.5), -f(2.5).... If f(x) is an odd function, then the plaintext φ(cc) obtained from the ciphertext cc corresponding to a = -1, -2, -3, ... will be equal to f(-0.5), f(-1.5), f(-2.5), ..., respectively. In other words, in addition to the above example of the non-negative case, it was possible to calculate the ciphertext cc corresponding to the result of the operation of the odd function, which satisfies φ(cc) = f(a + 0.5).

[0070] <Application of Method 1> <Method 1> can be applied to all cases where linear functions are calculated, and corresponds to (a-2) in Figure 2. First, let us consider an odd function f(x)=mx (m is a real number). The general formula for a linear function is often expressed as ax+b, but it becomes an odd function only when b=0. Using <Method 1>, we can calculate φ(cc)=f(a+0.5)=am+0.5m. As an additional step to <Method 1>, we add the trivial ciphertext (0,m'-0.5m) to the TLWE ciphertext cc to obtain the ciphertext cd. Here, we consider the function f, and therefore m, to be fixed, so m is a constant. Then, φ(cd) = φ(cc + (0, m'-0.5m)) = φ(cc) + m'-0.5m = (am + 0.5m) + m'-0.5m = am + m', and linear functions can be calculated in a general way.

[0071] <Method 2> We will explain the calculation method for the general odd function. This corresponds to (a-3) in Figure 2. In the case of the above linear function, if the intercept is 0, it is an odd function, so it can be calculated using the following procedure. The test vectors for the first bootstrap are calculated using the following polynomial F' id Change to. TIFF0007556577000033.tif1076

[0072] As shown in Fig. 8, the TLWE ciphertext cb is the F id Unlike in the previous example, the denominator is slightly larger and the slices are smaller. As a result, the denominator simply becomes larger, so as shown in Figure 8, if the plaintext is on the right half of the circle group (non-negative numbers), it will lean slightly toward 0. And if it is on the left half (negative numbers, i.e. -t~-1), the "up and down" is reversed from Figure 6, and this will also lean slightly toward 0. For example, if a is -1, the value on the circle group is in the range -1 / 2t~0. Therefore, F' id Since the term in the most significant block of a has its sign inverted and appears at the bottom, the plaintext of the TLWE ciphertext after bootstrapping is -(t-1) / {2(t+1)}-1 / {4(t+1)}=-t / {2(t+1)}+1 / {4(t+1)} as a value on the circular group, or -t as an integer (because the denominator is larger, the minimum and maximum values ​​that can be held are also wider, allowing it to hold -(t+1) to t). Also, when a is -t, the value on the circular group is -t / 2t+1 / 4t=-1 / 2+1 / 4t, which means it is the block closest to -1 / 2. This means that F' id The sign of the lowest block of t is inverted and the TLWE ciphertext after bootstrap is obtained, which is -1 / {4(t+1)}, or the integer -1.

[0073] Generalizing, if a is a positive number, the plaintext of the TLWE ciphertext cb is a / {2(t+1)}+1 / {4(t+1)}, and a remains an integer. If a is negative, the plaintext of the TLWE ciphertext cb is -(t+1+a) / {2(t+1)}+1 / {4(t+1)}, which is the integer -(t+1+a). The denominator has become larger and the number of slices has increased by one on each side, so the coordinates on the circle group have changed, but when viewed as integers, they have the same symbols as in Method 1. In addition, the result of this process is offset by the 1 / 4t term in addition to the polynomial terms, so that the 0 position of the circle group is exactly the boundary of the slice, as shown in Figure 8.

[0074] The cryptographic processing device 1 extracts only values ​​where x is non-negative from the calculation results of the function f(x) to be processed, and generates a test vector polynomial F f 'Create (X). TIFF0007556577000034.tif972 The cryptographic processing device 1 uses the created test vector polynomial F f '(X) is used to bootstrap the TLWE ciphertext cb to obtain the TLWE ciphertext cc. Note that the function f(x) is a function that takes an integer as an argument and obtains an integer. Then, as shown in Figure 8, when the TLWE ciphertext cb is non-negative, that is, when the plaintext integer a = 0, 1, 2, ..., it is on the right side of the circular group (0 to 0.5), so the ciphertext cc is obtained with the plaintext values ​​f(0), f(1), f(2), ... without inverting the sign. Furthermore, as shown in Figure 8, when the TLWE ciphertext cb is negative, that is, when the plaintext integer a is -1, -2, -3..., the integers lie in the range 0.5+1 / 2(t+1) to 1, so the sign is inverted and the ciphertext cc is obtained with the plaintext values ​​-f(1), -f(2), -f(3).... If f(x) is an odd function, then -f(x) = f(-x). Therefore, φ(cc) = f(a).

[0075] Next, a method for calculating the even function will be described. The definition of an even function is that a function f(x) of real number x satisfies f(-x) = f(x). <Method 3> This is the technique corresponding to (b-1) in FIG. The cryptographic processing device 1 calculates the following polynomial F abs (X) Using TIFF0007556577000035.tif983 as a test vector, the third bootstrap is performed on the TLWE ciphertext ca to calculate a new ciphertext cb (Figure 9). The ciphertext cb is subjected to the transformations shown in FIG. 9 and FIG.

[0076] FIG. 10 is a diagram for explaining the transition of the ciphertext value in this embodiment (even function), and shows the plaintext of the ciphertext cb obtained as a result of the third bootstraping. In FIG. 9, the numerical values ​​on the outermost periphery of the right half of the panel are arranged in the same order as the coefficients of the test vector polynomial, while the left half of the panel has the inverted values ​​arranged upside down. The explanation will be given assuming that t=4. If the plaintext integer a is nonnegative, the plaintext lies on the right half plane of the circle group {T}, so F abs In (X) k / {2(t+1)}+1 / {4(t+1)}-1 / 4, if we set the denominator to 4×(t+1)=20, Since 2k / {4(t+1)}+1 / {4(t+1)}-(t+1) / {4(t+1)}, we get {2k+1-(t+1)} / 20=(2k-4) / 20. Since t=4, the plaintext b of the ciphertext cb, when viewed as values ​​on the circular group rather than integers, is arranged as b=-4 / 20 when a=0, b=-2 / 20 when a=1, etc., as shown in Figure 9.

[0077] F abs As a result of the third bootstrap, if the plaintext integer a is negative, the sign is inverted toward 0.5 to 1. Therefore, as shown in Figure 9, the plaintext b of the ciphertext cb becomes b=4 / 20 when a=0 if a=-4, and b=-2 / 20 when a=3 if a=-1. As shown in Figure 10, the value of plaintext b on the circle group is When the plaintext integer a is -4, the result is 4 / 20. When the plaintext integer a is -3, the result is 2 / 20. When the plaintext integer a is -2, the result is 0 / 20. When the plaintext integer a is -1, it is -2 / 20. When the plaintext integer a is 0, it is -4 / 20. When the plaintext integer a is 1, it is -2 / 20. When the plaintext integer a is 2, the odds are 0 / 20. When the plaintext integer a is 3, the result is 2 / 20.

[0078] The cryptographic processing device 1 adds the trivial ciphertext (0, 1 / 4) to the ciphertext cb to obtain the TLWE ciphertext cc. Since 1 / 4 is 5 / 20 when the denominator is aligned with the above value, 5 is added to the numerator of the plaintext b in the ciphertext cb, and all of the plaintext b is concentrated on the right half. As shown in Figure 10, the value of b+5 / 20 on the circle group is When the plaintext integer a is -4, the result is 9 / 20. When the plaintext integer a is -3, the result is 7 / 20. When the plaintext integer a is -2, the probability is 5 / 20. When the plaintext integer a is -1, the probability is 3 / 20. When the plaintext integer a is 0, the probability is 1 / 20. When the plaintext integer a is 1, the probability is 3 / 20. When the plaintext integer a is 2, the probability is 5 / 20. When the plaintext integer a is 3, the answer is 7 / 20.

[0079] In this case, since the denominator of the plaintext b is 20 and the numerator increases in increments of 2, the ciphertext cc can be seen as a non-negative ciphertext when the entire circle group {T} is divided into 10 (the right half is divided into t+1=5). If we consider it as a division into 10 parts, the integer representation of b+5 / 20, which is the plaintext of the ciphertext cc, is as shown in Figure 10. When the plaintext integer a is -4, 9 / 20=4.5 / 10⇒4, When the plaintext integer a is -3, 7 / 20=3.5 / 10=3, When the plaintext integer a is -2, 5 / 20=2.5 / 10⇒2, When the plaintext integer a is -1, 3 / 20=1.5 / 10⇒1, When the plaintext integer a is 0, 1 / 20=0.5 / 10⇒0. When the plaintext integer a is 1, 3 / 20=1.5 / 10⇒1. When the plaintext integer a is 2, 5 / 20=2.5 / 10⇒2. When the plaintext integer a is 3, 7 / 20=3.5 / 10⇒3. The order of the numbers also increases as a gets further away from positive or negative with a=0 as the base, so it can be said to be the calculation of the absolute value function. In other words, we can say that φ(cb)=|a|, where || is the absolute value symbol. Furthermore, since the plaintext of the ciphertext cc uses only the right half plane of the circle group {T}, the cryptographic processing device 1 can evaluate any one-variable function using the technique of Non-Patent Document 3.

[0080] The cryptographic processing device 1 determines that the function f(x) is a function that can obtain an integer using an integer as an argument, as follows: The fourth bootstrap is performed on the ciphertext cc using TIFF0007556577000036.tif1072 to calculate the ciphertext cd. Here, as mentioned above, cb only uses the right-hand side, so φ(cc) = f(φ(cb)). Then, by substituting φ(cb) = |a|, we can calculate that φ(cc) = f(|a|), where || is the absolute value symbol. If f(x) is an even function, then when x is real, f(x) = f(-x), or f(x) = f(|x|), always holds, so φ(cc) = f(a).

[0081] <Method 4> This is the technique corresponding to (b-2) in FIG. In the case of an even function, if you shift the x in the even function f(x) by 0.5 to obtain f(x+0.5), there is no need to increase the denominator of the plaintext of the intermediate ciphertext cb. FIG. 11 is a diagram for explaining the transition of the value of the ciphertext in this embodiment (even function), and shows the transition of the polynomial F' abs The figure shows the plaintext of the ciphertext cb obtained as a result of bootstrapping using

[0082] The cryptographic processing device 1 calculates the following polynomial F' abs (X) Using TIFF0007556577000037.tif972 as a test vector, the third bootstrap is performed on the ciphertext ca to calculate the ciphertext cb. As shown in Figure 11, the value of plaintext b on the circle group is When the plaintext integer a is -4, it is (-3 / 16), When the plaintext integer a is -3, it is -(-1 / 16), When the plaintext integer a is -2, it is -1 / 16. When the plaintext integer a is -1, it is -3 / 16. When the plaintext integer a is 0, it is -3 / 16. When the plaintext integer a is 1, it is -1 / 16. When the plaintext integer a is 2, the probability is 1 / 16. When the plaintext integer a is 3, the result is 3 / 16.

[0083] Here, the cryptographic processing device 1 adds the obvious ciphertext (0, 1 / 4) to the ciphertext cb. Since 1 / 4 is 4 / 16 when the denominator is aligned with the above value, 4 is added to the numerator of the plaintext b in the ciphertext cb, and all of the plaintext b is concentrated on the right half. As shown in Figure 11, the value of b+4 / 16 on the circle group is When the plaintext integer a is -4, it is 7 / 16. When the plaintext integer a is -3, it is 5 / 16. When the plaintext integer a is -2, it is 3 / 16. When the plaintext integer a is -1, the value is 1 / 16. When the plaintext integer a is 0, it is 1 / 16. When the plaintext integer a is 1, it is 3 / 16. When the plaintext integer a is 2, it is 5 / 16. When the plaintext integer a is 3, the result is 7 / 16.

[0084] In this case, since the denominator of the plaintext b is 16 and the numerator increases in increments of 2, the ciphertext cc can be seen as a non-negative ciphertext when the entire circular group {T} is divided into 8 parts (the right half is divided into t = 4 parts) and used. If we consider it as 8 divisions, the integer representation of b+4 / 16, which is the plaintext of the ciphertext cc, is as shown in Figure 11. When the plaintext integer a is -4, 7 / 16=3.5 / 8⇒3.5. When the plaintext integer a is -3, 5 / 16=2.5 / 8⇒2.5. When the plaintext integer a is -2, 3 / 16=1.5 / 8⇒1.5, When the plaintext integer a is -1, 1 / 16=0.5 / 8⇒0.5. When the plaintext integer a is 0, 1 / 16 = 0.5 / 8 ⇒ 0.5. When the plaintext integer a is 1, 3 / 16=1.5 / 8⇒1.5. When the plaintext integer a is 2, 5 / 16=2.5 / 8⇒2.5. When the plaintext integer a is 3, 7 / 16=3.5 / 8⇒3.5.

[0085] According to FIG. 11, we can see that the absolute value function is calculated by folding back at the position of 0 of the circle group. We can say that φ(cc) = |a+0.5|. If we let a2 = a+0.5, we can say that φ(cc) = |a2|, where || is the absolute value symbol. The cryptographic processing device 1 performs the one-variable function F' f (X) The fourth bootstrap is performed using the test vector, and the ciphertext cd is obtained. As above, only the right-hand side is used. Then, we get φ(cd)=f(|a+0.5|). If f(x) is an even function, then f(x)=f(-x)=f(|x|), so φ(cd)=f(a+0.5).

[0086] FIG. 12 is a flowchart illustrating the process of calculating odd and even functions by the cryptographic processing device of this embodiment. FIG. 12(a) illustrates the process of calculating odd functions. In (a-1), the cryptographic processing device 1 (the first bootstrap unit 41) performs a one-variable function F idThe first bootstrap is performed using (X) as a test vector to calculate the TLWE ciphertext cb. In step S102, the cryptographic processing device 1 (the second bootstrap unit 42) calculates a one-variable function F f A second bootstrap is performed using (X) as a test vector, and the ciphertext cc corresponding to the calculation result of the odd function is calculated.

[0087] In (a-2), the cryptographic processing device 1 (the first bootstrap unit 41) performs a one-variable function F id The first bootstrap is performed using (X) as a test vector to calculate the TLWE ciphertext cb. In step S112, the cryptographic processing device 1 (the second bootstrap unit 42) calculates a one-variable function F f A second bootstrap is performed using (X) as a test vector to calculate the ciphertext cc. In step S113, the cryptographic processing device 1 (first arithmetic unit 12) performs a homomorphic operation of cc+(0, m'-0.5m) on the ciphertext cc to calculate a new ciphertext cd corresponding to the calculation result of the odd function.

[0088] In (a-3), the cryptographic processing device 1 (the first bootstrap unit 41) calculates, in step S121, a one-variable function F' id The first bootstrap is performed using (X) as a test vector to calculate the TLWE ciphertext cb. In step S122, the cryptographic processing device 1 (the second bootstrap unit 42) calculates a one-variable function F' f A second bootstrap is performed using (X) as a test vector, and the ciphertext cc corresponding to the calculation result of the odd function is calculated.

[0089] FIG. 12(b) illustrates the process of calculating the even function. In (b-1), the cryptographic processing device 1 (the third bootstrap unit 43) performs a one-variable function F abs A third bootstrap is performed using (X) as a test vector to calculate a TLWE ciphertext cb. In step S202, the cryptographic processing device 1 (second arithmetic unit 13) performs a homomorphic operation of cb+(0, 1 / 4) on the ciphertext cb to calculate a TLWE ciphertext cc. In step S203, the cryptographic processing device 1 (the fourth bootstrap unit 44) calculates a one-variable function F' f A fourth bootstrap is performed using (X) as a test vector, and the ciphertext cd corresponding to the calculation result of the even function is calculated. In (b-2), in step S211, the cryptographic processing device 1 (the third bootstrap unit 43) calculates a one-variable function F' abs A third bootstrap is performed using (X) as a test vector to calculate a TLWE ciphertext cb. In step S212, the cryptographic processing device 1 (second arithmetic unit 13) performs a homomorphic operation of cb+(0, 1 / 4) on the ciphertext cb to calculate a TLWE ciphertext cc. In step S213, the cryptographic processing device 1 (the fourth bootstrap unit 44) applies a one-variable function F f A fourth bootstrap is performed using (X) as a test vector, and the ciphertext cd corresponding to the calculation result of the even function is calculated.

[0090] The above describes the configuration and processing for the cryptographic processing device of this embodiment to calculate an even function or an odd function. Hereinafter, the configuration and processing for the cryptographic processing device of this embodiment to calculate an arbitrary one-variable function by applying an operation or processing method using an even function or an odd function in the calculation will be described. FIG. 13 is a diagram for explaining a method for the cryptographic processing device of this embodiment to execute a calculation of an arbitrary function of one variable. FIG. 13 illustrates a preparatory stage based on a function of one variable to be calculated, so that the cryptographic processing device 1 can quickly calculate an arbitrary function of one variable with a small number of BlindRotate operations. The paper "Putting up the swiss army knife of homomorphic calculations by means of TFHE functional bootstrapping, Pierre-Emmanuel Clet, Martin Zuber, Aymen Boudguiga, Renaud Sirdey, and Cedric Gouy-Pailler" discloses a method to calculate the ciphertext of the calculation result of any one-variable function by decomposing the arbitrary one-variable function to be calculated into an even function and an odd function, calculating the ciphertext of the calculation result for each, and finally adding them together.

[0091] Regarding the decomposition of a function into even and odd functions, using any one-variable function f(x), TIFF0007556577000038.tif1139 If we define it as TIFF0007556577000039.tif1140, then by simply adding the two we get f(x) = fe(x) + fo(x). Therefore, these two functions fe(x) and fo(x) are the decomposition of the one-variable function f(x) into two. Also, even if you invert the sign of the x in fe(x) based on the form of the equation, it only switches the left and right sides of the + in the equation. Therefore, fe(x) = fe(-x) holds, and fe(x) is an even function. Similarly, if you invert the sign of x in fo(-x), the f on the left and right of the - in the formula will be swapped, resulting in the same form as -fo(x). In other words, fo(-x) = -fo(x) holds, and fo(x) is an odd function.

[0092] From the above, finding fe(x) and fo(x) as above means decomposing any one-variable function f(x) into an even function and an odd function. The above discussion does not specify whether x is a real number, an integer, or a complex number, nor whether f(x) is a polynomial, and applies to any function of one variable. Therefore, fe(x) and fo(x) can be calculated by <Method 2> and <Method 3>. In that case, the calculation results of the even function fe(x) and the odd function fo(x) are calculated by performing BlindRotate twice. The above article, "Putting up the Swiss army knife of homomorphic calculations by means of TFHE functional bootstrapping," claims that any one-variable function can be processed with four BlindRotates. It also claims that by adopting a method such as manyLUT, which evaluates multiple LUTs simultaneously, the number of BlindRotates can be reduced to three. ManyLUT is a method that reduces the number of BlindRotates by simultaneously performing BlindRotates using multiple test vector polynomials on the same input ciphertext.

[0093] In contrast, according to this embodiment, a one-variable function to be calculated is not divided into an even function fe(x) and an odd function fo(x) and then calculated separately, but is decomposed into functions of different shapes and then calculated. As a result, according to this embodiment, an arbitrary one-variable function can be processed faster by performing BlindRotate three times without using manyLUT, but by performing BlindRotate two times with the use of manyLUT. In the following explanation, functions obtained by modifying even and odd functions are used as functions of different shapes, but the present invention is not limited to this.

[0094] First, prepare an arbitrary one-variable function F(x) to be calculated, as shown in (A). As with the above-mentioned <Method 1> and <Method 4>, this function defines at least the x-coordinates of integers in the range of -t to t-1 (inclusive) with a fraction of 0.5. In other words, if x is an integer between -t and t-1, F(x+0.5) can be calculated. Next, in (B), the cryptographic processing device 1 inverts F(x) left and right (x-axis direction) within a region where the input x in F(x) is a negative value, to obtain a one-variable function F'(x). F'(x) is Defined as TIFF0007556577000040.tif1259. F'(x) is defined in the range where the input x is greater than or equal to -t and less than t, and also satisfies the condition to be called an arbitrary function of one variable.

[0095] The cryptographic processing device 1 decomposes this F'(x) into an even function Fe(x) shown in (C-1) and an odd function Fo(x) shown in (C-2) using the above-mentioned method. Then, as described below, the encrypted results of the calculations, Fe'(x) obtained by modifying Fe(x) and Fo'(x) obtained by modifying Fo(x), are calculated, and then these are added together to obtain the encrypted result of the calculation of F(x). Specifically, Fe(x) and Fo(x) are as follows: For TIFF0007556577000041.tif32126x, Fe(x) is an even function because it can be calculated using only the absolute value. On the other hand, Fo(x) is an odd function because it is the same formula with the sign inverted for positive and negative values.

[0096] The cryptographic processing device 1 horizontally inverts the negative regions of these two functions to obtain Fe'(x) shown in (D-2) and Fo'(x) shown in (D-3). By performing the above operations, Fo'(x) can be transformed into a function in which the output y value in the region where the input x value is negative in the odd function Fo(x) is shifted by 1 / 2 along the x-axis and the sign is inverted. Also, Fe’(x) is a function obtained by shifting the value of the output y in the negative region of the input x in the even function Fe(x) by 1 / 2 in the x-axis direction with respect to the value of the output y in the positive region of the value of x. Fe’(x) and Fo’(x) are functions shown below. TIFF0007556577000042.tif41101 Here, when 0 ≦ x < t, Fe’(x) = Fe’(x - t) and Fo’(x) = -Fo’(x - t) hold. Therefore, Fo’(x) satisfies the constraint shown in Non-Patent Document 3, the property f(v + 1 / 2) = -f(v). Here, v is a value on the circular group. Since the added 1 / 2 is a semi-circle on the circular group, it is ±t in terms of the integer symbol.

[0097] As shown in (E-1), the encryption processing device 1 can create a test vector polynomial F fo (X) TIFF0007556577000043.tif1179 having the value of the univariate function Fo’(x) as a coefficient. As shown in (E-2), the encryption processing device 1 can create a test vector polynomial F fe (X) TIFF0007556577000044.tif1177 having the value of the univariate function Fe’(x) as a coefficient.

[0098] The test vector polynomial F fo (X), the test vector polynomial F fe (X) can output the calculation result of the function by referring to the LUT by setting the output of the univariate function as a coefficient and performing Bootstrapping in the same manner as F f (X) described in the above <Method 1>. Furthermore, since the order in the negative region of F fo (X) and F fe (X) is already reversed, the test vector polynomials F fo (X) and the test vector polynomial F fe (X) with these set as coefficients are the same as F idThis does not require the process of inverting negative plaintexts in the circle group using On the circular group, the coefficients are arranged from minimum to maximum on the right half of the plane, from 0 to 0.5, and the coefficients are arranged from minimum to maximum with their signs inverted on the left half of the plane, from 0.5 to 1. When the circular group is in the state shown in Figure 6, it is difficult to handle both positive and negative values ​​effectively with BlindRotate, and two bootstraps are required to calculate even and odd functions. In fact, in <Method 1>, After reversing the order of integers by bootstrapping using TIFF0007556577000045.tif1062, The function value was calculated by bootstrapping using TIFF0007556577000046.tif1070. On the other hand, when performing homomorphic addition, the ordering in Figure 6, in which the maximum value in the negative direction is arranged consecutively from the maximum value in the positive direction, is more convenient for handling both positive and negative values.

[0099] In this embodiment, the order of the negative regions in the one-variable functions Fo'(x) and Fe'(x) included in the test vector polynomial is reversed, so that even and odd functions can be calculated while obtaining the same effect as when the order of integers is reversed as shown in Figure 7 for the negative left half plane. For odd and even functions, test vector polynomial F fo (X), test vector polynomial F fe By performing bootstrap once using (x), odd and even functions can be calculated. 13, the calculation of the function F'(x) with negative values ​​inverted, the separation of the odd function Fo(x) and the even function Fe(x), and the calculation of the function Fo'(x) with negative values ​​inverted and the function Fe'(x) do not all have to be performed by the cryptographic processing device 1. Some or all of these may be calculated or generated by another device and input to the cryptographic processing device 1.

[0100] FIG. 14 is a diagram for explaining the configuration for the cryptographic processing device of this embodiment to execute the calculation of an arbitrary function of one variable. The cryptographic processing device 1 inputs the ciphertext ca to the fifth bootstrap unit 45 and generates a test vector polynomial F fo The fifth bootstrap is performed using the above formula to obtain the ciphertext cc1. The ciphertext cc1 has a plaintext value of Fo'(x+0.5).

[0101] Since Fe'(x) is f(v+1 / 2)=f(v), the ciphertext ca is given the test vector polynomial F fe (X) cannot be used as is. However, since the value is the same as when going around half a circle on the circular group, it is only necessary to determine whether the plaintext a is in the interval of 0 to 0.5 (left half plane) or 0.5 to 1 (right half plane) of the circular group, and to go around half a circle on the circular group by adding 1 / 2 to one of them. The cryptographic processing device 1 inputs the ciphertext ca to the sixth bootstrap unit 46, and performs sixth bootstrap on the TLWE ciphertext ca using the test vector polynomial T1(X) whose total coefficients are 1 / 4. This results in a binary ciphertext cc3 that has 1 / 4 as plaintext when the plaintext a of the ciphertext ca is 0 to 0.5 on the circular group or 0 to t-1 as an integer, and has -1 / 4 as plaintext when the plaintext a is 0.5 to 1 on the circular group or -t to -1 as an integer. The ciphertext cc3 is a ciphertext that indicates whether the plaintext a of the ciphertext ca is on the left or right half plane of the circular group. The cryptographic processing device 1 inputs the ciphertext cc3 and the ciphertext ca to the third arithmetic unit 14 and performs homomorphic addition on the ciphertext ca and the ciphertext cc3. As a result, when the plaintext a of the ciphertext ca is on the left half plane, the plaintext a moves to the right half plane by adding the ciphertext cc3. When the plaintext of the ciphertext ca is on the right half plane, the plaintext remains on the right half plane by adding the ciphertext cc3. Therefore, the ciphertext ca' obtained by adding the ciphertext cc3 to the ciphertext ca uses only the area 0 to 0.5 on the right half plane of the circular group. However, this alone would result in integers being represented using the range -1 / 4 to 1 / 4 rather than the range 0 to 0.5. Therefore, if it is desired to use a range of 0 to 0.5, it is preferable to perform homomorphic subtraction on the even more trivial ciphertext (0, 1 / 4).

[0102] The cryptographic processing device 1 inputs the ciphertext ca' to the seventh bootstrap unit 47 and calculates the test vector polynomial F fe The seventh bootstrap is performed on the ciphertext ca' using (X) to obtain the ciphertext cc2. The ciphertext cc2 has the value Fe'(x+0.5) as a plaintext. In the processing up to this point, Bootstrapping (BlindRotate) has been performed three times. Finally, the cryptographic processing device 1 inputs the ciphertext cc1 and the ciphertext cc2 to the fourth arithmetic unit 16, and performs homomorphic addition on the ciphertext cc1 and the ciphertext cc2 to obtain the ciphertext of the one-variable function F(x). From the above calculation, Because it was TIFF0007556577000047.tif4178, TIFF0007556577000048.tif21140, and for both values ​​of x, Fe'(x+0.5)+Fo'(x+0.5)=F(x+0.5). The fifth and sixth bootstraps are processes for the same ciphertext. Therefore, by using "manyLUT" which refers to multiple test vector polynomials (LUTs) simultaneously during BlindRotate, the number of BlindRotates can be reduced to one. Combined with the seventh bootstrap, the total number of BlindRotates can be two.

[0103] FIG. 15 is a flowchart illustrating the process for the cryptographic processing device of this embodiment to calculate a function of one variable. In step S301, the cryptographic processing device 1 (the fifth bootstrapping unit 45) fo Using (X) as a test vector polynomial, a fifth bootstrap is performed on the input ciphertext ca to obtain a ciphertext cc1. In step S302, the cryptographic processing device 1 (the sixth bootstrap unit 46) performs the sixth bootstrap on the input ciphertext ca by using the test vector polynomial T1(X) to obtain the ciphertext cc3. In step S303, the cryptographic processing device 1 (the third arithmetic unit 14) performs a homomorphic operation on the ciphertext ca and the ciphertext cc3 to obtain the ciphertext ca'. In step S304, the cryptographic processing device 1 (the seventh bootstrapping unit 47) fe Using (X) as the test vector polynomial, the seventh bootstrap is performed on the ciphertext ca' to obtain the ciphertext cc2. In step S305, the cryptographic processing device 1 (fourth arithmetic unit 15) performs homomorphic operation on the ciphertexts cc1 and cc2 to obtain a ciphertext corresponding to the calculation result of an arbitrary one-variable function F(x).

[0104] FIG. 16 is a diagram showing ciphertexts input and output to and from Gate Bootstrapping of this embodiment. In the above description, it has been described that Gate Bootstrapping is performed in the order of BlindRotate, SampleExtract, and Public Key Switching, particularly in the first Bootstrapping, as shown in FIG. 16(a). Alternatively, as shown in FIG. 16(b), Public Key Switching can be executed first in Gate Bootstrapping, and then BlindRotate and SampleExtract can be executed. TLWE ciphertext has a concept of levels according to security strength.

[0105] In Gate Bootstrapping in Fig. 16(a), the input and output TLWE ciphertexts are LEVEL 0. When BlindRotate is performed on the LEVEL 0 TLWE ciphertext and SampleExtract is performed on the output TRLWE ciphertext, the TLWE ciphertext obtained is LEVEL 1, but as a result of Public Key Switching, a LEVEL 0 TLWE ciphertext is output. In contrast, in the method shown in Figure 16(b), the TLWE ciphertext that is the input and output of Gate Bootstrapping is set to LEVEL 1, and first Public Key Switching is performed to lower it to LEVEL 0, and then BlindRotate is performed. When SampleExtract is performed on the output TRLWE ciphertext, a TLWE ciphertext of LEVEL 1 is output.

[0106] The ciphertext of LEVEL0 consists of an N-order vector [a] of elements on the circular group {T} encrypted with an N-order secret key [s]. On the other hand, the ciphertext of LEVEL1 obtained as a result of SampleExtract consists of an n-order vector [a'] of elements on the circular group {T} encrypted with an n-order secret key [s']. The LEVEL0 ciphertext has a smaller number of coefficients (the degree of the vector), which is the difficulty of the LWE problem, than the LEVEL1 ciphertext, so the amount of computation required for homomorphic addition is smaller than that of LEVEL1. On the other hand, the problem with LEVEL0 ciphertext is that the security strength is likely to decrease if the allowable error added to the plaintext is reduced, because the security of LWE-based ciphers is guaranteed by the error added to the plaintext. The larger the error added to the plaintext and the greater the number of coefficients (the degree of the vector), the more difficult it becomes to calculate (decrypt) the TLWE cipher. On the other hand, the smaller the error added to the plaintext and the fewer the number of coefficients (the degree of the vector), the easier it is to calculate (decrypt) the TLWE cipher. In particular, in the case of TFHE applied to the integer-wise type, the larger the plaintext (integer) value stored in the TLWE ciphertext becomes, the more finely it is necessary to divide the range of values ​​from 0 to 1 in the circular group {T}, and there is also the problem of errors during decryption, which will be described later, so the error needs to be reduced. In that case, as mentioned above, the security strength is likely to decrease, so in order to reduce the error, it is necessary to ensure security by increasing the number of coefficients in the ciphertext (the degree of the vector).

[0107] In order to ensure the security of ciphertexts that are easier to calculate (decrypt) by reducing the error added to the plaintext, it is desirable to move Public Key Switching to the beginning of Gate Bootstrapping and use LEVEL1 ciphertexts, which have a large number of coefficients (vector order) and are therefore easier to reduce the error range, as the input and output of Gate Bootstrapping. Then, after converting to LEVEL0 at the beginning of Gate Bootstrapping, the ciphertext is not returned to LEVEL0 at the end. By not returning to LEVEL0, the calculation of the TLWE ciphertext can be performed safely in the next stage as well. The time required for BlindRotate is proportional to the number of coefficients (vector degree) of the input TLWE ciphertext, because the number of CMux is the same as the degree. Therefore, when the ciphertext of LEVEL1 is input, the time required for BlindRotate is longer in proportion to the number of coefficients (vector degree) than when the ciphertext of LEVEL0 is input. Even if the LEVEL1 ciphertext is used as the input for Gate Bootstrapping to ensure the security of the ciphertext, the increase in the required time can be avoided by performing BlindRotate using the LEVEL0 TLWE ciphertext converted by Public Key Switching as the input.

[0108] Furthermore, reducing the error added to the plaintext poses the problem of errors during decryption in addition to the security strength mentioned above. As described above, in TFHE applied to the integer-wise type, the range of values ​​from 0 to 1 corresponding to the circular group {T} is divided into 2t parts. By increasing the value of t and dividing the circular group into smaller parts, the integer values ​​that can be recorded in the TLWE ciphertext can be made larger. The maximum value that can be stored is determined by the number of parts t into which the circular group is divided, but when trying to store a large value, the error range must be made smaller, which can lead to problems such as a decrease in security strength and an increase in the decryption error rate. In homomorphic encryption of the LWE system, including TFHE, the errors added to the plaintext are normally distributed, and it is not possible to strictly set the "error range." Although the error still tends to be concentrated near 0, in principle, this simply makes it possible to concentrate the error more in the specified range. If the error falls outside the set range, the plaintext will be interpreted as a different plaintext, which may result in unexpected calculation results. The calculation itself does not become impossible, but rather a different result is obtained. How much of a probability of obtaining a different calculation result can be tolerated is up to the application to which homomorphic encryption is applied.

[0109] In order to best balance the three goals of reducing the probability of errors occurring in calculations, reducing the number of BlindRotates to speed up calculations, and maintaining high security, it is necessary to set the system parameters so that the overlap of the error ranges falls within a certain value. The error may be set so as to satisfy conditions that are of particular importance depending on the system or device to which this embodiment is applied. [Application example]

[0110] The cryptographic processing device 10 performs calculation of an odd function using the functions of the first arithmetic unit 12, the first bootstrap unit 41, and the second bootstrap unit . Furthermore, the cryptographic processing device 10 performs calculations of even functions using the functions of the second arithmetic unit 13, the third bootstrap unit 43, and the fourth bootstrap unit 44. Furthermore, the cryptographic processing device 10 performs calculations of any one-variable function using the functions of the third calculation unit 14, the fourth calculation unit 15, the fifth bootstrap unit 45, the sixth bootstrap unit 46, and the seventh bootstrap unit 47. The processing performed by the cryptographic processing device 1 can be applied as follows. Specific applications include fuzzy authentication such as biometric authentication (as the data remains unchanged throughout one's lifetime, it must be kept secret; a threshold is set to determine whether or not there is a match), fuzzy search that searches a database for ambiguous, similar data, and query aggregation from an encrypted database. Fuzzy authentication is, for example, biometric authentication using biometric data, and it is an absolute requirement that the biometric data, which remains unchanged throughout a person's life, be encrypted and kept secret. Fuzzy authentication performs authentication based on the correspondence between the biometric data presented in the authentication request and the biometric data registered in a database. However, since it is not possible to obtain exactly the same value even when biometric information is measured accurately, it does not check for a perfect match between the two, but rather checks for a match based on a threshold value. Fuzzy search is a vague search method that presents data close to the query from a database as a search result even if the query and the record do not match exactly. In fuzzy authentication and fuzzy search, when executing a query on an encrypted database, various operations are required on data encrypted by homomorphic encryption. Some of these operations are one-variable functions and even or odd functions. For example, when using Euclidean distance to calculate the degree of match with a registered fingerprint in fuzzy authentication, x 2 This is an even function. Also, when converting the scale, such as by normalizing a vector, this involves multiplying the scale, i.e., calculating a first-order polynomial, which is an odd function. Also, any one-variable function that can be calculated by calculating even and odd functions is needed to perform fuzzy authentication, fuzzy searches, and queries against encrypted databases. The ability to calculate any one-variable function while keeping it encrypted is also useful in calculating cosine similarity, which is used to evaluate the similarity of texts, and involves dividing the dot product of two vectors by their respective norms.

[0111] FIG. 17 is a block diagram illustrating an embodiment of a computer system. The configuration of the computer device 100 will be described with reference to FIG. The computer device 100 is, for example, a cryptographic processing device that processes various types of information. The computer device 100 includes a control circuit 101, a storage device 102, a reading / writing device 103, a recording medium 104, a communication interface 105, an input / output interface 106, an input device 107, and a display device 108. The communication interface 105 is connected to a network 200. The components are connected to each other via a bus 110. The cryptographic processing device 1 can be configured by appropriately selecting some or all of the components described in the computer device 100.

[0112] The control circuit 101 controls the entire computer device 100. The control circuit 101 is, for example, a processor such as a Central Processing Unit (CPU), a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), or a Programmable Logic Device (PLD). The control circuit 101 functions as, for example, the control unit 10 in FIG.

[0113] The storage device 102 stores various data. The storage device 102 is, for example, a memory such as a Read Only Memory (ROM) and a Random Access Memory (RAM), a Hard Disk (HD), or a Solid State Drive (SSD). The storage device 102 may store an information processing program that causes the control circuit 101 to function as the control unit 10 in Fig. 1. The storage device 102 functions as, for example, the storage unit 20 in Fig. 1.

[0114] When performing information processing, the cryptographic processing device 1 reads out a program stored in the storage device 102 into the RAM. The cryptographic processing device 1 executes a program read into the RAM in the control circuit 101 to perform processing including one or more of a reception process, a first calculation process, a first bootstrap processing, a second bootstrap processing, and an output process for the calculation of an odd function. The cryptographic processing device 1 executes a program read into the RAM in the control circuit 101 to perform processing including one or more of a reception processing, a second calculation processing, a third bootstrap processing, a fourth bootstrap processing, and an output processing for the calculation of an even function. In addition, the cryptographic processing device 1 executes a program read into the RAM in the control circuit 101 for the calculation of an arbitrary one-variable function, thereby executing processing including one or more of the reception processing, the third calculation processing, the fourth calculation processing, the fifth bootstrap processing, the sixth bootstrap processing, the seventh bootstrap processing, and the output processing. The program may be stored in a storage device of a server on the network 200 as long as the control circuit 101 can access the program via the communication interface 105 .

[0115] The reading / writing device 103 is controlled by the control circuit 101 and reads / writes data from / to a removable recording medium 104 . The recording medium 104 stores various data. For example, the recording medium 104 stores an information processing program. For example, the recording medium 104 is a non-volatile memory (non-transient recording medium) such as a Secure Digital (SD) memory card, a Floppy Disk (FD), a Compact Disc (CD), a Digital Versatile Disk (DVD), a Blu-ray (registered trademark) Disk (BD), or a flash memory.

[0116] The communication interface 105 communicably connects the computer device 100 to other devices via the network 200. The communication interface 105 functions as, for example, the communication unit 25 in FIG. The input / output interface 106 is, for example, an interface that is detachably connected to various input devices. The input devices 107 connected to the input / output interface 106 include, for example, a keyboard and a mouse. The input / output interface 106 communicably connects the various input devices connected to the computer device 100. The input / output interface 106 outputs signals input from the various input devices connected to the control circuit 101 via the bus 110. The input / output interface 106 also outputs signals output from the control circuit 101 to the input / output devices via the bus 110. The input / output interface 106 functions as, for example, the input unit 26 in FIG. 1.

[0117] The display device 108 displays various information. The display device 108 is, for example, a cathode ray tube (CRT), a liquid crystal display (LCD), a plasma display panel (PDP), an organic electroluminescence display (OLED), etc. The network 200 is, for example, a LAN, wireless communication, a P2P network, or the Internet, and communicatively connects the computer device 100 to other devices. It should be noted that the present embodiment is not limited to the embodiment described above, and various configurations or embodiments can be adopted without departing from the spirit of the present embodiment. [Explanation of symbols]

[0118] 1 encryption processing device, 10 control unit, 20 memory unit, 25 communication unit, 26 input unit, 100 computer device, 101 control circuit, 102 storage device, 103 reading / writing device, 104 recording medium, 105 communication interface, 106 input / output interface, 107 input device, 108 display device, 110 bus, 200 network

Claims

1. A cryptographic processing device for processing a ciphertext, comprising: the ciphertext is a fully homomorphic ciphertext that has a value obtained by adding an error having a predetermined variance to a predetermined value as a plaintext associated with an integer and that enables a predetermined operation between integers without decryption, calculating a ciphertext using a first polynomial including the second function and a second polynomial including the third function among second functions and third functions generated by decomposing a first function to be calculated; calculating a second ciphertext by applying the first polynomial to the first ciphertext; calculating a third ciphertext by applying the second polynomial to a ciphertext calculated based on applying a predetermined polynomial to the first ciphertext; calculating a fourth ciphertext corresponding to a calculation result of the first function using the first ciphertext as an input by performing a homomorphic operation using the second ciphertext and the third ciphertext; 4. A cryptographic processing device comprising:

2. 2. The cryptographic processing device according to claim 1, the second function included in the first polynomial is a function obtained by decomposing the first function, and sliding the value of the output y in a region where the input x value is positive by 1 / 2 in the x-axis direction and inverting the positive and negative values, as the value of the output y in a region where the input x value is negative, By using the first polynomial for the first ciphertext, the second ciphertext can be calculated based on the operation result of the second function regardless of whether the plaintext of the first ciphertext is positive or negative.

4. A cryptographic processing device comprising:

3. 3. The cryptographic processing device according to claim 2, The function obtained by decomposing the first function is an odd function.

4. A cryptographic processing device comprising:

4. the third function included in the second polynomial is a function obtained by decomposing the first function, the value of the output y in a region where the input x value is positive being shifted by 1 / 2 in the x-axis direction, the value being the output y in a region where the input x value is negative, By using the second polynomial for the first ciphertext, the second ciphertext can be calculated based on the operation result of the third function regardless of whether the plaintext of the first ciphertext is positive or negative.

4. A cryptographic processing device comprising:

5. 5. The cryptographic processing device according to claim 4, The function obtained by decomposing the first function is an even function.

4. A cryptographic processing device comprising:

6. 2. The cryptographic processing device according to claim 1, The first polynomial is where F is the first function, Fo' is the second function, F that satisfies fo is expressed as The second polynomial is where F is the first function, Fe′ is the third function, F that satisfies fe , which is expressed as 4. A cryptographic processing device comprising:

7. 2. The cryptographic processing device according to claim 1, a calculation unit that calculates a new ciphertext by using a predetermined polynomial on the ciphertext, the calculation unit performing a process of reducing the number of coefficients on the input ciphertext before calculating the new ciphertext by using the predetermined polynomial; 4. A cryptographic processing device comprising:

8. 2. The cryptographic processing device according to claim 1, performing a process related to fuzzy authentication or fuzzy search using the input ciphertext by performing a calculation of the first function; 4. A cryptographic processing device comprising:

9. 2. The cryptographic processing device according to claim 1, processing a query to an encrypted database based on the input ciphertext by performing a calculation of the first function; 4. A cryptographic processing device comprising:

10. 1. A processor-implemented cryptographic processing method for processing ciphertext, comprising: the ciphertext is a fully homomorphic ciphertext that has a value obtained by adding an error having a predetermined variance to a predetermined value as a plaintext associated with an integer and that enables a predetermined operation between integers without decryption, calculating a ciphertext using a first polynomial including the second function and a second polynomial including the third function among second functions and third functions generated by decomposing a first function to be calculated; calculating a second ciphertext by applying the first polynomial to the first ciphertext; calculating a third ciphertext by applying the second polynomial to a ciphertext calculated based on applying a predetermined polynomial to the first ciphertext; calculating a fourth ciphertext corresponding to a calculation result of the first function using the first ciphertext as an input by performing a homomorphic operation using the second ciphertext and the third ciphertext; 13. A cryptographic processing method comprising:

11. A cryptographic processing program for causing a processor to execute a cryptographic processing method for processing a ciphertext, the ciphertext is a fully homomorphic ciphertext that has a value obtained by adding an error having a predetermined variance to a predetermined value as a plaintext associated with an integer and that enables a predetermined operation between integers without decryption, calculating a ciphertext using a first polynomial including the second function and a second polynomial including the third function among second functions and third functions generated by decomposing a first function to be calculated; calculating a second ciphertext by applying the first polynomial to the first ciphertext; calculating a third ciphertext by applying the second polynomial to a ciphertext calculated based on applying a predetermined polynomial to the first ciphertext; calculating a fourth ciphertext corresponding to a calculation result of the first function using the first ciphertext as an input by performing a homomorphic operation using the second ciphertext and the third ciphertext; 4. A cryptographic processing program comprising:

Citation Information

Patent Citations

  • Secret arithmetic unit, secret arithmetic method, and secret arithmetic program

    JP2021083038A

  • Cryptographic method, systems and services for assessing true value functions on encrypted data

    WO2021229156A1

  • Cryptographic method, systems and services for assessing univariate or multivariate true value functions on encrypted data

    WO2021229157A1