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

By processing ciphertexts with error variance and polynomial conversions, the cryptographic processing device overcomes the limitations of TFHE, enabling efficient calculation of arbitrary univariate functions using the entire circumference group, thus improving integer-wise operations.

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

Patent Information

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

AI Technical Summary

Technical Problem

Existing fully homomorphic encryption methods, such as TFHE, are limited by the requirement that functions assigned to the test vector polynomial must satisfy the property f(v+1/2)=-f(v), which restricts the application of trigonometric 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

The cryptographic processing device processes ciphertexts by dividing a range into predetermined areas with error variance, using polynomials to select calculation results in units smaller than the divided area, and converting multiple plaintext symbols into the same symbol to perform operations without decryption, allowing arbitrary univariate functions to be calculated using the entire circumference group.

Benefits of technology

This approach enables the calculation of arbitrary univariate functions while utilizing the entire circumference group, enhancing the efficiency and effectiveness of integer-wise type TFHE operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007556580000058
    Figure 0007556580000058
  • Figure 0007556580000053
    Figure 0007556580000053
  • Figure 0007556580000047
    Figure 0007556580000047
Patent Text Reader

Abstract

To calculate one unique variable function while utilizing the whole of a circle group without waste when using TFHE as an integer-wise type.SOLUTION: A ciphertext is a complete homomorphic ciphertext that has a value obtained by giving an error having a prescribed dispersion within a divided regions obtained by dividing a value area into a prescribed number, as a plaintext associated with an integer, and is capable of computing integers together without decryption. A cipher processing device calculates a second ciphertext using a first polynomial for the first ciphertext that is composed so as to select a computation result in units smaller than the divided regions used as equivalent to one plaintext symbol in the value area corresponding to the first ciphertext and calculates, using a second polynomial for the second ciphertext, a third ciphertext corresponding to a computation result of a prescribed computation by converting two or more plaintext symbols corresponding to the second ciphertext into the same plaintext symbol.SELECTED DRAWING: Figure 13
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 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 required for fully homomorphic encryption. In addition, because bootstrapping handles a huge amount of data, the amount of computation required is enormous. Therefore, in fully homomorphic encryption, it has been difficult to obtain the computation results within a practical time frame. 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 any 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 Polyakove 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 calculate an arbitrary function of one variable while efficiently using the entire circle group when using TFHE as an integer-wise type. [Means for solving the problem]

[0006] According to one embodiment, the present invention is a cryptographic processing device that processes a ciphertext, wherein the ciphertext is a fully homomorphic ciphertext having, as a plaintext, a value to which an error with a predetermined variance is given within a partition area obtained by dividing a range into a predetermined number of parts, which is associated with an integer, and which allows operations between integers without decryption; the device calculates a second ciphertext for a first ciphertext using a first polynomial configured to select an operation result in a unit smaller than the partition area used for one plaintext symbol corresponding to the first ciphertext in the range; and calculates a third ciphertext corresponding to the operation result of a predetermined operation by using the second polynomial for the second ciphertext to convert two or more types of plaintext symbols corresponding to the second ciphertext into the same plaintext symbol. Effect of the Invention

[0007] According to one aspect of the present invention, when TFHE is used as an integer-wise type, it is possible to calculate any one-variable function while utilizing the entire circle group. [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 first 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. 1 is a diagram for explaining an integer-wise TFHE in a first embodiment; [Figure 7] FIG. 1 is a diagram for explaining an integer-wise TFHE in a first embodiment; [Figure 8] FIG. 1 is a diagram for explaining an integer-wise TFHE in a first embodiment; [Figure 9] FIG. 2 is a diagram for explaining an integer-wise TFHE in the first embodiment. [Figure 10] FIG. 13 is a diagram for explaining the transition of the value of a ciphertext in the first embodiment (even function). [Figure 11] FIG. 13 is a diagram for explaining the transition of the value of a ciphertext in the first embodiment (even function). [Figure 12] FIG. 11 is a diagram illustrating a functional configuration of a cryptographic processing device according to a second embodiment. [Figure 13] FIG. 13 is a diagram for explaining a calculation process based on the functional configuration of FIG. 12. [Figure 14] FIG. 11 is a diagram for explaining an integer-wise TFHE in a second embodiment. [Figure 15] FIG. 10 is a diagram for explaining an integer-wise TFHE in a second embodiment (odd function); [Figure 16] FIG. 13 is a diagram for explaining the transition of the value of a ciphertext in the second embodiment (odd function). [Figure 17] FIG. 10 is a diagram for explaining an integer-wise TFHE in a second embodiment (even function); [Figure 18] FIG. 13 is a diagram for explaining the transition of the value of a ciphertext in the second embodiment (even function). [Figure 19] 4 is a flowchart illustrating a process according to the first embodiment. [Figure 20] 13 is a flowchart illustrating a process according to a second embodiment. [Figure 21] 10 is a diagram showing ciphertexts input and output to Gate Bootstrapping of the present embodiment. FIG. [Figure 22] 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 a cryptographic processing device according to a first 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 reception unit 11, a first calculation unit 12, a second calculation unit 13, a first bootstrap unit (calculation unit) 15, a second bootstrap unit (calculation unit) 16, a third bootstrap unit (calculation unit) 17, a fourth bootstrap unit (calculation unit) 18, 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 15 performs first gate bootstrap on the input ciphertext. The second bootstrap unit 16 performs second gate bootstrap on the ciphertext output from the first bootstrap unit 15 . The first arithmetic unit 12 performs a first homomorphic operation on the ciphertext output from the second bootstrap unit 16 .

[0012] In the computation of the even function as a function of one variable, the third bootstrap unit 17 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 17 . The fourth bootstrap unit 18 performs fourth gate bootstrap on the ciphertext output from the second arithmetic unit 13 .

[0013] The first calculation unit 12 and the second calculation unit 13 are calculation processing units that realize homomorphic calculations described below by software. The first bootstrap unit 15, the second bootstrap unit 16, the third bootstrap unit 17, and the fourth bootstrap unit 18 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 15, the second bootstrap unit 16, the third bootstrap unit 17, the fourth bootstrap unit 18, 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 on which we wish to perform odd and even function operations. In FIG. 2(a), the cryptographic processing device 1 performs an operation of an odd function as a function of one variable. In (a-1), the cryptographic processing device 1 inputs the TLWE ciphertext ca to the first bootstrap unit 15 and calculates the polynomial F1 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 TLWE ciphertext cb to the second bootstrap unit 16 and calculates the polynomial F f A second bootstrap is performed using (X) as a test vector, and the TLWE 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 15 and calculates the polynomial F1 id The cryptographic processing device 1 performs a first bootstrap using (X) as a test vector to calculate a TLWE ciphertext cb. Next, the cryptographic processing device 1 inputs the TLWE ciphertext cb to the second bootstrap unit 16 and calculates the polynomial F f A second bootstrap is performed using (X) as a test vector to calculate the TLWE ciphertext cc. Next, the cryptographic processing device 1 inputs the TLWE ciphertext cc to the first arithmetic unit 12 to perform a first homomorphic operation, thereby calculating a TLWE 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 15 and calculates a polynomial F1'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 TLWE ciphertext cb to the second bootstrap unit 16 and derives the polynomial F f A second bootstrap is performed using (X) as a test vector, and the TLWE ciphertext cc corresponding to the calculation result of the odd function is calculated.

[0016] In FIG. 2(b), the cryptographic processing device 1 performs an operation 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 17 and calculates the polynomial 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 TLWE ciphertext cb to a second operation unit and performs a second homomorphic operation to calculate a TLWE ciphertext cc. The cryptographic processing device 1 inputs the TLWE ciphertext cc to the fourth bootstrap unit 18 and converts the TLWE ciphertext cc into a polynomial F1' f The fourth bootstrap is performed using (X) as a test vector, and the TLWE 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 17 and calculates the polynomial F1' 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 TLWE 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 TLWE ciphertext cc to the fourth bootstrap unit 18 and converts it into a polynomial F f The fourth bootstrap is performed using (X) as a test vector, and the TLWE 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] consisting of N uniformly distributed random numbers. Also prepare a secret key vector [s] consisting of N random numbers chosen from the 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. Gate Bootstrapping utilizes the properties of the quotient ring of a polynomial ring as a finite cyclic group. Explain that there are finite cyclic groups in the quotient ring of a polynomial ring. 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 then take out and collect only the second term (the remainder), this also has the properties of a "ring," so we obtain the remainder ring of the polynomial 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 +···+μX-μ, and the coefficient of the top term changes from positive to negative and appears as a constant term. This is because the terms with degrees n-2 or less remain constant even after multiplying by X. n +1 cannot be divided, but the highest degree term is μX n =μ(X n +1)-μ. n Since we are considering the remainder when dividing by +1, only the remainder -μ on the right-hand side remains. Multiplying it by X again gives us μX n-1 +μX n-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 a total of n times, -μ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, because it can be rotated in either direction, it is sometimes convenient to use the expressions "multiplying -n times" or "multiplying -2n times". Note that this is merely a convenient expression for explaining the theory, and when implementing the present invention, for example, X a When multiplying by -b times, X -a Even if you apply it b times, X 2n-a It is also possible to apply the above formula b times, and if the same result can be achieved, other transformations can also be performed.

[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 select n values ​​from the two values ​​0 and 1 and construct the polynomial s(X) that will be 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 μ iLet 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 X n-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.25X 2 +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 TIFF0007556580000001.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. Generate 2l TRLWE ciphertexts Zi=(a(X),b(X)), calculated using a polynomial generated from random numbers whose coefficients of e(X) have a mean of 0 and a variance of α. Then, the plaintext μ is encrypted as follows to obtain the following ciphertext k. TIFF0007556580000002.tif2643The ciphertext that can be expressed as this ciphertext k will be called the TRGSW ciphertext. The TRGSW ciphertext constitutes the Bootstrapping Key used below.

[0033] Explain Bootstrapping Key. The Bootstrapping Key is used as a method to encrypt a private key for use in Gate Bootstrapping. In addition to the secret key [s] (Nth degree) 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 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 TIFF0007556580000003.tif2539. The set of TRGSW ciphertexts constructed using different Zj for each element of the secret key [s] is called the Bootstrapping Key (BK). In other words, BK is a set of N TRGSW ciphertexts.

[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 TIFF0007556580000004.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 TIFF0007556580000005.tif1490, which is the same as calculating the sum of the three ciphertexts c1, c2, and c3 below. TIFF0007556580000006.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 values ​​of each coefficient in (c1) are all zero. Also, the decoded φ s’ In (c3), since the magnitude of the absolute value of each coefficient of the plaintext can be adjusted by the system parameters, the magnitude 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.i It is not possible to determine whether it is 0 or 1. Assuming that there are TRLWE ciphertexts d0 and d1 corresponding to two plaintext polynomials μ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)·BK i +d0 The CMux function is i If μ0 is 0, the TRLWE ciphertext of the plaintext polynomial μ0 is output without being decrypted, and s i If is 1, the TRLWE ciphertext of the plaintext polynomial μ1 is output without decryption. The CMux function can compute the TRLWE ciphertext for which the plaintext polynomial is either μ0 or μ1, but the choice cannot be known from the result 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) 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’i A 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 TIFF0007556580000007.tif2849, The result is TIFF0007556580000008.tif749. Where: Since TIFF0007556580000009.tif629 is equal to the decoding function φs(c') with its sign inverted, TIFF0007556580000010.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 TIFF0007556580000011.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 TIFF0007556580000012.tif636, It can be expanded as TIFF0007556580000013.tif7116.

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

[0044] moreover, If you put TIFF0007556580000016.tif1046, The file name becomes TIFF0007556580000017.tif38143. The coefficients of each term of the plaintext polynomial can be found from TIFF0007556580000018.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 TIFF0007556580000019.tif638. If you put TIFF0007556580000020.tif620, It can be transformed into a TLWE cipher decryption function, such as TIFF0007556580000021.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 TIFF0007556580000022.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, TIFF0007556580000023.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 TIFF0007556580000024.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 TIFF0007556580000025.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 TIFF0007556580000026.tif862([0],b) is a trivial ciphertext, so when decrypted it gives b. When the result of decrypting the TLWE ciphertext cx is calculated, The file is TIFF0007556580000027.tif8118. s' i Since is a constant for j, we can factor it out as Enter TIFF0007556580000028.tif749 and substitute the formula that was decomposed into fixed decimal points above. TIFF0007556580000029.tif977As a result, The file will be TIFF0007556580000030.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, φ sIf (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 the NAND operation any number of times. The NAND operation is a complete operation in the field of logical operations. In other words, if the NAND operation can be realized, all logical operations are possible by combining it. Therefore, by expressing any numerical value in binary, all operations including addition and multiplication become possible.

[0048] The errors in the "plaintext" of the TLWE ciphertext output from Gate Bootstrapping are the error added by rounding off the TLWE ciphertext, the error added by CMux, the error when it is converted to fixed decimal 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 illustrating an integer-wise application of TFHE. 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] [First Example: Even Number Division] The calculation of odd and even functions when the circle group is divided into an even number will be explained below. 6 to 8 are diagrams for explaining the integer-wise TFHE in the first embodiment. In Fig. 6, the circle group {T} is divided into an even number of divided regions. In the following description, these divided regions are referred to as slices. As in FIG. 5, FIG. 6(b) shows a state in which 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) with an offset of 1 / (4t) added.

[0053] Suppose we have a TLWE ciphertext ca whose plaintext is an integer a, which is the argument of 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 added is actually stored as the plaintext. Here, the cryptographic processing device 1 sets the system parameters so that the range of the error added to the plaintext is less than ±1 / {4(t+1)}. In the first embodiment (even number division), in the TLWE ciphertext ca, the right half of the circle group {T} corresponds to a plaintext that is a non-negative integer, and the left half corresponds to a 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 with errors added in both directions of 0+1 / (4t) in the circular group {T}. This makes it possible to align the position of 0 in the circular group {T} with 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 FIG. 6(b), 0(1) on the circle group {T} is within a slice of -1 / (4t) to 1 / (4t) (the noise added to the plaintext before and after the 0 is one slice). As shown in Figure 6(a), by adding an offset, the plaintext can be positioned in the center of the slice (0 / 2t) starting from 0 on the circular group {T} while corresponding the integer 0 to the slice. Other slices start from X / 2t (X is a plaintext integer). This allows 0 on the circular group to refer to the term of degree 0 of the test vector polynomial used when processing using bootstrapping, so adding an offset in this way has the advantage of making the order of coefficients more natural and easier to read. However, this is not a fundamental requirement, so a different offset can be adopted by making appropriate adjustments to the test vector, pre-processing, post-processing, etc.

[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] Increasing the value of t and dividing the cycloid group {T} into smaller parts makes it possible to increase the range of integer values ​​that can be recorded in the TLWE ciphertext, but dividing the cycloid group too finely results in a problem in that the error range added to the plaintext becomes too small, reducing the strength of the ciphertext. 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] We will now explain how to calculate odd and even functions using the circle group in Figure 6, which is divided into an even number of parts. 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. <Method 1> This is the technique corresponding to (a-1) in FIG. The cryptographic processing device 1 is a one-variable polynomial function (one-variable function) F1 id (X) Using TIFF0007556580000031.tif1168, 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.

[0062] Figure 7 shows which integer values ​​in the circle group correspond to the plaintext of the TLWE ciphertext cb in the original TLWE ciphertext ca, or which integer values ​​correspond to the plaintext of the TLWE ciphertext ca in the circle group. As shown in Figure 7, the polynomial F1 id As a result of the first bootstrap of the TLWE ciphertext ca using (X), in the TLWE ciphertext cb, the arrangement of the left half, which is the area used for negative numbers, is upside down compared to the TLWE ciphertext ca. polynomial F1 id (X) outputs a ciphertext of the same non-negative integer 0 to t-1 for input of the ciphertext of non-negative integer 0 to t-1, and adds an offset of 0.5 to the plaintext. id (X) outputs ciphertext of integers -1 to -t when a ciphertext of a negative integer -t to -1 is input, 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 offset part of +1 / (4t) relative to the plaintext expressed in integer notation is expressed as +0.5.

[0063] In Figure 6(a), if the plaintext is on the right half of the circle group {T} (the plaintext is a non-negative number), the polynomial F1 id As a result of the above process using (X), 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 -1 / (2t)~0. Therefore, the polynomial F1 id The most significant block of (X) has its sign 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. idSince the sign-negated term of the lowest block of (X) 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.

[0064] In the right half of Figure 7, integers from 0 to t-1 are assigned to slices from 0 / (2t) to 4 / (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}.

[0065] 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, the polynomial F1 id The term in the most significant block of (X) is inverted and appears in the least significant block. 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 TLWE ciphertext cb shown in Fig. 7, the original -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 polynomial F1 idThe term in the lowest block of (X) 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 TLWE ciphertext cb shown in Fig. 7, -t (=-4) is assigned as the plaintext integer of the original TLWE ciphertext ca. In this way, the test vector polynomial F id If the integer values ​​assigned before and after bootstrapping by (X) are the same, it can be interpreted that the order of the integer values ​​on the left half of the TLWE ciphertext cb is reversed.

[0066] 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 TLWE ciphertext cb in Figure 7 are aligned along the zeros of the circle group, just like in the TLWE 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 TLWE ciphertext cb is viewed as an integer symbol with the same value as the integer of ciphertext ca, the correspondence between the plaintext slices and integers of TLWE ciphertext cb is different from that of TLWE 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. Since the order is simply reversed, the test vector polynomial F id By performing bootstrapping twice with (X), the representation returns to the original order. In other words, when the plaintext is viewed as a value on the circle group, it returns to the same slice. However, since the error added to the plaintext is sufficiently reduced by the nature of bootstrapping, this process can be used as bootstrapping when using the entire circle group.

[0067] 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 TLWE ciphertext ca that was used to generate the TLWE ciphertext cb. The integers that represent the 0.5 offset, starting from the top of the circle group {T}, are -0.5, -1.5, -2.5, -3.5, 0.5, 1.5, 2.5, and 3.5.

[0068] Next, the cryptographic processing device 1 extracts only values ​​where x is non-negative from the calculation results of the function f(x), and converts them into the following polynomial F1 f Create (X). TIFF0007556580000032.tif1074 The cryptographic processing device 1 then calculates the polynomial F1 f A second bootstrap is performed on the TLWE ciphertext cb using (X) as a test vector 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) of the TLWE ciphertext cc obtained corresponding to a = -1, -2, -3, ... is equal to f(-0.5), f(-1.5), f(-2.5), ..., respectively. In other words, in combination with the above example of the non-negative case, it was possible to calculate the TLWE ciphertext cc corresponding to the result of the operation of the odd function, which satisfies φ(cc) = f(a + 0.5).

[0069] <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 TLWE 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.

[0070] <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 vector for the first bootstrap is the following polynomial F1' id Change it to (X). TIFF0007556580000033.tif1279

[0071] polynomial F1' id (X) is F in the case of <Method 1> id Unlike (X), the denominator is slightly larger. As a result, the polynomial F1' id The TLWE ciphertext cb in FIG. 8 obtained by the first bootstrap using (X) has a smaller slice than that in FIG. Since the denominator is simply larger, as shown in Figure 8, if the plaintext is on the right half of the circle group (positive number), it will lean slightly towards 0. And if it is on the left half (negative number, i.e. -t~-1), the "up and down" is reversed from Figure 6 and it will also lean slightly towards 0. For example, if a is -1, the value on the circle group is in the interval -1 / (2t)~0. Therefore, the polynomial F1' id Since the term of the most significant block of (X) appears at the lowest position with its sign inverted, the plaintext of the TLWE ciphertext after the first bootstrap 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 -(t+1) to t to be held). Also, when a is -t, the value on the circular group is -t / 2t+1 / (4t)=-1 / 2+1 / (4t), which means that it is the block closest to -1 / 2. This means that F1' id The sign of the term in the lowest block of (X) is negated and obtained as the TLWE ciphertext after the first bootstrap, which is -1 / {4(t+1)}, or the integer -1.

[0072] 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 / (4(t+1)) term added to the polynomial term, so that the 0 position of the circle group is exactly the boundary of the slice, as shown in Figure 8.

[0073] The cryptographic processing device 1 extracts only the values ​​when x is non-negative from the calculation results of the function f(x) to be processed, and converts them into a polynomial F1' f Create (X). TIFF0007556580000034.tif1076 The cryptographic processing device 1 generates the polynomial F1' f Using (X) as a test vector, 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 TLWE ciphertext cc is obtained without inverting the sign, with the plaintext values ​​f(0), f(1), f(2), .... Furthermore, as shown in FIG. 8, when the TLWE ciphertext cb is negative, that is, when the plaintext integer a is -1, -2, -3..., the values ​​lie in the range 0.5-1 / 2(t+1) to 1, so the sign is inverted and the TLWE 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).

[0074] Next, a method for calculating an even function using a circle group divided into even numbers 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 F1 abs (X) TIFF0007556580000035.tif1085 Using this as a test vector, the third bootstrap is performed on the TLWE ciphertext ca to calculate a new TLWE ciphertext cb (Figure 9). The TLWE ciphertext cb undergoes the transformations shown in FIGS.

[0075] FIG. 10 is a diagram for explaining the transition of the ciphertext value in the first embodiment (even function), and shows the plaintext of the TLWE ciphertext cb obtained as a result of the third bootstraping. In FIG. 9, the right half of the screen shows the coefficients of the test vector polynomial in the order they are arranged, while the left half shows the inverted versions of the same, 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 TLWE ciphertext cb, when viewed as a value on the circular group rather than an integer, is, as shown in Figure 9, b=-4 / 20 when a=0, b=-2 / 20 when a=1, and so on.

[0076] F abs As a result of the third bootstrap by (X), if the plaintext integer a is negative, it is obtained by inverting its sign in the direction from 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.

[0077] The cryptographic processing device 1 adds the trivial ciphertext (0, 1 / 4) to the TLWE 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 TLWE 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.

[0078] In this case, since the denominator of the plaintext b is 20 and the numerator increases in increments of 2, the TLWE ciphertext cc can be seen as a non-negative ciphertext when the entire circle group {T} is divided into 10 parts (the right half is divided into t+1=5 parts). If we consider it as a division into 10 parts, the integer representation of b+5 / 20, which is the plaintext of the TLWE 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 TLWE 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.

[0079] 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 TLWE ciphertext cc using TIFF0007556580000036.tif1074 to calculate the TLWE ciphertext cd. As mentioned above, since the TLWE ciphertext cb uses only the right-hand side, φ(cc) = f(φ(cb)) holds. 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).

[0080] <Method 4> This is the technique corresponding to (b-2) in FIG. Even in the case of an even function, if the x in the even function f(x) is shifted by 0.5 to obtain f(x+0.5), there is no need to increase the denominator of the plaintext of the intermediate TLWE ciphertext cb. FIG. 11 is a diagram for explaining the transition of the value of the ciphertext in the first embodiment (even function).abs This shows the plaintext of the TLWE ciphertext cb obtained as a result of bootstrapping by (X).

[0081] The cryptographic processing device 1 calculates the following polynomial F1' abs (X) Using TIFF0007556580000037.tif1080 as a test vector, the third bootstrap is performed on the TLWE ciphertext ca to calculate the TLWE 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.

[0082] Here, the cryptographic processing device 1 adds the trivial ciphertext (0, 1 / 4) to the TLWE 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 TLWE ciphertext cb, and all of the plaintext b is concentrated on the right half plane. 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.

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

[0084] According to Figure 11, we can see that the absolute value function is calculated by folding back at the position of 0 of the circle group. In other words, we can say that φ(cc) = |a+0.5|, where || is the absolute value symbol. The cryptographic processing device 1 calculates the polynomial F1' f The fourth bootstrap is performed using (X) as the test vector to obtain the TLWE ciphertext cd. As above, only the right-hand side has been 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).

[0085] [Second Example: Odd Division] In the first embodiment, the case where the circle group is divided into an even number of pieces has been described. In the following [Second embodiment], the cryptographic processing device 1 will explain the calculation of odd and even functions when the circular group is divided into an odd number of parts. When using the entire circular group, overflows in homomorphic addition are simply handled as a remainder by the maximum value + 1. For example, if the entire circular group is divided into 7 parts and integer values ​​from 0 to 6 are used, homomorphic addition of 4 + 6 should result in 10, but since it goes beyond one cycle of the circular group, when it is decoded, 7, which is the division number of one cycle, is subtracted, resulting in 10-7=3. In other words, by simply performing a homomorphic addition, the result is (a+b)mod(t). Here, mod(t) represents the remainder when divided by t. Homomorphic subtraction similarly results in (ab)mod(t). In general, the set of remainders when an integer is divided by another integer has the properties of a remainder group, but the set of remainders when an integer is divided by a prime number is known to have special properties of a "field," and is called a "finite field." Finite fields have various features that make them easy to handle. For example, in a finite field, an inverse is defined for every element. This means that division between any two elements can be replaced by multiplication of the inverse. Division generally requires complex processing, and when calculated by a computer, it takes more time to calculate than the other four arithmetic operations. The advantage of being able to perform such division calculations using only multiplication is significant. However, the method described in the first embodiment can only divide the entire circle group into even numbers, and all prime numbers other than 2 are odd numbers, making it difficult to efficiently calculate any function in a finite field. In contrast, in the second embodiment, by using the entire circular group and dividing the circular group into an odd number of elements, particularly prime numbers (odd prime numbers), it is possible to efficiently handle encrypted finite fields and calculate any function of the finite field. The method of the second embodiment is suitable for the case where the circle group is divided into an odd number of parts, but it can also be applied to the case where the circle group is divided into an even number of parts.

[0086] FIG. 12 is a diagram illustrating the functional configuration of the cryptographic processing device according to the second embodiment. The same components as those in FIG. 1 are denoted by the same reference numerals and their explanation will be omitted. Similar to FIG. 1, the cryptographic processing device 1 in FIG. 12 includes a control unit 10, a storage unit 20, a communication unit 25, and an input unit . The control unit 10 includes a reception unit 11, a fifth bootstrap unit (calculation unit) 41, a sixth bootstrap unit (calculation unit) 42, a seventh bootstrap unit (calculation unit) 43, an eighth bootstrap unit (calculation unit) 44, and an output unit 35. In the calculation of the odd function as a function of one variable, the fifth bootstrap unit 41 performs fifth gate bootstrap on the input ciphertext accepted by the acceptance unit 11. The sixth bootstrapping unit 42 performs sixth gate bootstrap on the ciphertext output from the fifth gate bootstrap unit 41 . In the calculation of the even function as a function of one variable, the seventh bootstrap unit 43 performs seventh gate bootstrap on the input ciphertext accepted by the acceptance unit 11. The eighth bootstrap unit 44 performs eighth gate bootstrap on the ciphertext output from the seventh bootstrap unit 43 .

[0087] The fifth bootstrap unit 41, the sixth bootstrap unit 42, the seventh bootstrap unit 43, and the eighth bootstrap unit 44 are arithmetic processing units that realize the gate bootstrapping process by software. At least one of the reception unit 11, the fifth bootstrap unit 41, the sixth bootstrap unit 42, the seventh bootstrap unit 43, the eighth bootstrap unit 44, and the output unit 35 may be realized by hardware.

[0088] FIG. 13 is a diagram for explaining a calculation process based on the functional configuration of FIG. The cryptographic processing device 1 performs calculations of odd and even functions on an Integer-wise TLWE ciphertext. The TLWE ciphertext ca is the ciphertext of the plaintext integer a on which we wish to perform odd and even function operations. In FIG. 13(a), the cryptographic processing device 1 performs an operation of an odd function as a function of one variable. The cryptographic processing device 1 inputs the TLWE ciphertext ca to the fifth bootstrap unit 41 and converts it into a polynomial F id The fifth bootstrap is performed using (X) as a test vector to calculate the TLWE ciphertext cb. The cryptographic processing device 1 inputs the TLWE ciphertext cb to the sixth bootstrap unit 42 and converts it into a polynomial F f The sixth bootstrap is performed using (X) as a test vector, and the TLWE ciphertext cc corresponding to the calculation result of the odd function is calculated.

[0089] In FIG. 13(b), the cryptographic processing device 1 performs an operation of an even function as a function of one variable. The cryptographic processing device 1 inputs the TLWE ciphertext ca to the seventh bootstrap unit 43 and converts it into a polynomial F abs The seventh bootstrap is performed using (X) as a test vector, and the TLWE ciphertext cb is calculated. The cryptographic processing device 1 inputs the TLWE ciphertext cb to the eighth bootstrap unit 44 and converts the polynomial F2' f The eighth bootstrap is performed using (X) as a test vector, and the TLWE ciphertext cc corresponding to the calculation result of the even function is calculated.

[0090] [Odd Function] First, a case will be described in which an odd function is evaluated using a circle group divided into an odd number of parts. In the following explanation and drawings, the case of t=2 may be illustrated unless otherwise specified. FIG. 14 is a diagram for explaining an integer-wise TFHE in the second embodiment, showing a circle group divided into an odd number of parts. FIG. 14(a) shows a state where no offset is added to the plaintext. In Fig. 14(a), the value before and after 0 in the circular group {T} corresponds to the integer 0. Since the circular group {T} is divided into an odd number of parts, 0.5 (1 / 2) of the circular group {T} becomes the boundary between the maximum value t (= 2) and the minimum value -t (= -2). The range from 0 to 0.5 (right half plane) of the circle group {T} corresponds to the coefficients of the test vector polynomial from the lowest degree to the highest degree, and the range from 0.5 to 1 (left half plane) corresponds to the coefficients of the test vector polynomial from the lowest degree to the highest degree with their signs reversed. As shown above, Fig. 14(a) shows the case where the circular group is divided into odd numbers and no offset is added to the plaintext. When a positive error is added near 0, the plaintext is on the right half plane and corresponds to the coefficient of a low-order term in the test vector polynomial. On the other hand, when a negative error is added near 0, the plaintext is on the left half plane and corresponds to the coefficient of a high-order term with the sign inverted in the test vector polynomial. Therefore, within the slice corresponding to the integer 0, the coefficients are not consecutive when a positive error is added to the plaintext and when a negative error is added to the plaintext. The polynomial F2 described below id In bootstrap using (X) as the test vector, when the integers assigned to the left half plane are inverted, the integer 0 with a negative error added moves toward 0.5, but the integer 0 with a positive error added remains near 0, resulting in a noticeable discontinuity.

[0091] On the other hand, when we look at the 0.5 side of FIG. 14, 0.5 on the circle group is the boundary between a slice assigned the integer 2 and a slice assigned the integer -2. A slice assigned the integer 2 or the integer -2 will have continuous coefficients that do not cross 0.5, whether a positive or negative error is added to the plaintext. That is, whether a positive or negative error is added to the integer 2, the slice is on the right half plane and the coefficients are continuous. Whether a positive or negative error is added to the integer -2, the slice is on the left half plane and the coefficients are continuous.

[0092] To eliminate discontinuities in coefficients near 0 in the circular group, an offset may be added to the plaintext so that the slice assigned the integer 0 starts on the boundary between 0 and 1, similar to the even number division in [First embodiment]. However, in this case, the slice to which the integer 2 is assigned crosses 0.5, and a problem occurs in which the coefficients become discontinuous when a positive error is added to the integer 2 and when a negative error is added.

[0093] Therefore, in the second embodiment in which the circular group is divided into odd numbers, the cryptographic processing device 1 does not add an offset to the plaintext. Instead of adding an offset to the plaintext, the cryptographic processing device 1 divides a slice to which an integer is assigned into two slices with an error range on the positive and negative sides, as shown in Fig. 14(b), and calculates odd and even functions by a process similar to that for even number division. In the slices of Figure 14(b), the value (integer value) of the plaintext a of the TLWE ciphertext ca assigned to each slice is displayed. The number p indicates that the error added to the plaintext is positive, and the number m indicates that the error added to the plaintext is negative. In relation to the explanation of FIG. 14(a), the slice of 0p is on the right half of the circular group, and the slice of 0m is on the left half of the circular group. The plaintext of the slice of 0p corresponds to the coefficient of the lowest degree term in the test vector polynomial, and the plaintext of the slice of 0m corresponds to the coefficient of the highest degree term with the sign reversed in the test vector polynomial. Therefore, even if they correspond to the same integer 0, the coefficients of the slice 0p, in which a positive error is added to the plaintext, and the slice 0m, in which a negative error is added to the plaintext, are not consecutive. The 2m and 2p slices are both on the right half-plane of the circle group, and the -2m and -2p slices are both on the left half-plane. The plaintext of a 2m slice and the plaintext of a 2p slice correspond to the coefficients of terms of consecutive (adjacent) degrees in the test vector polynomial, and similarly the plaintext of a -2m slice and the plaintext of a -2p slice. In other words, the slices 2p and 2m corresponding to the same integer 2 have consecutive coefficients, and the slices -2p and -2m corresponding to the same integer -2 have consecutive coefficients.

[0094] The cryptographic processing device 1 sets a constant t that determines the division size of the circular group to a positive integer. Using this, the width of one block is set to 1 / (2t+1). In other words, the entire circular group is divided into 2t+1 blocks (an odd number). Here, t is the maximum integer that can be stored in a single TLWE ciphertext, and -t is the minimum. As shown in FIG. 14(b), the range from -1 / {2(2t+1)} to 1 / {2(2t+1)} on the circle group is set as a section of 0, and each block is adjacent to this block in order. This is for the sake of convenience of explanation, and even if you actually implement it by shifting the offset, such as "implementing 0 to 1 / (2t+1) as a block that corresponds to 0," it is possible to make it consistent by adjusting other parameters or polynomials, or by making adjustments in advance.

[0095] Next, the cryptographic processing device 1 sets the system parameters of the TFHE. The maximum error is set to be less than ±1 / {2(2t+1)}. Suppose we have a TLWE ciphertext ca that we want to use as an argument to the function we want to calculate. The TLWE ciphertext ca has as plaintext the real number a / (2t+1) corresponding to the integer a, which cannot be known without the private key. This is plaintext without any errors, and in reality, a value with an error within the range previously specified is added to this plaintext and stored in the ciphertext as plaintext. The range in which the plaintext with errors added falls is a / (2t+1)±1 / (4t+2), that is, the range from (2a-1) / (4t+2) to (2a+1) / (4t+2).

[0096] The cryptographic processing device 1 calculates the following polynomial F2 id The fifth bootstrap is performed using (X) as a test vector to obtain a TLWE ciphertext cb. TIFF0007556580000038.tif1181Bootstrapping includes BlindRotate, SampleExtract, and Public Key Switching. polynomial F2 id (X) is the polynomial F1 used in the even number division in [Example 1]. id Compared to (X), the number of blocks into which the polynomial is divided (the number of possible values ​​of k in the Σ expression on the left) is roughly doubled, and as a result, the number of terms contained in each block (the number of possible values ​​of 1 in the Σ expression on the right) is roughly halved. polynomial F2 id (X) is 、 polynomial F1 id Compared to (X), the denominator of the polynomial is doubled, dividing the circle group into twice as many slices (plus-error slices and minus-error slices), resulting in a slice that is half as wide. Each block that is originally associated with an integer to be used as plaintext a is divided into two, and the lookup table for BlindRotate is looked up in the table corresponding to one of the divided blocks.

[0097] FIG. 15 is a diagram for explaining the integer-wise TFHE in the second embodiment (odd function), showing the slice division of the TLWE ciphertext cb. Within each slice in Fig. 15, the polynomial F2 idThe result of the fifth bootstrap using (X) as the test vector shows the value (integer value) of the plaintext a of the TLWE ciphertext ca assigned to each slice. The number p indicates that the error added to the plaintext is positive, and m indicates that the error is negative. The outside of the circle is the polynomial F2 f The value of the plaintext integer (φ(cc)) of the TLWE ciphertext cc obtained as a result of the sixth bootstrap of the TLWE ciphertext cb using (X) as the test vector is shown. φ(cc) is an integer that is the output of the functions f and -f.

[0098] 16 is a diagram for explaining the transition of the ciphertext value in the second embodiment (odd function), and shows the ciphertext value as a result of performing the fifth and sixth bootstraps. The explanation will be given assuming that t=2. If the plaintext integer a is 0 and the error added is positive, the plaintext of the TLWE ciphertext cb is 1 / 20 on the circular group, which is 0.5 when expressed in plaintext symbols. The TLWE ciphertext cc has the value f(0) as the plaintext. If the plaintext integer a is 1 and the error added is negative, the plaintext of the TLWE ciphertext cb is 3 / 20 on the circular group, which is 1.5 when expressed in plaintext symbols. The TLWE ciphertext cc has the value f(1) as its plaintext. If the plaintext integer a is 1 and the error is positive, the plaintext of the TLWE ciphertext cb is 5 / 20, which is 2.5 in plaintext symbols. The TLWE ciphertext cc has the value f(1) as its plaintext. If the plaintext integer a is 2 and the error added is negative, the plaintext of the TLWE ciphertext cb is 7 / 20 on the circle group, which is 3.5 when expressed in plaintext symbols. The TLWE ciphertext cc has the value f(2) as its plaintext. If the error added to the plaintext integer a is 2 and is positive, the plaintext of the TLWE ciphertext cb is 9 / 20 on the circular group, which is 4.5 when expressed in plaintext symbols. The TLWE ciphertext cc has the value f(2) as its plaintext.

[0099] If the error added to the plaintext integer a is -2 and is negative, the plaintext of the TLWE ciphertext cb is -(1 / 20) on the circular group, which is -0.5 in plaintext symbols. The TLWE ciphertext cc has the value -f(2) as its plaintext. If the error added to the plaintext integer a by -2 is positive, the plaintext of the TLWE ciphertext cb is -(3 / 20) in the circular group, which is -1.5 in plaintext symbols. The TLWE ciphertext cc has the value -f(2) as its plaintext. If the plaintext integer a is -1 and the error is negative, the plaintext of the TLWE ciphertext cb is -(5 / 20) in the circular group, which is -2.5 in plaintext symbols. The TLWE ciphertext cc has the value -f(1) as its plaintext. If the plaintext integer a is -1 and the error is positive, the plaintext of the TLWE ciphertext cb is -(7 / 20) in the circular group, which is -3.5 in plaintext symbols. The TLWE ciphertext cc has the value -f(1) as its plaintext. If the plaintext integer a is 0 and the error is positive, the plaintext of the TLWE ciphertext cb is -(9 / 20) on the circle group, which is -4.5 when expressed in plaintext symbols. The TLWE ciphertext cc has the value -f(0) as its plaintext.

[0100] The transition of the ciphertext value in FIG. 16 will be described in detail. The plaintext integer a is located on the right half-plane of the circular group when it is positive or when the error is positive zero. If the plaintext of the TLWE ciphertext ca is in the right half plane of the circle group {T} (the plaintext is a positive number or the error is 0 on the positive side), the fifth bootstrap result moves the plaintext of the TLWE ciphertext cb to a nearby positive or negative block. Specifically, the plaintext of the TLWE ciphertext cb will be either 2a-0.5 or 2a+0.5. If the plaintext of the TLWE ciphertext ca is on the left half plane of the circular group {T} (if the plaintext is a negative number, i.e. -t to -1 or the error is 0 on the negative side), the order of integers in the TLWE ciphertext ca is flipped upside down. For example, if the plaintext integer a has an error of 0 on the negative side, its value on the circular group is in the interval -1 / (4t+2)~0. polynomial F2 id The fifth bootstrap result for the TLWE ciphertext ca using the test vectors, id The most significant block of the term is inverted and appears at the lowest position. Therefore, the plaintext of the TLWE ciphertext cb obtained as a result of the fifth bootstrap is -1 / 2+1 / (8t+4) as a value on the circular group, and -2t-0.5 as a symbol. If the plaintext integer a is -t, its value on the circle group is -t / (2t+1). polynomial F2 id The fifth bootstrap result for the TLWE ciphertext ca using the test vectors, id The sign of the term in the lowest block (if the error is negative) or the block one level higher (if the error is positive) appears. Therefore, the plaintext (symbol) of the TLWE ciphertext cb obtained by the fifth bootstrap is −0.5 if the error is on the negative side, and −1.5 if the error is on the positive side.

[0101] In general, if the plaintext integer a is positive or the error is 0 on the positive side, the plaintext of the TLWE ciphertext cb is (2a±0.5) / (4t+2)+1 / (8t+4), and the symbol is 2a±0.5. If the plaintext integer a is a negative number or the error is 0 on the negative side, the plaintext of the TLWE ciphertext cb is -(2t+1+2a±0.5) / 2t+1 / (8t+4), and the symbol is -(2t+1+2a±0.5). As a result of this process, the 1 / (8t+4) term added to the polynomial term adds an offset to the plaintext of the TLWE ciphertext ca in the TLWE ciphertext cb, so that the position of 0 in the circle group {T} is exactly the boundary of the slice, as shown in Figure 16.

[0102] The cryptographic processing device 1 extracts only the values ​​when x is non-negative from the calculation results of the function f(x) to be processed, and converts them into a polynomial F2 f (X) TIFF0007556580000039.tif1085 Then, the cryptographic processing device 1 creates this polynomial F2 f Using (X) as a test vector, the sixth bootstrap is performed on the TLWE ciphertext cb to obtain the TLWE ciphertext cc. The function f(x) is a function that can obtain an integer from an integer argument. Polynomial F1 used in the case of even division f (X) and polynomial F2 f The difference with (X) is the polynomial F1 id (X) and polynomial F2 id The difference from (X) is that the number of divisions of the polynomial terms has been roughly doubled, and the resulting number of divisions has also increased. The argument of f has also changed, but this is because the range of k has changed.

[0103] If the plaintext symbols of the TLWE ciphertext cb are non-negative, i.e., 0.5, 1.5, 2.5, …, then the plaintext of the TLWE ciphertext cb is in the right half plane (0 to 0.5) of the circle group. In that case, the polynomial F2 f The TLWE ciphertext cc obtained by performing the sixth bootstrap using (X) as the test vector has plaintext c with values ​​f(0), f(1), f(1), f(2), f(2), ... corresponding to the cases where plaintext a (integer representation) of TLWE ciphertext ca is 0 (positive error), 1 (negative error), 1 (positive error), 2 (negative error), 2 (positive error), ... If the plaintext symbols of the TLWE ciphertext cb are negative, i.e., -0.5, -1.5, -2.5, -3.5..., the signs are inverted because they are arranged in that order in the interval from 0.5 to 1 (left half). Therefore, the TLWE ciphertext cc has the values ​​-f(0), -f(1), -f(1), -f(2), -f(2)... as plaintext c, corresponding to the case where the plaintext a (integer representation) of the TLWE ciphertext ca is 0 (negative error), -1 (positive error), -1 (negative error), -2 (positive error), -2 (negative error)... If f(x) is an odd function, then -f(x) = f(-x), and therefore φ(cc) = f(a). As shown in Figure 16, the same value of f is placed in the lookup table (test vector polynomial) whether the error is negative or positive, so whether the error is positive or negative is irrelevant. At least the argument of f contains the same value as the integer a.

[0104] [Even Function] We will now explain how to evaluate an even function. Basically, this can be achieved in the same way as for odd functions. The cryptographic processing device 1 calculates the following polynomial F2 abs The seventh bootstrap is performed using (X) as a test vector to obtain a TLWE ciphertext cb. TIFF0007556580000040.tif1089 polynomial F2 abs (X) is the polynomial F2 above at the point where 1 / 4 is subtracted from the polynomial term. id Different from (X). FIG. 17 is a diagram for explaining the Integer-wise TFHE in the second embodiment (even function), showing the transition of the ciphertext value in the seventh bootstrap and the eighth bootstrap. Within each slice in Fig. 17, the polynomial F2 abs The result of the 7th bootstrap using (X) as the test vector shows the value (integer value) of the plaintext a of the TLWE ciphertext ca assigned to each slice. The number p indicates that the error added to the plaintext is positive, and the number m indicates that the error added to the plaintext is negative. The inside of the circle shows the arrangement of the plaintext of the TLWE ciphertext ca before the transformation, and the outside shows the center of the plaintext of the TLWE ciphertext cb after the seventh bootstrap. An error of ±1 / 20 is added to the center of this plaintext. The right half of the circle group is arranged in the same order as the coefficients of the test vector polynomial, while the left half is arranged with the sign-negated values ​​upside down. There are 0s on both the left and right, but both are converted to the same -4 / 20.

[0105] 18 is a diagram for explaining the transition of the value of the ciphertext in the second embodiment (even function), assuming that t=2. In the explanation of FIG. 18, the TLWE ciphertext cc is obtained by homomorphically adding 1 / 4 to the TLWE ciphertext cb. If the plaintext integer a is 0 and the error added is positive, the plaintext of the TLWE ciphertext cb is -4 / 20 on the circular group. The TLWE ciphertext cc is 1 / 20±1 / 20 including the error, which is 0.5 in symbols. The TLWE ciphertext cd has the value f(0) as the plaintext. If the plaintext integer a is 1 and the error added is negative, the plaintext of the TLWE ciphertext cb is -2 / 20 on the circular group. The TLWE ciphertext cc is 3 / 20±1 / 20 including the error, which is 1.5 in symbols. The TLWE ciphertext cd has the value f(1) as the plaintext.

[0106] If the plaintext integer a is 1 and the error is positive, the plaintext of the TLWE ciphertext cb is 0 / 20. The TLWE ciphertext cc is 5 / 20±1 / 20 including the error, which is 2.5 in symbols. The TLWE ciphertext cd has the value f(1) as the plaintext. If the plaintext integer a is 2 and the error is negative, the plaintext of the TLWE ciphertext cb is 2 / 20. The TLWE ciphertext cc is 7 / 20±1 / 20 including the error, which is 3.5 in symbols. The TLWE ciphertext cd has the value f(2) as the plaintext. If the plaintext integer a is 2 and the error is positive, the plaintext of the TLWE ciphertext cb is 4 / 20. The TLWE ciphertext cc is 9 / 20±1 / 20 including the error, which is 4.5 in symbols. The TLWE ciphertext cd has the value f(2) as the plaintext.

[0107] If the error added to the plaintext integer a is -2 and is on the negative side, the plaintext of the TLWE ciphertext cb is -(-4 / 20) in the circle group. The TLWE ciphertext cc is 9 / 20±1 / 20 including the error, which is 4.5 in symbols. The TLWE ciphertext cd has the value f(2) as the plaintext. If the error added to the plaintext integer a is -2 and is positive, the plaintext of the TLWE ciphertext cb is -(-2 / 20) in the circle group. The TLWE ciphertext cc is 7 / 20±1 / 20 including the error, which is 3.5 in symbols. The TLWE ciphertext cd has the value f(2) as the plaintext. If the plaintext integer a is -1 and the error added is negative, the plaintext of the TLWE ciphertext cb is -(-0 / 20) on the circle group. The TLWE ciphertext cc is 5 / 20±1 / 20 including the error, which is 2.5 in symbols. The TLWE ciphertext cd has the value f(1) as the plaintext. If the plaintext integer a is -1 and the error is positive, the plaintext of the TLWE ciphertext cb is -(-2 / 20) in the circular group. The TLWE ciphertext cc is 3 / 20±1 / 20 including the error, which is 1.5 in symbols. The TLWE ciphertext cd has the value f(1) as the plaintext. If the plaintext integer a is 0 and the error added is negative, the plaintext of the TLWE ciphertext cb is -(-4 / 20) in the circular group. The TLWE ciphertext cc is 1 / 20±1 / 20 including the error, which is 0.5 in symbols. The TLWE ciphertext cd has the value f(0) as the plaintext.

[0108] The transition of the ciphertext value in FIG. 18 will be described in detail. The plaintext integer a is located on the right half-plane of the circular group when it is positive or when the error is positive zero. If the denominator of the plaintext of the TLWE ciphertext cb is set to 20 (= 8t + 4), then (2k) + (1) - (2t + 1) = 2k - 2t, so the numerator when a = 0 (positive error) is -4. When a=1 (negative error), the numerator of the plaintext is -2. When a=1 (positive error), the numerator of the plaintext is 0. When a=2 (negative error), the numerator of the plaintext is +2. When a=2 (positive error), the numerator of the plaintext is +4. The plaintext integer a is located on the left half of the circular group when it is negative or when the error is 0 on the negative side. In that case, the sign of the plaintext of the TLWE ciphertext cb is reversed from when it is positive in the direction from 0.5 to 1, so when a=-2 (negative error), the numerator of the plaintext of the TLWE ciphertext cb is 4, which is the sign reversal when a=0 (positive error). When a=-2 (positive error), the numerator of the plaintext of the TLWE ciphertext cb is 2, which is the sign inversion when a=1 (negative error). When a=0 (negative error), the numerator of the plaintext of the TLWE ciphertext cb is −4, which is the sign inversion of a=2 (positive error).

[0109] The cryptographic processing device 1 adds the trivial ciphertext (0, 1 / 4) to the TLWE ciphertext cb to obtain the TLWE ciphertext cc. Since 1 / 4=5 / 20, 5 is added to the numerator, and everything is concentrated on the right half. An error of ±1 / (4t+2) is added, but even with that included, it is still within the range of 0 to 0.5 (right half). Since the numerator is 20 and the denominator increases in increments of 2, this can be seen as a non-negative ciphertext when the whole is divided into 10 parts (a further multiple of dividing the whole into 2t+1=5 parts). In addition, the order of the numbers increases as a gets further away from positive or negative with a=0 as the base value, so this can be said to be the calculation of an absolute value function.

[0110] Since the plaintext of the TLWE ciphertext cc already uses only the right half of the circle group, any function can be evaluated using the method in Non-Patent Document 3. However, the error added to the plaintext ca in the TLWE ciphertext ca is assigned to one of two slices depending on whether it is positive or negative. Therefore, just as in the odd function case, we adjust it so that we get the same result for two slices that are originally the same slice corresponding to the same integers. Specifically, if the function f(x) takes integers as arguments and returns integers, then the same polynomial F2 f (X) TIFF0007556580000041.tif1085 The TLWE ciphertext cc is bootstrapped eighth time using the test vector to calculate the TLWE ciphertext cd. This allows us to calculate φ(cd)=f(|a|), where || is the absolute value symbol. If f(x) is an even function, then f(x) = f(-x) when x is a non-negative integer, and so φ(cd) = f(a). As shown in FIG. 18, regardless of whether the error is negative or positive, the same value of f is placed in the lookup table (test vector polynomial), so that it ultimately becomes irrelevant whether the error is positive or negative.

[0111] As described above, when using TFHE as an odd-division integer-wise operation, the cryptographic processing device 1 can efficiently use the entire circular group and calculate the result of any one-variable function, limited to even and odd functions. In this embodiment, the blocks of the test vector polynomial terms in the first stage are divided finer than the division of the actual circular group, and in the second stage, multiple blocks are converted to the same value so that they are consistent with the original values, making it possible to evaluate even and odd functions even if the entire circular group is divided into an odd number of parts.

[0112] [Third Example] A process for determining the value of a polynomial (the value of a function of a polynomial) will be described below as a third embodiment. In the third embodiment, when calculating the value of a polynomial, the cryptographic processing device 1 divides an arbitrary polynomial into even degree terms and odd degree terms, and calculates x 2 , x 3 , x 4 Find ... and finally perform a linear combination (multiplying each output by a constant and adding them up). Since the zeroth order is a constant and the first order is the original value, it is sufficient to calculate the second order or higher (x squared or higher). Therefore, even if two bootstraps in the common step are combined, the calculation can be performed with at most the same number of bootstraps as the degree of the polynomial. Also, rather than calculating each term one by one, we can break down the polynomial x into the following even and odd functions: n +x n-1 It is a good idea to separate +··· into even-order terms and odd-order terms, and make them even and odd functions, respectively.

[0113] 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 result of any one-variable function by decomposing the function into an even function and an odd function, calculating the encrypted text of the calculation results for each function, and finally adding them together.

[0114] Regarding the decomposition of a function into even and odd functions, using any one-variable function f(x), TIFF0007556580000042.tif2139 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 x in fe(x), the left and right + signs are simply swapped. Therefore, fe(x) = fe(-x), which means that fe(x) is an even function. And, fo(-x) has the same form as -fo(x) with the f on the left and right of the - swapped. In other words, fo(-x) = -fo(x) holds, and fo(x) is an odd function. From the above, finding fe(x) and fo(x) 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.

[0115] To calculate even functions and odd functions, either the method of dividing the circle group into even numbers [first embodiment] or the method of dividing it into odd numbers [second embodiment] can be used. When there is an arbitrary function f(x) to be calculated, it can be decomposed as f(x) = fe(x) + fo(x), and the value of the odd function fo(x) and the value of the even function fe(x) can be calculated by calculating and adding them together. When using the method of the first embodiment, the odd function fo(x) and the even function fe(x) can be calculated by, for example, the above-mentioned <Method 2> and <Method 3>, respectively. In this case, the cryptographic processing device 1 performs a total of four bootstraps, two for each of the calculation of the odd function fo(x) and the calculation of the even function fe(x), as described in <Scheme 2> and <Scheme 3>. Specifically, the cryptographic processing device 1 performs the first bootstrap and the second bootstrap for the odd function fo(x), and the third bootstrap and the fourth bootstrap for the even function fe(x). The cryptographic processing device 1 can then calculate an arbitrary function f(x) by adding together a ciphertext having the value of fe(x) as plaintext and a ciphertext having the value of fo(x) as plaintext. Depending on the form of the function, a fraction of 0.5 may appear in both fe(x) and fo(x), but this does not pose a problem as it disappears when the two are added together at the end.

[0116] Also, when there is an arbitrary function g(x) to be calculated, f(x)=g(x-0.5) may be used, and this f(x) may be decomposed into an even function fe(x+0.5) and an odd function fo(x+0.5). In this case, the odd function fo(x+0.5) and the even function fe(x+0.5) can be calculated by the above-mentioned <Method 1> and <Method 4>, respectively. In this case, as described in <Scheme 1> and <Scheme 4>, the cryptographic processing device 1 performs a total of four bootstraps, two for each of the calculation of the odd function fo(x+0.5) and the calculation of the even function fe(x+0.5). Specifically, the cryptographic processing device 1 performs a first bootstrap and a second bootstrap for the odd function fo(), and a third bootstrap and a fourth bootstrap for the even function fe(x+0.5). Specifically, the cryptographic processing device 1 performs a first bootstrap and a second bootstrap for the odd function fo(x+0.5), and a third bootstrap and a fourth bootstrap for the even function fe(x+0.5). Since g(x) = f(x+0.5) is obtained from f(x) = g(x-0.5), the values ​​of fo(k+0.5) and fe(k+0.5), which constitute the test vector polynomials used in <Method 1> and <Method 4>, can be calculated using g(k) and g(-k). The cryptographic processing device 1 obtains a ciphertext ce by performing homomorphic addition on a ciphertext having the plaintext value fo(a+0.5) obtained by <Method 1> and <Method 4>, respectively, and a ciphertext having the plaintext value fe(a+0.5). The plaintext φ(ce) of the ciphertext ce is fe(a+0.5)+fo(a+0.5)=f(a+0.5)=g(x), and any function g(x) can be calculated.

[0117] As described above, the cryptographic processing device 1 calculates odd functions using the method 1 and calculates even functions using the method 4, which are each expressed as step-like polynomials, as follows: TIFF0007556580000043.tif2176 is used. In addition, the cryptographic processing device 1 calculates odd functions using the method 2 and calculates even functions using the method 3, which are each expressed as step polynomials, as follows: TIFF0007556580000044.tif2286 is used. The denominator 2t that appears in the polynomials used in <Method 1> and <Method 4> is smaller than the denominator 2(t+1) that appears in the polynomials used in <Method 2> and <Method 3>. Therefore, when <Method 1> and <Method 4> are used, the number of divisions in the ciphertext that appear along the way is smaller than when <Method 2> and <Method 3> are used. As the number of divisions decreases, the range assigned to each slice can be made larger, thereby improving resistance to noise.

[0118] FIG. 19 is a flowchart illustrating the process according to the first embodiment (even number division). FIG. 19(a) illustrates a process for computing an odd function. In (a-1), the cryptographic processing device 1 (the first calculation unit 15) calculates a polynomial F1 id The 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 calculation unit 16) calculates a polynomial F f A second bootstrap is performed using (X) as a test vector to calculate the TLWE ciphertext cc.

[0119] In (a-2), the cryptographic processing device 1 (the first calculation unit 15) calculates a polynomial F1id 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 first calculation unit 16) calculates the polynomial F f A second bootstrap is performed using (X) as a test vector to calculate the TLWE 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 TLWE ciphertext cc to calculate a new TLWE ciphertext cd.

[0120] In (a-3), the cryptographic processing device 1 (the first calculation unit 15) calculates, in step S121, a polynomial F1′ for the target TLWE ciphertext ca that has been received as an input. 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 calculation unit 16) calculates a polynomial F1′ f A second bootstrap is performed using (X) as a test vector to calculate the TLWE ciphertext cc.

[0121] FIG. 19(b) illustrates a process for computing an odd function. In (b-1), the cryptographic processing device 1 (the third calculation unit 17) calculates a polynomial F1 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 calculation unit 18) calculates a polynomial F1′ fThe fourth bootstrap is performed using (X) as a test vector to calculate the TLWE ciphertext cd.

[0122] In (b-2), in step S211, the cryptographic processing device 1 (the third calculation unit 17) calculates a polynomial F1′ 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 calculation unit 18) calculates a polynomial F f The fourth bootstrap is performed using (X) as a test vector to calculate the TLWE ciphertext cd.

[0123] FIG. 20 is a flowchart illustrating the process according to the second embodiment (odd number division). FIG. 20(a) illustrates a process for computing an odd function. In step S301, the cryptographic processing device 1 (the fifth calculation unit 41) calculates a polynomial F2 id The fifth bootstrap is performed using (X) as a test vector to calculate the TLWE ciphertext cb. In step S302, the cryptographic processing device 1 (the sixth calculation unit 42) calculates a polynomial F2 f The sixth bootstrap is performed using (X) as a test vector, and the TLWE ciphertext cc is calculated. FIG. 20(b) illustrates a process for calculating an even function. In step S401, the cryptographic processing device 1 (the seventh calculation unit 43) calculates a polynomial F2 absIn step S402, the cryptographic processing device 1 (the eighth calculation unit 44) performs a seventh bootstrap using (X) as a test vector to calculate a TLWE ciphertext cb. f The eighth bootstrap is performed using (X) as a test vector, and the TLWE ciphertext cc is calculated.

[0124] FIG. 21 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. 21(a). Alternatively, as shown in FIG. 21(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. In Gate Bootstrapping in Fig. 21(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 21(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.

[0125] 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 (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).

[0126] 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.

[0127] 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.

[0128] 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]

[0129] The cryptographic processing device 10 calculates even functions and odd functions in an even division using the functions of the first arithmetic unit 12, the second arithmetic unit 13, the first bootstrap unit 15, the second bootstrap unit 16, the third bootstrap unit 17, and the fourth bootstrap unit 18 (first embodiment). The cryptographic processing device 10 performs calculations of even and odd functions in odd-number division using the functions of a fifth bootstrap unit 41, a sixth bootstrap unit 42, a seventh bootstrap unit 43, and an eighth bootstrap unit 44 (second embodiment). 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.

[0130] FIG. 22 is a block diagram illustrating an embodiment of a computer device. 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.

[0131] 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.

[0132] 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 (encryption 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.

[0133] When performing information processing (encryption processing), the cryptographic processing device 1 reads out a program stored in the storage device 102 into the RAM. When performing an even-division odd function calculation, the cryptographic processing device 1 executes a program read into the RAM in the control circuit 101, thereby executing a process including one or more of the reception process, the first calculation process, the first bootstrap processing, the second bootstrap processing, and the output process. When performing an even function calculation with even number division, the cryptographic processing device 1 executes a program read into the RAM in the control circuit 101, thereby executing a process including one or more of the reception process, the second calculation process, the third bootstrap processing, the fourth bootstrap processing, and the output process. When performing an odd function calculation with odd number division, the cryptographic processing device 1 executes a program read into the RAM in the control circuit 101, thereby executing a process including one or more of the reception process, the fifth bootstrap processing, the sixth bootstrap processing, and the output process. When performing an operation of an even function with odd division, the cryptographic processing device 1 executes a program read into the RAM in the control circuit 101, thereby executing a process including one or more of the reception process, the seventh bootstrap processing, the eighth bootstrap processing, and the output process. 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 .

[0134] 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 (encryption 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.

[0135] 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.

[0136] 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]

[0137] 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 plaintext corresponding to an integer, the plaintext being a value to which an error having a predetermined variance is added within a divided region obtained by dividing a range into a predetermined number of regions, and that allows operations between integers to be performed without decryption, calculating a second ciphertext using a first polynomial configured to select a calculation result in a unit smaller than a divided region used for one plaintext symbol corresponding to the first ciphertext in the range; calculating a third ciphertext corresponding to a calculation result of a predetermined calculation by converting two or more types of plaintext symbols corresponding to the second ciphertext into the same plaintext symbol by using a second polynomial on the second ciphertext; 4. A cryptographic processing device comprising:

2. 2. The cryptographic processing device according to claim 1, the first polynomial is a step polynomial; the second polynomial is constructed using either a third polynomial or a fourth polynomial different from the third polynomial; by using the third polynomial for the second ciphertext when the number of divisions of the range in the first ciphertext is even, and by using the fourth polynomial for the second ciphertext when the number of divisions is odd, the third ciphertext is calculated regardless of whether the number of divisions is even or odd.

4. A cryptographic processing device comprising:

3. 2. The cryptographic processing device according to claim 1, When the maximum integer value to which the plaintext of the ciphertext can correspond is t, the first polynomial is a polynomial for performing an operation to obtain a ciphertext corresponding to a value obtained by subtracting a plaintext of the first ciphertext from a lookup table having 2t+1 elements, The second polynomial is a polynomial for performing an operation to obtain a ciphertext corresponding to a value obtained by subtracting a plaintext of the second ciphertext from a lookup table having 2t+1 elements.

4. A cryptographic processing device comprising:

4. 4. The cryptographic processing device according to claim 3, The first polynomial is is a polynomial that satisfies one of the following: The second polynomial is is a polynomial that satisfies 4. A cryptographic processing device comprising:

5. 3. The cryptographic processing device according to claim 1, the result of the predetermined operation is a result of an arbitrary one-variable function on the first ciphertext.

4. A cryptographic processing device comprising:

6. 3. The cryptographic processing device according to claim 1, the result of the predetermined operation is a result of an even function operation on the first ciphertext, 4. A cryptographic processing device comprising:

7. 3. The cryptographic processing device according to claim 1, the result of the predetermined operation is a result of an odd function performed on the first ciphertext, 4. A cryptographic processing device comprising:

8. 3. The cryptographic processing device according to claim 1, The result of the predetermined operation is a value of a function of a polynomial to be operated on.

4. A cryptographic processing device comprising:

9. 9. The cryptographic processing device according to claim 8, Dividing the polynomial to be calculated into an even function and an odd function; calculating a value of the polynomial to be calculated based on a result of the calculation of the odd function on the first ciphertext and a result of the calculation of the even function on the first ciphertext, which are the calculation results of the predetermined calculation; 4. A cryptographic processing device comprising:

10. 3. The cryptographic processing device according to claim 1, a number of divisions of the range of the first ciphertext is set to a prime number, and an arbitrary function of a finite field is calculated as the operation result.

4. A cryptographic processing device comprising:

11. 3. 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:

12. 3. The cryptographic processing device according to claim 1, a fuzzy authentication process or a fuzzy search process using the input ciphertext by performing the predetermined calculation,

13. 3. The cryptographic processing device according to claim 1, performing the predetermined operation to process a query to an encrypted database based on the input ciphertext; 4. A cryptographic processing device comprising:

14. 1. A processor-implemented cryptographic processing method for processing ciphertext, comprising: the ciphertext is a fully homomorphic ciphertext that has a plaintext corresponding to an integer, the plaintext being a value to which an error having a predetermined variance is added within a divided region obtained by dividing a range into a predetermined number of regions, and that allows operations between integers to be performed without decryption, calculating a second ciphertext using a first polynomial configured to select a calculation result in a unit smaller than a divided region used for one plaintext symbol corresponding to the first ciphertext in the range; calculating a third ciphertext corresponding to a calculation result of a predetermined calculation by converting two or more types of plaintext symbols corresponding to the second ciphertext into the same plaintext symbol by using a second polynomial on the second ciphertext; 13. A cryptographic processing method comprising:

15. 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 plaintext corresponding to an integer, the plaintext being a value to which an error having a predetermined variance is added within a divided region obtained by dividing a range into a predetermined number of regions, and that allows operations between integers to be performed without decryption, calculating a second ciphertext using a first polynomial configured to select a calculation result in a unit smaller than a divided region used for one plaintext symbol corresponding to the first ciphertext in the range; calculating a third ciphertext corresponding to a calculation result of a predetermined calculation by converting two or more types of plaintext symbols corresponding to the second ciphertext into the same plaintext symbol by using a second polynomial on the second 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