Precise calculation type homomorphic ciphertext calculation method based on modular lattice

By constructing precise arithmetic fully homomorphic encryption on the modular lattice and utilizing the error learning problem on the modular lattice, the problem of low efficiency of the LWE scheme and insufficient security of the RLWE scheme is solved, and efficient and secure homomorphic ciphertext calculation is achieved.

CN118590214APending Publication Date: 2024-09-03NO 30 INST OF CHINA ELECTRONIC TECH GRP CORP
View PDF 0 Cites 4 Cited by

Patent Information

Application Number
CN202410855015.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

The existing fully homomorphic encryption scheme based on LWE has low computational efficiency, while the fully homomorphic encryption scheme based on RLWE has insufficient security guarantee.

Method used

Adopting an accurate computational homomorphic ciphertext calculation method based on the modular lattice, and constructing an accurate arithmetic fully homomorphic encryption through the error learning problem (MLWE) on the modular lattice, providing indistinguishable selected plaintext security, and through parameter control and efficient relinearity The operation improves the security and computing efficiency of the solution.

Benefits of technology

The security and efficiency of homomorphic ciphertext calculations are improved, and the security issues caused by the strong algebraic structure of the RLWE scheme are avoided. At the same time, the expansion rate of plain and ciphertext is controlled, and the calculation efficiency is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118590214A
    Figure CN118590214A
Patent Text Reader

Abstract

The invention discloses an accurate calculation type homomorphic ciphertext calculation method based on a modular lattice, and the method comprises the steps: inputting a security level parameter into an MLHE.Setup algorithm to obtain a public parameter, and inputting the public parameter into a key generation algorithm to obtain a public key, a private key, and a calculation public key; secondly, inputting a public parameter and a public key by using an encryption algorithm, and performing encryption processing on the plaintext to obtain a first output ciphertext; and performing homomorphic ciphertext calculation on the plurality of first output ciphertexts, the plurality of second output plaintexts and the calculation public key to obtain a ciphertext. And during decryption, a decryption algorithm is utilized, the public parameter and the private key are input, and the ciphertext is decrypted to obtain an output plaintext. Through precise arithmetic type fully homomorphic encryption based on the modular lattice, undistinguishable selection of plaintext security is provided, the problem of error learning on the modular lattice can be reduced, and in addition, the method has the advantages that the scheme security is improved, and the ciphertext calculation efficiency is optimized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of ciphertext calculation, and in particular to a precise calculation type homomorphic ciphertext calculation method based on a modular lattice. Background Art

[0002] Homomorphic ciphertext computing is a cryptographic technology that performs arbitrary computing operations such as addition and multiplication on encrypted data based on homomorphic encryption algorithms. It is one of the most ideal technical means to protect the security of data when used. It can be applied to database encryption, cloud computing security, big data security, machine learning privacy protection and other fields. Homomorphic encryption technology is the core technology of homomorphic ciphertext computing. Rivest et al. proposed the concepts of "privacy homomorphism" and homomorphic encryption, which promoted the birth of single homomorphic encryption schemes such as RSA, ElGamal, and Paillier. Gentry broke through the world's first fully homomorphic encryption scheme based on ideal lattices, realized support for arbitrary ciphertext computing, and pushed the homomorphic encryption field to the development stage of fully homomorphic encryption. According to the computing model, it is divided into four types of fully homomorphic encryption: precise arithmetic type, approximate arithmetic type, Boolean logic type, and multi-key type. Among them, precise arithmetic fully homomorphic encryption can ensure that the decryption of the ciphertext calculation result is completely consistent with the plaintext calculation result in algebra. It is one of the most important development routes in this field at present, and has important applications in set computing, feature matching, privacy information query, electronic voting, etc.

[0003] Single homomorphic encryption algorithms such as RSA, ElGamal, and Paillier all belong to precise computational homomorphic encryption, but they can only support addition or multiplication, and the homomorphic ciphertext computing capability is very limited. The development of fully homomorphic encryption technology is mainly based on precise computing. Brakerski et al. proposed a method to embed the high bits of the message, placing the message in the high bit interval of the plaintext space, eliminating the need for module switching, and designed a precise fully homomorphic encryption scheme based on the error learning problem (Learning With Errors, LWE). The BV scheme was transplanted to the ring error learning problem (Ring Learning With Errors, RLWE), and the BFV scheme was designed to achieve precise ciphertext computing on polynomial rings. Brakerski et al. designed a hierarchical fully homomorphic encryption scheme BGV that does not require a bootstrap algorithm, and discussed the design of LWE and RLWE fully homomorphic encryption schemes under the basic problem of GLWE, which can support precise computing on polynomial rings. Based on the approximate eigenvector method and the LWE difficulty problem, Gentry et al. designed the GSW homomorphic encryption scheme, which makes the expression of homomorphic addition and homomorphic multiplication more concise and also brings the characteristics of asymmetric noise growth.

[0004] Although the precise fully homomorphic encryption scheme and its homomorphic ciphertext calculation have been developed for a long time, the underlying mathematical difficulty problem on which it is based is the LWE or RLWE problem, and there are still some problems. The homomorphic calculation efficiency of the scheme based on LWE is low, and the ciphertext size is large. The scheme based on RLWE has prominent algebraic structure characteristics and insufficient security confidence. Therefore, how to solve the above-mentioned problems such as the low efficiency of the current fully homomorphic encryption scheme based on LWE and the insufficient security guarantee of the fully homomorphic encryption scheme based on RLWE has become a challenge for those skilled in the art. Summary of the invention

[0005] The purpose of this application is to provide a modular lattice-based precise computing homomorphic ciphertext calculation method in order to overcome the existing technical defects. Through the modular lattice-based precise arithmetic fully homomorphic encryption, indistinguishable chosen plaintext security is provided, and the error learning problem on the modular lattice can be reduced. In addition, this application also has the advantages of improving the security of the scheme and optimizing the efficiency of ciphertext calculation.

[0006] The purpose of this application is achieved through the following technical solutions:

[0007] In the first aspect, the present application proposes a precise computational homomorphic ciphertext computation method based on a modular lattice, comprising:

[0008] Input the security level parameters into the MLHE.Setup algorithm to obtain the public parameters;

[0009] Input the public parameters into the key generation algorithm to obtain the public key, the private key and the calculated public key;

[0010] Using an encryption algorithm to process the public parameter, the public key, and the first plaintext to obtain a first output ciphertext;

[0011] Performing homomorphic ciphertext calculation on the plurality of first output ciphertexts, the plurality of second plaintexts, and the calculated public key to obtain a ciphertext;

[0012] The decryption algorithm is used to process the public parameters, ciphertext and private key to obtain the output plaintext.

[0013] In a possible implementation, the step of inputting the security level parameter into the MLHE.Setup algorithm to obtain the public parameter includes:

[0014] Enter the security level parameter λ into MLHE.Setup(1 λ ) algorithm, we can obtain the degree of the generating polynomial d, the ciphertext modulus q, the plaintext modulus t, the modular lattice dimension k, the number of samples l of the error learning problem MLWE on the modular lattice, the relinearization window size w, the integer coefficient polynomial ring R and the secret information probability distribution χ s and the discrete Gaussian distribution χ e ;

[0015] Output common parameters prarms = {d, q, t, k, l, w, R, X s , χ e}.

[0016] In a possible implementation, the steps of inputting the public parameters into the key generation algorithm to obtain the public key, the private key, and calculating the public key include:

[0017] The public parameter prarms is input into the key generation algorithm MLHE.Keygen(prarms), and the secret information probability distribution χ s Upsample the k-dimensional vector s, in the modulo q polynomial ring R q Randomly and uniformly generate a matrix A of dimension l×k, under the discrete Gaussian distribution χ e Upsample the l-dimensional vector e;

[0018] Calculate the first vector b=As-e mod q, where q is a positive integer and mod q is a modulo q operation;

[0019] In the polynomial ring R modulo q q Select Dimensional matrix A reline , from the discrete Gaussian distribution χ e sampling Dimensional vector e reline , calculate the second vector represents tensor product, sk is the private key, Powers w is the power expansion function;

[0020] Get the private key respectively Public Key And calculate the public key

[0021] In a possible implementation, the step of using an encryption algorithm to process the public parameter, the public key, and the first plaintext to obtain the first output ciphertext includes:

[0022] The public parameters prarms, the public key pk and the first plaintext m∈R t Input to the encryption algorithm c←MLHE.enc(prarms, pk, m), from the distribution χ s Sample an l-dimensional vector r from the distribution χ e Sample k-dimensional vector e2 from discrete Gaussian distribution χ e Randomly sample e1 and calculate the first output ciphertext c:

[0023] In one possible implementation, homomorphic ciphertext computation includes one or more of the following operations: homomorphic addition, homomorphic subtraction, homomorphic multiplication, homomorphic plaintext and ciphertext addition, homomorphic plaintext and ciphertext subtraction, and homomorphic plaintext and ciphertext multiplication.

[0024] In one possible implementation, the homomorphic addition c add ←MLHE.Add(c1, c2) is the input of two ciphertexts Calculate and output the calculation result c add =c1+c2mod q, where c1 and c2 represent the ciphertext to be added, and c add It represents the sum of ciphertext after ciphertext addition, q is a positive integer, and mod q represents modulo q operation.

[0025] In one possible implementation, the homomorphic subtraction c sub ←MLHE.Sub(c1, c2) is the input of two ciphertexts Calculate and output the ciphertext calculation result c Sub =c1-c2mod q,c Sub It represents the sum of ciphertext after ciphertext subtraction, q is a positive integer, and mod q represents the modulo q operation.

[0026] In one possible implementation, the homomorphic multiplication c mult ←MLHE.Mult(c1, c2, evk) is the input of two ciphertexts calculate Calculate and output where evk T Represents the transpose of the matrix evk.

[0027] In one possible implementation, the homomorphic plaintext addition c addP ←MLHE.AddPlain(c, pt) is the input ciphertext and the plaintext pt∈R t , calculate and output c addP =(c0+Δ·pt,c1,...,c k ),in

[0028] In a possible implementation, the step of using a decryption algorithm to process the public parameters, the ciphertext, and the private key to obtain output plaintext includes:

[0029] Input the public parameter prarms, ciphertext c′ and private key sk into the decryption algorithm m′←MLHE.Dec(prarms, sk, c′) to get the output plaintext

[0030] The above-mentioned main scheme of the present application and its further options can be freely combined to form multiple schemes, all of which are schemes that can be adopted and claimed for protection in the present application; and in the present application, (non-conflicting options) options and other options can also be freely combined. After understanding the scheme of the present application, those skilled in the art can understand that there are multiple combinations based on the prior art and common knowledge, all of which are technical schemes to be protected by the present application, and they are not exhaustively listed here.

[0031] The present application discloses a precise computational homomorphic ciphertext calculation method based on a module. First, the security level parameter is input into the MLHE.Setup algorithm to obtain the public parameter, and then the public parameter is input into the key generation algorithm to obtain the public key, the private key and the calculated public key. Then, the encryption algorithm is used to input the public parameter and the public key, and the first plaintext is processed to obtain the first output ciphertext. Multiple first output ciphertexts, multiple second plaintexts and the calculated public key are subjected to homomorphic ciphertext calculation to obtain the ciphertext. During decryption, the decryption algorithm is used to input the public parameter and the private key, and the ciphertext is decrypted to obtain the output plaintext. Through precise arithmetic fully homomorphic encryption based on the module, indistinguishable chosen plaintext security is provided, and the error learning problem on the module can be reduced. In addition, the present application also has the advantages of improving the security of the scheme and optimizing the efficiency of ciphertext calculation. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0033] Figure 1 A flow chart of a modular lattice-based precise computing homomorphic ciphertext computing method proposed in an embodiment of the present application is shown.

[0034] Figure 2 Another flowchart of a modular lattice-based precise computing homomorphic ciphertext computing method proposed in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0035] The following describes the embodiments of the present application through specific examples, and those skilled in the art can easily understand other advantages and effects of the present application from the contents disclosed in this specification. The present application can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present application. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.

[0036] Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making any creative work shall fall within the scope of protection of this application.

[0037] In the prior art, most fully homomorphic encryption is constructed using the difficult mathematical problems of LWE or RLWE, with RLWE being the main method. This construction method based on RLWE has prominent algebraic structure characteristics, is easily exploited by attackers, and poses a potential security threat. In addition, the general security of the RLWE problem is reduced to the SIVP problem on the ideal lattice, not the SIVP problem on the general lattice, and can be proven to be not rigorous in security. In addition, the fully homomorphic encryption scheme based on MLWE will increase the expansion rate of plaintext and ciphertext, and cause problems such as inefficient relinearization of homomorphic computing.

[0038] Therefore, in order to solve the above problems, the embodiment of the present application proposes a precise computational homomorphic ciphertext calculation method based on a modular lattice. By selecting a module learning with errors (MLWE) problem between LWE and RLWE, the algebraic structure of RLWE is weakened, thereby improving security. In addition, the expansion rate of the plaintext and ciphertext is controlled not to increase too much through parameters, and two efficient relinearization operations are proposed to improve the efficiency of precise arithmetic homomorphic ciphertext calculation based on the modular lattice.

[0039] Define all symbols and describe them, set is an integer ring, q is a positive integer, Indicates the business ring a is a real number, Indicates rounding to the nearest integer, that is It means taking an integer, that is It means to take the integer, that is The value range of the modular operation amod q is mod means modulus. When the above symbols are used to operate on a vector or a polynomial, it is equivalent to performing the symbol operation on each element in the vector or each coefficient in the polynomial.

[0040] Let the symbol b←S: when S is a set, it means randomly selecting an element b from the set S; when S is a probability distribution, it means randomly sampling an element b from the probability distribution S; when S is a function, it means the output b of the function operation result.

[0041] make Let d≥1, q≥2, modulo q polynomial ring χ e is a polynomial ring R modulo qq Discrete Gaussian distribution on . Vector vector Then the tensor product of two vectors is defined as:

[0042] Assume the relinearization window size w ≥ 2, and let Define the digital decomposition function Decomp with a relinearization window size of w ≥ 2 w and power expansion function Powers w :

[0043]

[0044] Error learning problem on MLWE lattice:

[0045] Let k be a positive integer parameter, in Randomly select a vector In distribution Select vector s = (s1, s2, ..., s k ) as secret information, in the distribution χ e Select the error variable e←χ e , calculate b = a T s+e. Then we get a tuple The resulting distribution

[0046] Search-based MLWE difficulty problem according to m random samples of Solve the secret s.

[0047] Decision-based MLWE Hard Problem Distinguishing distribution and uniform distribution

[0048] Please refer to the following Figure 1 and Figure 2 , Figure 1 The figure shows a flow chart of a method for calculating homomorphic ciphertext based on precise computation of modular lattices proposed in an embodiment of the present application. Figure 2 Another flow chart of a method for calculating homomorphic ciphertext based on a module-based precise calculation type proposed in an embodiment of the present application is shown. The method for calculating homomorphic ciphertext includes the following steps:

[0049] Step S100: input the security level parameters into the MLHE.Setup algorithm to obtain the public parameters.

[0050] The public parameters include the degree of the generator polynomial d, the ciphertext modulus q, the plaintext modulus t, the lattice dimension k, the number of samples l for the error learning problem MLWE on the lattice, the relinearization window size w, the integer coefficient polynomial ring R, and the secret information probability distribution χ s and the discrete Gaussian distribution χ e .

[0051] Step S100 specifically includes: inputting the security level parameter λ into MLHE.Setup(1 λ ) algorithm, we can obtain the degree of the generating polynomial d, the ciphertext modulus q, the plaintext modulus t, the modular lattice dimension k, the number of samples l of the error learning problem MLWE on the modular lattice, the relinearization window size w, the integer coefficient polynomial ring R and the secret information probability distribution χ s and the discrete Gaussian distribution χ e ;

[0052] Output common parameters prarms = {d, q, t, k, l, w, R, X s , χ e}.

[0053] First, the algorithm MLHE.Setup is established, and the computational complexity of the scheme to resist the known optimal attack is determined to be no less than 2 λ , the security level parameter λ is converted into public parameters d, q, t, k, l and the probability distribution of secret information χ through this algorithm s and the discrete Gaussian distribution χ e , where the probability distribution of secret information χ s and the discrete Gaussian distribution χ e The expectation of is 0, and the standard equations are σ s , σ e , so that The computational complexity of solving the upper decision type MLWE problem is not less than 2 λ Finally, we select the relinearization window size w ≥ 2 and let the quotient ring R w = R / wR, output common parameters prarms = {d, q, t, k, l, w, R, χ s , χ e}.

[0054] Step S200: input the public parameters into the key generation algorithm to obtain the public key, the private key and the calculated public key.

[0055] The public parameter prarms is input into the key generation algorithm MLHE.Keygen. The key generation algorithm MLHE.Keygen uses a deterministic modular error learning problem with dimension k, sample size l and modulus q to generate an l×(k+1)-dimensional matrix as the public key pk, a k+1-dimensional vector as the private key sk, and a larger matrix as the calculated public key evk.

[0056] Wherein step S200 comprises:

[0057] The public parameter prarms is input into the key generation algorithm MLHE.Keygen(prarms), and the secret information probability distribution χ s Upsample the k-dimensional vector s, in the modulo q polynomial ring R q Randomly and uniformly generate a l×k dimensional matrix A, in a discrete Gaussian distribution χ e Upsample the l-dimensional vector e;

[0058] Calculate the first vector b=As-e mod q, where q is a positive integer and mod q is a modulo q operation;

[0059] In the polynomial ring R modulo q q Select Dimensional matrix A reline , from the discrete Gaussian distribution χ e sampling Dimensional vector e reline , calculate the second vector represents tensor product, sk is the private key, Powers w is the power expansion function;

[0060] Get the private key respectively Public Key And calculate the public key

[0061] Key generation algorithm (sk, pk, evk) ← MLHE.Keygen(prarms): Input public parameter prarms, in the distribution χ s Randomly sample a k-dimensional vector In the polynomial ring R modulo q q Randomly and uniformly generate an l×k dimensional matrix In distribution Randomly sample an l-dimensional vector Calculate b = As - e mod q.

[0062] In R q Randomly select one Dimensional Matrix From the discrete Gaussian distribution χe Random sampling 1 Dimensional vector calculate

[0063] The bit-decomposition-based relinear method B reline ←MLHE.RelineKeygen(s,w):

[0064] In order to convert the ciphertext of homomorphic multiplication Adjust the format to A relinearization operation is required, including the relinearization key generation algorithm MLHE.RelineKeygen and the relinearization algorithm MLHE.Reline. Firstly, the relinearization key generation algorithm B is given. reline ←MLHE.RelineKeygen(s,w):

[0065] Random uniform selection Random sampling from a discrete Gaussian distribution calculate Where sk = (1, s). Output relinearization key Relinearization Algorithm

[0066]

[0067] Alternatively, we can use the division-based relinearization method in Algorithm B. reline ←MLHE.RelineDKeygen(s, P) (P is the parameter of the division-based relinearization, used for modular promotion):

[0068] The relinear method based on division first performs module lifting, and then uses division to reduce the introduction of noise. This method also consists of the relinearized key generation algorithm MLHE.RelineDKeygen and the relinearization algorithm MLHE.RelineD. First, the relinearized key generation algorithm B′ is given reline ←MLHE.RelineDKeygen(s,P):

[0069] Random uniform selection (k+1) 2 ×k-dimensional matrix Random sampling from a discrete Gaussian distribution calculate Where sk = (1, s), output make Relinearization Algorithm

[0070]

[0071] Note that the operations in the rounding notation are operations in the field of rational numbers.

[0072] Generally, homomorphic multiplication consists of two parts: ciphertext tensor product and relinearization algorithm. The relinearization algorithm is used after ciphertext tensor multiplication to control the ciphertext size of homomorphic multiplication. This application adopts the relinearization method based on bit decomposition and the relinearization method based on division.

[0073] Finally output the private key Public Key Calculate the public key evk = B reline , B reline =(b reline , A reline ).

[0074] Step S300: Use an encryption algorithm to process the public parameters, the public key and the first plaintext to obtain a first output ciphertext.

[0075] The encryption algorithm MLHE.enc uses a dimension of l, a sample size of k, and a modulus of q. It embeds the high bit of the plaintext m with a modulus of t into the first position of the ciphertext vector and outputs a k+1-dimensional vector as the first output ciphertext c.

[0076] Wherein step S300 comprises:

[0077] Input the public parameter prarms, the public key pk and the first plaintext m into the encryption algorithm c←MLHE.enc(prarms, pk, m), and Sample an l-dimensional vector r from the distribution Sample k-dimensional vector e2 from discrete Gaussian distribution χ e Randomly sample e1 and calculate the first output ciphertext c:

[0078] Encryption algorithm c←MLHE.enc(prarms, pk, m): Input public parameters prarms, public key pk, and plaintext m∈R t , from the distribution Randomly sample an l-dimensional vector r from the distribution Randomly sample a k-dimensional vector e2 from the distribution χ e Randomly sample 1 sample e1, calculate and output the first output ciphertext c: The first output ciphertext c is split into columns c=(c0, c1, ..., c k ).

[0079] Step S400: Perform homomorphic ciphertext calculation on multiple first output ciphertexts, multiple second plaintexts, and a calculated public key to obtain a ciphertext.

[0080] Homomorphic ciphertext computation includes one or more of the following operations: homomorphic addition, homomorphic subtraction, homomorphic multiplication, homomorphic plaintext and ciphertext addition, homomorphic plaintext and ciphertext subtraction, and homomorphic plaintext and ciphertext multiplication.

[0081] The homomorphic ciphertext calculation includes homomorphic addition MLHE.Add, homomorphic subtraction MLHE.Sub, homomorphic multiplication MLHE.Mult, homomorphic plaintext addition MLHE.AddPlai n 、Homomorphic plaintext subtraction MLHE.SubPlai n , homomorphic plaintext and ciphertext multiplication MLHE.MultPlain and other precise arithmetic homomorphic ciphertext calculation methods.

[0082] Homomorphic addition c add ←MLHE.Add(c1, c2) is the input of two ciphertexts Calculate and output the calculation result c add =c1+c2mod q, where c1 and c2 represent the ciphertext to be added, and c add It represents the sum of ciphertext after ciphertext addition, q is a positive integer, and mod q represents modulo q operation.

[0083] Homomorphic subtraction c sub ←MLHE.Sub(c1, c2) is the input of two ciphertexts Calculate and output the ciphertext calculation result c Sub =c1-c2mod q,c Sub It represents the sum of ciphertext after ciphertext subtraction, q is a positive integer, and mod q represents the modulo q operation.

[0084] Homomorphic multiplication c mult ←MLHE.Mult(c1, c2, evk) is the input of two ciphertexts calculate Calculate and output where evk T Represents the transpose of the matrix evk

[0085] In homomorphic multiplication, a relinear method based on bit decomposition and a relinear method based on division are adopted.

[0086] If the key is calculated using a bit-decomposition-based relinearization key generation algorithm, then the bit-decomposition-based relinearization algorithm must be called to calculate and output

[0087] Relinearization algorithm based on bit decomposition:

[0088] In order to convert the ciphertext of homomorphic multiplication Adjust the format to A relinearization operation is required, including the relinearization key generation algorithm MLHE.RelineKeygen and the relinearization algorithm MLHE.Reline.

[0089] make Firstly, the relinearization key generation algorithm B is given. reline ←MLHE.RelineKeygen(s, w): Random uniform selection Random sampling from a discrete Gaussian distribution calculate Where sk = (1, s). Output relinearization key

[0090] Relinearization Algorithm

[0091]

[0092] Relinearization algorithm based on division:

[0093] Relinearization key generation algorithm B′ reline ←MLHE.RelineDKeygen(s, P): Random uniform selection Random sampling from a discrete Gaussian distribution calculate Where sk = (1, s). Output

[0094] make Relinearization Algorithm

[0095]

[0096] Note that the operations in the rounding notation are operations in the field of rational numbers.

[0097] It is worth noting that the present application embodiment also proposes a homomorphic ciphertext key switching method. new ←MLHE.KeySwitch(K KeySwitch , c old ):

[0098] In the case of proxy applications or multi-user ciphertext calculations, it is necessary to old =(1, s old )Decrypted ciphertext c old, converted to a new private key sk new =(1, s new )Decrypted ciphertext ct new , and keep the corresponding plaintext unchanged. At this time, a new step needs to be added to the key generation phase of the MLHE scheme to calculate the key switching key. Here, K KeySwitch ←MLHE.SwitchKeygenF(sk old ,sk new , w) or K KeySwitch ←MLHE.SwitchKeygenD(sk old ,sk new , P).

[0099] The homomorphic ciphertext key switching algorithm is performed as follows:

[0100] Enter K KeySwitch , ciphertext, c old , if K KeySwitch Is generated by MLHE.SwitchKeygenF, then call ct new ←MLHE.KeySwitchF(K KeySwitch , c old ,w); if K KeySwitch is generated by MLHE.SwitchKeygenD, then call ct new ←MLHE.KeySwitchD(K KeySwitch , c old , P), output the new ciphertext ct new .

[0101] The above two key switching algorithms can realize the replacement of decryption keys without decryption.

[0102] Homomorphic plaintext and ciphertext addition c addP ←MLHE.AddPlain(c, pt) is the input ciphertext and the plaintext pt∈R t , calculate and output c addP =(c0+Δ·pt,c1,...,c k ),in

[0103] Homomorphic plaintext subtraction c subP ←MLHE.SubPlain(c, pt): input ciphertext and the plaintext pt∈R t , calculate and output c subP =(c0-Δ·pt, c1, ..., c k ),in

[0104] Homomorphic plaintext and ciphertext multiplication c multP ←MLHE.MultPlain(c, pt): input ciphertext and the plaintext pt∈R t , calculate c multP =(c0·pt, c1·pt, ..., c k pt).

[0105] The ciphertext c′ can be any output of homomorphic addition, homomorphic subtraction, homomorphic multiplication, homomorphic plaintext addition, homomorphic plaintext subtraction, and homomorphic plaintext multiplication in homomorphic ciphertext calculation.

[0106] Step S500: Use a decryption algorithm to process the public parameters, ciphertext and private key to obtain output plaintext.

[0107] The decryption algorithm MLHE.Dec takes the inner product of the ciphertext c and the private key sk, multiplies it by t / q, rounds it to the nearest integer, and performs the modulo t to recover the plaintext.

[0108] Step S500 includes: inputting the public parameter prarms, the ciphertext c′ and the private key sk into the decryption algorithm m′←MLHE.Dec(prarms, sk, c′) to obtain the output plaintext

[0109] Compared with the prior art, the embodiments of the present application have the following beneficial effects:

[0110] First, it has provable security. The present invention includes an accurate arithmetic fully homomorphic encryption scheme based on a modular lattice, which has indistinguishable chosen plaintext security and can be reduced to the learning with errors problem (MLWE) on a modular lattice.

[0111] Second, security is more guaranteed. The present invention adopts the modular lattice error learning problem (MLWE) to construct a precise computational fully homomorphic encryption scheme and its ciphertext calculation method, avoiding the potential security problems caused by the strong algebraic structure of the ring error learning problem RLWE, and ensuring the security of the method.

[0112] Third, the efficiency of ciphertext calculation is taken into consideration. The present invention reduces the noise introduced into fresh ciphertext and improves the calculation efficiency of homomorphic multiplication through an external rounding method in the encryption stage and a relinearization method based on division.

[0113] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present application should be included in the protection scope of the present application.

Claims

1. A precise computational homomorphic ciphertext computation method based on modular lattice, characterized in that: include: Input the security level parameters into the MLHE.Setup algorithm to obtain the public parameters; Input the public parameters into the key generation algorithm to obtain the public key, the private key and the calculated public key; Using an encryption algorithm to process the public parameter, the public key, and the first plaintext to obtain a first output ciphertext; Performing homomorphic ciphertext calculation on the plurality of first output ciphertexts, the plurality of second plaintexts, and the calculated public key to obtain a ciphertext; The decryption algorithm is used to process the public parameters, ciphertext and private key to obtain the output plaintext.

2. The precise computational homomorphic ciphertext computing method according to claim 1, characterized in that: The step of inputting the security level parameter into the MLHE.Setup algorithm to obtain the public parameter comprises: Enter the security level parameter λ into MLHE.Setup(1 λ ) algorithm, we can obtain the degree of the generating polynomial d, the ciphertext modulus q, the plaintext modulus t, the modular lattice dimension k, the number of samples l of the error learning problem MLWE on the modular lattice, the relinearization window size w, the integer coefficient polynomial ring R and the secret information probability distribution χ s and the discrete Gaussian distribution χ e ; Output common parameters prarms = {d, q, t, k, l, w, R, χ s , χ e }.

3. The precise computational homomorphic ciphertext computing method according to claim 2, characterized in that: The steps of inputting the public parameters into the key generation algorithm to obtain the public key, the private key and calculating the public key include: The public parameter prarms is input into the key generation algorithm MLHE.Keygen(prarms), and the secret information probability distribution χ s Upsample the k-dimensional vector s, in the modulo q polynomial ring R q The l×k-dimensional matrix A is generated randomly and uniformly on the discrete Gaussian distribution χ e Upsample the l-dimensional vector e; Calculate the first vector b=As-e mod q, where q is a positive integer and mod q is a modulo q operation; In the polynomial ring R modulo q q Select Dimensional matrix A reline , from the discrete Gaussian distribution χ e sampling Dimensional vector e reline , calculate the second vector represents tensor product, sk is the private key, Powers w is the power expansion function; Get the private key respectively Public Key And calculate the public key 4. The precise computational homomorphic ciphertext computing method according to claim 3, characterized in that: The step of using an encryption algorithm to process the public parameter, the public key, and the first plaintext to obtain a first output ciphertext includes: The public parameters prarms, the public key pk and the first plaintext m∈R t Input to the encryption algorithm c←MLHE.enc(prarms, pk, m), from the distribution χ s Sample an l-dimensional vector r from the distribution χ e Sample k-dimensional vector e2 from discrete Gaussian distribution χ e Randomly sample e1 and calculate the first output ciphertext c:

5. The precise computational homomorphic ciphertext computing method according to claim 4, characterized in that: Homomorphic ciphertext computation includes one or more of the following operations: homomorphic addition, homomorphic subtraction, homomorphic multiplication, homomorphic plaintext and ciphertext addition, homomorphic plaintext and ciphertext subtraction, and homomorphic plaintext and ciphertext multiplication.

6. The precise computational homomorphic ciphertext computing method according to claim 5, characterized in that: Homomorphic addition c add ←MLHE.Add(c1, c2) is the input of two ciphertexts Calculate and output the calculation result c add =c1+c2 mod q, where c1 and c2 represent the ciphertext to be added, c add It represents the sum of ciphertext after ciphertext addition, q is a positive integer, and mod q represents modulo q operation.

7. The precise computational homomorphic ciphertext computing method according to claim 5, characterized in that: Homomorphic subtraction C sub ←MLHE.Sub(c1, c2) is the input of two ciphertexts Calculate and output the ciphertext calculation result C Sub =c1-c2 modq, c Sub It represents the sum of ciphertext after ciphertext subtraction, q is a positive integer, and mod q represents the modulo q operation.

8. The precise computational homomorphic ciphertext computing method according to claim 5, characterized in that: Homomorphic multiplication C mult ←MLHE.Mult(c1, c2, evk) is the input of two ciphertexts calculate Calculate and output where evk T Represents the transpose of the matrix evk.

9. The precise computational homomorphic ciphertext computing method according to claim 5, characterized in that: Homomorphic plaintext and ciphertext addition c addP ←MLHE.AddPlain(c, pt) is the input ciphertext and the plaintext pt∈R t , calculate and output c addP =(c0+Δ·pt,c1,...,c k ),in 10. The precise computing homomorphic ciphertext computing method according to claim 5, characterized in that: The steps of using the decryption algorithm to process the public parameters, ciphertext and private key to obtain the output plaintext include: Input the public parameter prarms, ciphertext c′ and private key sk into the decryption algorithm m′←MLHE.Dec(prarms, sk, c′) to get the output plaintext

Citation Information

Cited By

  • Decentralization model efficient threshold multi-party calculation method and system based on homomorphic encryption

    CN119853884A

  • Security level estimation and parameter optimization method of fully homomorphic encryption scheme based on LWE problem

    CN120034312A

  • Multi-bit encryption method and system based on LP public key

    CN121690582A

  • Fully homomorphic encrypted ciphertext transmission method and system based on linear calculation

    CN122247763A