Abstract
The lattice-based multi-identity fully homomorphic encryption scheme combines the quantum security of lattice cryptography with the advantage of identity-based encryption. However, existing schemes face challenges such as large key sizes, inefficient ciphertext expansion processes, and reliance on outdated trapdoor designs, limiting their compactness and practicality. In this study, we propose a novel Compact Multi-Identity Fully Homomorphic Encryption Scheme (WZ-MIBFHE) that eliminates the need for fresh ciphertexts during expansion. First, we construct a compact identity-based encryption scheme by combining the YJW23 trapdoor and ABB10 under the standard model, proving its IND-sID-CPA security. The scheme is then adapted to ensure correctness and security when integrated with the decomposition method for ciphertext expansion. This adaptation also utilizes approximation errors to reduce overall noise. Finally, we expand the modified IBE scheme’s ciphertext using the decomposition method to construct the WZ-MIBFHE scheme. Compared to existing methods, WZ-MIBFHE reduces the lattice dimension to , improves public and private key sizes, and significantly lowers ciphertext expansion rates by removing the need for fresh ciphertexts. These improvements enhance both the compactness and efficiency of the scheme, making it a promising solution for multi-identity homomorphic encryption.
1. Introduction
With the advancement of technology and the popularization of digitization, people are in a data-centric era, where the volume of data is growing rapidly and the circulation and interaction between data have become more frequent. Data owners, due to their own resource constraints, usually do not store or process the data directly, but entrust it to non-trusted third parties for storage or processing. We refer to this data processing model as the outsourced computing model. The rapid development of outsourced computing has brought convenience for people to solve more complex problems, but also introduced many new issues, privacy security being the first one. How to solve the contradiction between outsourced data storage and computation and privacy security is a new issue emerging from the outsourced computing model. Homomorphic encryption technology can perfectly solve the conflict between outsourced data storage and computation and privacy security in the outsourced computing model.
In 1978, Rivest et al. [1] first introduced the concept of homomorphic encryption, i.e., encryption methods that allow data to be encrypted in an encrypted state for specific computations. Based on different mathematical problems, cryptographers have constructed various homomorphic encryption schemes, such as the RSA scheme [2] based on the problem of integer factorization, the ElGamal scheme [3] based on the discrete logarithm problem, and the Paillier scheme [4] based on the composite residuosity assumption. However, with the rapid development of quantum computers, the limitations of these traditional number-theoretic homomorphic encryption schemes in resisting quantum algorithm attacks have been greatly amplified. Consequently, ideal lattice problems, which can withstand quantum attacks, have attracted the attention of researchers. In 2009, Gentry [5] constructed the first fully homomorphic encryption scheme based on ideal lattices. Since then, cryptographers have engaged in extensive and in-depth research on constructing homomorphic encryption schemes based on ideal lattices. Homomorphic encryption has different branches based on different foundational schemes. According to these foundational schemes, homomorphic encryption is divided into four generations: the first generation represented by GSW [6], the second generation represented by BGV [7], and the third generation represented by TFHE [8], Finally, there is the fourth generation of homomorphic encryption schemes, represented by CKKS [9].
Fully homomorphic encryption extends the functionality of traditional public key encryption systems, but like traditional public key encryption, it requires a complex certificate management system. In large-scale networks, managing a vast number of public keys and certificates becomes increasingly complex, affecting the system’s efficiency. Identity-Based Encryption (IBE) schemes, on the other hand, can generate public keys and public parameters directly from a user’s unique identity, eliminating the need for public key certificates for authentication. In an IBE system, a trusted Private Key Generator (PKG) creates the user’s secret key and securely sends it to the user. The distribution mechanism is as follows: the user submits their identity information to the PKG, which generates the master key and the corresponding user private key based on the user’s identity. These keys are then securely distributed to the user via encrypted transmission or similar methods. This approach avoids the overhead of public key certificates and allows for more efficient key management.
The integration of identity-based mechanisms with cryptographic schemes has been explored in various contexts to address application-specific challenges. For example, Ahmad and Hannusch [10] proposed a keyed hash function based on Latin squares and error-correcting codes, aiming to enhance user authentication in smart home environments. Their work demonstrates how lightweight cryptographic primitives can address identity-related security challenges in IoT applications. Similarly, our work leverages the advantages of IBE to reduce the public key overhead in homomorphic encryption systems. Identity-Based Fully Homomorphic Encryption (IBFHE) combines the strengths of both homomorphic encryption and identity-based encryption, enabling access control and homomorphic operations on identity-based ciphertexts while also facilitating efficient key management.
In 2013, Gentry et al. [6] introduced the method of approximate eigenvector and constructed a FHE scheme, known as the GSW scheme. The method of approximate eigenvector can transform any IBE scheme that meets specific conditions into an IBFHE scheme. Unfortunately, this IBFHE scheme only allows homomorphic operations on ciphertexts under the same identity, limiting its ability to address outsourced computation scenarios.In order to resolve this issue, Clear et al. [11] in 2015 extended the GSW scheme to support multiple identities by introducing a Mask System (MS). Through the MS, they expanded “fresh” ciphertext matrices encrypted under different identities into multi-identity ciphertext matrices. These extended ciphertext matrices could then undergo homomorphic operations, ultimately constructing the first selectively secure multi-identity fully homomorphic encryption (MIBFHE) scheme in the oracle model. However, the ciphertext expansion process in this scheme was complex, and the noise growth occurred too rapidly.
In 2017, Canetti et al. [12] dynamically combined Multi-Key Fully Homomorphic Encryption (MKFHE) with IBE to construct a Multi-Identity Based Fully Homomorphic Encryption scheme. However, the ciphertext expansion in this scheme depended on the number of ciphertexts, making it less compact. That same year, Wang et al. [13] leveraged the MP12 trapdoor by Micciancio and Peikert [14] along with the MS to design a more efficient MIBFHE scheme. In 2019, Tu et al. [15] applied the MP12 trapdoor to improve the CHKP10 [16] identity-based scheme, upon which they constructed an MIBFHE scheme. However, since the size of the public key and the length of the ID in the CHKP10 scheme grow linearly in proportion, this greatly affects the storage space and computational efficiency of the MIBFHE system. In the same year, Shen et al. [17] optimized the ABB10 [18] scheme using the MP12 trapdoor, and based on this optimization, they built a highly efficient MIBFHE scheme. The optimized scheme significantly improved the size of the master secret key, identity public key, and ciphertext. In 2021, Shen et al. [19] utilized a compressible ciphertext extension technique to construct a compact MIBFHE scheme, which, to some extent, addressed the issue of low bandwidth efficiency in multi-identity settings. In 2022, Liu et al. [20] proposed a multi-hop MIBFHE scheme utilizing the ciphertext extension technique from PS16 [21], thereby expanding the functionality of MIBFHE schemes. That same year, Fan et al. [22] proposed an improved lattice-based MIBFHE scheme by combining the MP12 trapdoor with the Dual Regev algorithm to construct an enhanced IBE scheme. Based on this, they used MS to design a highly efficient MIBFHE scheme. Compared to similar schemes, their approach significantly reduced both lattice dimensions and ciphertext size. Although the aforementioned MIBFHE schemes have achieved varying degrees of optimization, the efficiency of MIBFHE still faces bottlenecks. The core issue lies in the fact that the trapdoors used in these schemes are outdated compared to the theoretical advancements in trapdoor research. These trapdoors rely on computationally expensive matrix inversion operations, and the preimage sampling algorithms require high-precision real-number orthogonal iteration during the sampling process. This results in large public parameter sizes and a lack of compactness in the schemes. While techniques for reducing public parameter sizes exist, they often lead to increased scheme complexity. Additionally, existing MIBFHE schemes typically use the MS for ciphertext extension, which requires first generating fresh ciphertexts and then converting them into extended ciphertexts. This leads to a cumbersome and inefficient overall process, and the noise expansion rate in previous ciphertext extension methods is excessively high.
Our Contributions: We present a Compact Multi-Identity Fully Homomorphic Encryption Scheme without Fresh Ciphertexts by integrating various optimizations to emphasize compactness. Specifically, our main contributions as follows:
- We incorporated the YJW23 [23] trapdoor-based preimage sampling algorithm into the ABB10-IBE scheme, thereby proposing a compact foundational IBE scheme within the standard model. We also provide a proof that our scheme is IND-sID-CPA secure.
- We made appropriate optimizations to the foundational IBE scheme by adjusting the relationship between the public key matrix and the identity vector to meet the security requirements for constructing a compact MIBFHE scheme using the decomposition method. And we modified the structure of the key so that the approximation error originally introduced can be subtracted from the noise generated during decryption, thereby reducing the overall noise in the scheme.
- We introduce a new ciphertext extension method—the decomposition method—which directly extends our improved IBE scheme into an MIBFHE scheme, WZ-MIBFHE, without the need to convert the IBE into an IBFHE and then apply ciphertext extension to the IBFHE scheme to construct the MIBFHE scheme. WZ-MIBFHE can directly generate extended ciphertexts for homomorphic evaluation without the need to pre-generate new ciphertexts. WZ-MIBFHE exhibits smaller noise growth, with the lattice dimension being only and the ciphertext expansion rate is reduced to D.
2. Preliminaries
Notation.Let and represent the set of real numbers and integers, respectively. For a positive integer q, define the set as:
When q is not divisible by 2, the floor function is used to ensure proper rounding during modular reductions. Modulo allowing negative values to be equivalent to positive values, we use the negative sign to denote half of the integer field. This symmetric representation provides a balanced interval for modular arithmetic, which is particularly beneficial in lattice-based cryptographic schemes. We use to represent drawing a sample from the distribution D. For a finite set S, denotes the uniform distribution over S, and indicates that the sample is drawn according to the uniform distribution . The notation is used to indicate the concatenation of matrices and . The Euclidean norm of a vector is denoted as , and represents the largest singular value of matrix . For a vector , denotes the i-th component of the vector. For a matrix , refers to the element in the i-th row and j-th column.
2.1. Definition
Below we provide some definitions that will be used in this paper.
Definition 1 (Negligible Function).
Let n denote the input size of an algorithm. A function is called negligible if it is a function that approaches zero more rapidly than the inverse of any polynomial. Specifically, for any polynomial , there exists an integer n such that for all , the inequality always holds. If the probability of an event occurring is given by a negligible function negl(n), then the event is said to be negligible. Conversely, if the probability of an event occurring is , then the event is said to occur with overwhelming probability.
Definition 2 (B-Bounded Distribution).
A collection of distributions over integers is called B-bounded if it satisfies the following equation.
Definition 3 (-Noisy Ciphertext).
A message encrypted under the secret key results in a β-noisy ciphertext , satisfying , where .
Definition 4 (Multi-Identity Based Fully Homomorphic Encryption Scheme).
An MIBFHE scheme is comprised of six probabilistic polynomial-time (PPT) algorithms: Setup, Extract, Enc, Extend, Eval, and Dec, each defined as follows:
: Input the security parameter λ, the maximum depth L of homomorphic operation circuits, and the maximum number of user identities D. Output the master public key () and master secret key ().
: Input the , , and identity vector . Output the identity public key and corresponding private key .
: Input , identity , and message . Output a fresh ciphertext .
: Input , the necessary identities , and the fresh ciphertext . Compute and output the extended ciphertext for the concatenated identities
: Input , a Boolean circuit f, and the ciphertexts . Output the result ciphertext .
: Input , the concatenated private keys of D identities, and the extended ciphertext or result ciphertext . Output the message .
Definition 5 (Indistinguishable from Random, Select-Identity, Chosen-Plaintext Attachment).
(IND-sID-CPA) imposes additional restrictions on the adversary, requiring the adversary to declare the target identity it plans to attack before obtaining the public parameters. For an MIBFHE scheme, the security model between the challenger and the PPT adversary is defined as follows:
Initialization Phase:
The adversary first declares the target identity it plans to attack. Then, given the maximum depth L of the computation circuit and the number of participating user identities D, the challenger runs the initialization algorithm Setup to generate and , and sends the to the adversary.
Query Phase: The adversary initiates private key queries for . The challenger runs the private key generation algorithm Extract to generate the corresponding private keys and sends them to the adversary.
Challenge Phase:
Adversary submits a plaintext message as the challenge. Challenger chooses a random bit r from and a random ciphertext c. If r equals 0, then is defined as ; if r equals 1, then equals c. Challenger then dispatches to adversary as the challenge.
Guess Phase:
The adversary outputs as their guess. If equals r, then adversary wins the game and is considered an IND-sID-CPA adversary. Let denote the advantage of adversary in attacking the encryption scheme. If for all IND-sID-CPA adversaries the advantage is , then the encryption scheme is IND-sID-CPA secure.
2.2. Lattice
A lattice in the Euclidean space is a set of points arranged in a regular pattern, and the coordinates of these points can be represented by a set of integer-coefficient vectors in the space, referred to as the basis vectors of the lattice. The specific definition is as follows:
Definition 6 (Lattice).
Let be n linearly independent vectors in , let . The lattice generated by the vectors in is defined as follows:
where are a set of basis vectors for the lattice , and a lattice can have multiple sets of bases. m represents the dimension of the lattice, and n is the rank of the lattice, with . When , the lattice is referred to as a full-rank lattice.
Definition 7 (q-ary Lattice).
Given , a prime q, and . A q-ary lattice is defined as follows: For some
Definition 8 (Integral Lattice).
If all the elements of the vectors in the lattice Λ are integers, then Λ is called an integral lattice. Let q be a prime number and . The q-ary integral lattice is defined as follows: For some
2.3. Discrete Gaussian Distribution
The Gaussian distribution is a commonly used probability distribution in the design of lattice cryptographic schemes. Next, we will introduce the relevant definitions and important lemmas involved in this paper.
Definition 9 (Gaussian Function).
Given any real number , with standard deviation σ and a center , the Gaussian function for all is defined as follows:
Definition 10 (Discrete Gaussian Distribution).
Consider . Given a real number , and a center with standard deviation σ, the discrete Gaussian distribution for any is defined as follows:
For clarity, when , and are simplified to and , respectively. Similarly, when , is denoted as ρ. The distribution is generally defined over the lattice associated with a matrix , or over a shifted lattice , where .
Lemma 1
([24]). Consider be a basis for the m-dimensional lattice Λ, and for some negligible function , let . Then,
Lemma 2
([25]). Let n be a positive integer, and let be a vector randomly selected from . Let the error vector , where , and represents the discrete Gaussian distribution over corresponding to a normal distribution with mean 0 and standard deviation over . If represents an m-dimensional error vector randomly selected from the distribution , then can be viewed as an integer in the range and satisfies
Lemma 3
([26]). Assume , and q is a prime. Uniformly randomly select matrices and . Let be an matrix uniformly randomly selected from . For all vectors , The distributions and are statistically indistinguishable.
2.4. Learning with Errors
The LWE problem, a classic lattice problem defined by Regev, underpins the security of all the constructions presented in this paper. The LWE problems are divided into two primary categories: worst-case problems and average-case problems. In lattice cryptography schemes, the most frequently employed problems are LWE problem and the Small Integer Solution (SIS) assumption. The LWE problem is predominantly used for constructing public key encryption, attribute-based encryption schemes, and identity-based encryption. Conversely, the SIS assumption is mainly utilized in the creation of one-way hash functions, collision-resistant hash functions, digital signatures, and authentication schemes.
Definition 11 (LWE Distribution).
For a uniformly random and fixed secret vector , a vector is selected uniformly at random, and a random number e is drawn from a distribution χ, where χ is a discrete Gaussian error distribution over . The LWE distribution is defined as the output of uniform samples of the form , denoted as .
Definition 12 (Search LWE).
Given m independent and uniformly random samples from the LWE distribution , the objective is to recover the unknown secret vector .
Definition 13 (Decision LWE).
Let λ be the security parameter, be a prime, and be a discrete Gaussian error distribution over . An instance of the problem is to distinguish between the following two challenge oracles : : Outputs uniformly random samples from , where and , “” denotes uniform random sampling. : Selects a uniformly random fixed secret vector , then selects and samples uniformly, with . Outputs .
The LWE problem is that it is difficult to distinguish between the two oracle outputs mentioned above.
2.5. Preimage Sampling Algorithm
Lemma 4
([27]). Let be a matrix approximation trapdoor pair, and such that . Use to denote . The two distributions that follow are statistically indistinguishable:
The efficiency of basic Gaussian sampling is crucial to the overall performance of the Gaussian preimage sampling algorithm. The standard deviation is a significant measure of this algorithm’s effectiveness. A smaller standard deviation indicates a higher quality of the Gaussian preimage sampling algorithm. Furthermore, the quality of the trapdoor matrix also significantly influences the performance of the Gaussian preimage sampling algorithm.
3. Identity-Based Encryption Scheme
The efficiency of MIBFHE schemes is largely determined by the underlying IBE scheme. To construct a compact and streamlined MIBFHE scheme, the design of the underlying IBE scheme is crucial. The two most mainstream IBE schemes are CHKP10 and ABB10. However, the size of the public key and the length of the identity ID in CHKP10 grow proportionally and linearly, which limits its storage space and computational efficiency. In this section, we incorporate the preimage sampling algorithm based on the YJW23 trapdoor into the ABB10 scheme, constructing a compact IBE scheme. The parameters of the improved scheme are more concise, and we have verified its correctness and security. Compared to similar IBE schemes, our compact IBE scheme achieves significant optimizations in its main parameters.
3.1. Our IBE Construction
The parameters of the scheme are defined as follows: Let be the security parameter, be the modulus where p and q are positive integers, and let , , , and . Let be the bounded error distribution, . Construct a gadget matrix where , is an identity matrix, and b is a small integer. The identity encoding Full-Rank Differences (FRD) function satisfies .
The IBE scheme constructed in this paper consists of four parts: the initialization algorithm , the key generation algorithm , the encryption algorithm , and the decryption algorithm :
- (1)
- : Input the security parameter , choose , error distribution . Let and . Uniformly and randomly select an n-dimensional vector , a matrix , and generate a uniformly random matrix with a trapdoor matrix . Outputs as the master public key and as the master secret key.
- (2)
- : Provide the , , and the user identity vector as input. Use the identity encoding FRD function to generate an invertible matrix corresponding to each identity . Let the user identity public key matrix be . Run the preimage sampling algorithm to generate a sampling vector that follows the discrete Gaussian distribution , satisfying , where is the approximation error of the trapdoor. Let . Output the private key for each user identity , satisfying .
- (3)
- : Provide as input the , user identity , and a plaintext bit message . Define the vector . Uniformly and randomly select a vector , and uniformly randomly select an error vector from the LWE error distribution, with . Output the ciphertext .
- (4)
- : Input , user private key , and ciphertext . Compute and denote the result as . When , output ; otherwise, , output .
3.2. Correctness and Parameters
Theorem 1.
When . According to Definition 1, we state the IBE we described in Section 3.1 achieves correct decryption with overwhelming probability.
Proof of Theorem 1.
From the decryption formula, we have
Let ,Then we have . From Lemma 1, we know that , where ; From Lemma 2, we have
To ensure the correctness of the IBE scheme’s decryption, the relevant parameter values must satisfy the following conditions:
- (1)
- To guarantee the decryption algorithm works correctly, it is necessary to ensure that the error term satisfies . As stated in GPV08, this condition holds when and , it is highly probable that , and . When , if , then ; if , then , Clearly, the decryption algorithm is capable of successfully decrypting with overwhelming probability.
- (2)
- The hardness assumption of the LWE problem requires that . From the above, we know that when and Q are chosen to their extreme values, we can achieve, We can ensure , meeting the security condition of the LWE problem .
Based on the above analysis, we set the scheme parameters as follows:
□
3.3. Security Analysis
Theorem 2.
The enhanced IBE scheme proposed in this paper is proven to be IND-sID-CPA secure under the assumption that the problem is hard.
Proof of Theorem 2.
The security proof for the enhanced IBE scheme involves a sequence of IND-sID-CPA games conducted between the adversary and the challenger within the standard model. In this paper, we use the term “game” to describe the interaction process between the attacker and the encryption system, rather than referring to an actual game. The proof process is summarized as follows:
Game 0: The initial standard IND-sID-CPA game between the adversary and the challenger for the IBE scheme.
Game 1: The adversary declares the target identity to be attacked. Compared to Game 0, the challenger in Game 1 changes the generation method of the matrix , uniformly randomly generating the matrix
instead of
in Game 0. According to Lemma 3, for the adversary , the matrix generated in Game 0 is statistically indistinguishable from the matrix generated in Game 1. Therefore, the ability of adversary to distinguish between Game 1 and Game 0 is extremely limited, with an advantage so small it can be considered negligible.
Game 2: In Game 2, compared to Game 1, the challenger changes the response method for private key queries for . Game 2 uses the public matrix and the trapdoor matrix of the lattice , retaining the form of
from Game 1, then
Based on the definition of the identity encoding FRD function, is guaranteed to be non-singular. To respond to the adversary’s private key query, the challenger utilizes preimage sampling on the trapdoor matrix by executing the preimage sampling algorithm
and the private key is provided to the adversary . If , then becomes a singular matrix, causing the game to terminate. According to Lemma 4, the distribution in Game 2 is statistically indistinguishable from in Game 1 as . Therefore, the advantage of the adversary in distinguishing Game 2 from Game 1 is negligible.
Game 3: Compared to Game 2,the challenger always selects random independent elements from the ciphertext space as the challenge ciphertext. Thus, the challenge ciphertext appears as an indistinguishable random ciphertext within the ciphertext space, making the adversary’s advantage negligible.
For the PPT adversary , we still need to use the hardness of the assumption to prove that the adversary cannot computationally distinguish Game 2 from Game 3. Suppose the adversary has a non-negligible advantage in distinguishing Game 2 from Game 3. Simulator for the assumption can use the adversary to distinguish whether the oracle is a truly random oracle or a pseudo-random oracle . The steps for the simulator are as follows:
Instance: The challenger samples samples from the oracle , where
Target: The adversary declares the target identity to be attacked to the challenger .
Setup: The challenger sets up the MPK based on the target identity declared by the adversary .
- (1)
- The challenger C constructs the matrix using the sampled samples.
- (2)
- Let be the public random vector .
- (3)
- Choose from the distribution and form the matrix .
- (4)
- Output the public parameters to the adversary .
Queries 1: As in Game 2,the challenger provide the adversary with each private key query for .
Challenge: The adversary provides the challenge identity associated with the challenge plaintext . The challenger then generates the challenge ciphertext for the target identity using the following process:
- (1)
- Let ;
- (2)
- Hide the plaintext bit message with ;
- (3)
- Let , where ;
- (4)
- Select a random bit . If , the challenger sends to the adversary ; if , a vector is uniformly sampled and sent to . When , the distribution of is indistinguishable from the challenge ciphertext in Game 2. By the definition of , and . Furthermore, , we get
which is exactly the challenge ciphertext in Game 2, The part is the challenge ciphertext , Thus, is a valid ciphertext for the plaintext bit associated with the identity . When , and are uniformly sampled at random. According to Lemma 3, the matrix adheres to a discrete random distribution, the expression similarly conforms to a discrete random distribution. Consequently, the distribution of the challenge ciphertext in Game 2 is indistinguishable from its distribution in Game 3.
Queries 2: The adversary may proceed to make private key queries in the same manner described in Queries 1.
Guess: The adversary attempts to determine whether the ciphertext is a random vector in the ciphertext space or the actual ciphertext of the plaintext bit message . The challenger determines whether the sampled samples from the oracle are samples from or random samples from based on the guess.
In summary, when , the adversary experiences the scenario as in Game 2; when , the scenario is perceived as in Game 3. Given that the simulator ’s capability to resolve the assumption is equivalent to the adversary ’s ability to differentiate between Game 2 and Game 3, and considering that no PPT simulator can effectively solve the assumption, it follows that the IBE scheme discussed in this paper is secure under the IND-sID-CPA model. This completes the proof. □
3.4. Efficiency Analysis of Our IBE Scheme
We compared the parameters of the proposed IBE scheme with the most classic ABB10 scheme and another scheme with better parameters, focusing on critical parameters such as the lattice dimension, the size of the master private key, the identity public key, and the ciphertext, the comparison results are presented in Table 1, where our scheme demonstrates improvements in all these key parameters. Additionally, we provide a set of instantiated parameters to more intuitively compare the efficiency of the scheme. the comparison results are presented in Table 2.
Table 1.
Primary Comparison of Parameters in Similar Schemes.
Table 2.
Comparison of Instantiated Parameters.
4. Modifed Identity-Based Encryption Scheme
In Section 3, we constructed a compact IBE scheme, but this scheme cannot be directly combined with the decomposition method to construct an MIBFHE scheme. The decomposition method requires the identity to be represented as a vector in the security proof, whereas in Section 3, our IBE scheme uses the FRD function to map the identity into a matrix form and incorporate it into the identity public key.
Therefore, before combining the foundational IBE scheme with the decomposition method, it is necessary to appropriately transform the foundational IBE scheme to ensure the security and correctness of the constructed MIBFHE scheme. Additionally, based on our observations, modifying the identity private key can cleverly utilize the trapdoor error to reduce the overall noise of the scheme.
4.1. Modifed IBE Construction
The parameters of the scheme are defined as follows: difine security parameter as , , and Let represent the modulus, where p and q are both positive integers. , , , and . Let be the bounded error distribution . Construct an gadget matrix , where , is an identity matrix, and b is a small integer.
The IBE scheme constructed in this chapter consists of four parts: , , , .
- (1)
- IBE.Setup: Input the security parameter , choose , and the error distribution . Generate the basic parameters , . Uniformly select an invertible matrix , a uniformly random matrix and a collision-resistant hash function H: . Sample the trapdoor matrix , generate a uniformly random matrix , and provide the master public key along with the master private key . For different identities, the matrix remains unchanged.
- (2)
- IBE.Extract: Provide the master public key , the master private key , and the user identity vector as input. Use the hash function to map each user identity into an identity vector . Let the user identity public key matrix be . For each different identity, the matrix remains the same. Run ApproxPreSample to generate a sampling vector that follows the discrete Gaussian distribution , satisfying . Let and output the private key corresponding to each user as , satisfying .
- (3)
- IBE.Enc: Input , the user identity and a message to be encrypted. Let the vector . Uniformly select a vector , and uniformly select an error vector , such that . Output the ciphertext vector
- (4)
- IBE.Dec: Input , the private key under identity , and the ciphertext under identity . Set , Calculate
If , let ; if , let . Output .
4.2. Parameters, Security Analysis, And Effciency Analysis
In the aforementioned improved IBE scheme, we introduce a collision-resistant hash function and reconstruct the public key , thereby modifying the relationship between the identity public key and the identity vector. Since our extended method eliminates the need for the eigenvector approach to transform the IBE scheme into the IBFHE scheme, the identity private key vector no longer requires its first component to be 1. Instead, we redefine the identity key as . This change allows the approximation error from the approximate trapdoor in our improved IBE scheme to partially cancel out the decryption noise, effectively reducing the scheme’s overall noise. The noise size of the modified IBE scheme is given as follows:
Clearly, the noise in the modified IBE scheme is smaller than that in the basic IBE scheme, enabling the modified scheme to perform correct decryption. The reduced noise allows the MIBFHE scheme in Section 5 to support more homomorphic operations. Other parameter choices remain the same as those in the IBE scheme presented in Section 3.
5. Multi-Identity Full Homomorphic Encryption Scheme
In Section 4, we proposed a modified IBE scheme suited solely for single-identity scenarios, where ciphertexts encrypted under different identities are unable to directly engage in homomorphic operations with one another. To overcome this limitation, in this section, we build upon the improved IBE scheme from Section 4 and apply the decomposition method [28] for ciphertext extension, resulting in an MIBFHE scheme that does not require fresh ciphertexts.We refer to this scheme as WZ-MIBFHE.
5.1. The Decomposition Method
Previous MIBFHE schemes required the IBFHE encryption algorithm to generate fresh ciphertexts for homomorphic operations. These fresh ciphertexts were then extended using the Mask System technique to produce extended ciphertexts that support multi-identity operations.In contrast, the decomposition method can directly extend the ciphertexts of the IBE scheme into extended ciphertexts that support multi-identity homomorphic operations, eliminating the need for the intermediate step of generating fresh ciphertexts.
Before introducing the decomposition method, we will briefly outline the ciphertext extension approach using the Mask System. Assume there are participants, and any number of participants D can be analogously processed using this method. Suppose in the IBFHE scheme, under participant identities and the fresh ciphertexts and are obtained by encrypting plaintext bit messages and , respectively. Here, identities and correspond to private keys and , which satisfy and and represents the preimage matrix, satisfying . By expanding the ciphertexts according to the number of participants D, they become extended ciphertexts , satisfying
The general method for converting a IBFHE scheme into a MIBFHE scheme involves expanding the ciphertext matrix, originally encrypted under a single identity, into a general matrix with dimensions , where . In this way, the extended ciphertexts and corresponding to and , respectively, both have dimensions . Homomorphic operations can be performed by inputting and into a binary logic circuit f. Previous MIBFHE schemes required the IBFHE encryption algorithm to generate fresh ciphertexts for homomorphic operations. These fresh ciphertexts were then extended using the Mask System technique to produce extended ciphertexts that support multi-identity operations.
Next, we describe using the decomposition method to extend ciphertexts. First, we restructure the form of the extended ciphertext and decompose the new ciphertext into two parts. The new ciphertext can be defined as: . The first part is a combination of the public key matrix and the trapdoor , and the second part is a combination of the plaintext and the public matrix . With this ciphertext form, the second part of the new ciphertext can be directly extended during decryption. The method of ciphertext extension is no longer to extend the entire ciphertext , but to extend the first and second parts of the ciphertext separately. Adding these two parts together naturally gives us the extended ciphertext we desire. Moreover, the MIBFHE scheme constructed using the decomposition method can directly generate extended ciphertexts that are executable for homomorphic operations without the need to generate new ciphertexts, making the scheme more concise and reducing the operations that users need to perform.
We will better explain the decomposition method through the following example. Consider the case of two users, where user . The ciphertext is the fresh ciphertext. Let be the concatenation of the two keys. Using the decomposition method, the extended ciphertext is constructed in the following two steps:
- (1)
- Construct , such that satisfies ;
- (2)
- Construct , such that and satisfies .
Compared to traditional ciphertext extension methods, the new ciphertext produced by the decomposition method is no longer just a part of the extended ciphertext. The newly generated ciphertext can directly perform homomorphic operations. The overall scheme does not require generating new ciphertexts, allowing users to execute fewer operations, making the scheme more concise.
5.2. Our MIBFHE Construction
The WZ-MIBFHE scheme is composed of five components: ,
, , , and .
The basic parameters of the scheme are defined as follows: Let be the security parameter, be the modulus, , be a uniformly random matrix, and be its trapdoor, where and . Construct a gadget matrix where , is an identity matrix, and . Let .
- (1)
- : Takes as input the security parameter , the maximum circuit depth L for homomorphic operations, and the maximum number of users D allowed in the scheme. Execute and output and .
- (2)
- : Input , , and . Run to sequentially generate the private keys corresponding to the identities , and the corresponding identity public key matrices . Output the private keys set and the identity public key matrices set .
- (3)
- : Input , the user identity vectors , and the plaintext . Let be the concatenation of the private keys corresponding to the D identities. Select a series of matrices to compute the extended ciphertext . First, compute :where are random matrices. Compute:And accordingly to Formula (1):To construct , we definewhere the error matrix . Then,Now that we have completed the generation and extension of the ciphertext, accordingly to Formulas (1) and (2), can be described as:Then,
- (4)
- : Input , a Boolean circuit f, and the number of identities D involved in the computation supported by the scheme. Output the ciphertext after homomorphic evaluation. The above ciphertexts are of the GSW type, and the homomorphic operations are similar to those in the GSW scheme. The definitions for homomorphic addition, multiplication, and NAND operations are as follows:In our scheme, the homomorphic operations are as follows:Homomorphic Addition :Homomorphic Multiplication :Homomorphic NAND :
- (5)
- : Input , the concatenation of D keys , and the extended ciphertext . Set the vector , and compute:If , output . If , output .
5.3. Correctness and Parameters
During the encryption phase, the ciphertext is extended to , and the noise term is calculated, where . We compute:
so the noise level of the ciphertext is . We refer to as a ciphertext with noise level .
During the homomorphic computation phase, the noise generated by homomorphic multiplication is the largest, so we mainly analyze the noise of homomorphic multiplication. The computation process of homomorphic multiplication is as follows:
Thus, we have:
Then, the homomorphic computation error is
Based on the analysis of circuit noise growth, with error control under correct decryption conditions, we can infer the upper bounds on the circuit computation depth L and the number of users D involved in the computation.
The final error is:
When the noise is less than , the decryption algorithm can correctly decrypt. Therefore, by selecting , the WZ-MIBFHE scheme can correctly decrypt.
5.4. Security Analysis
Theorem 3.
Under the assumption that the assumption is hard, the WZ-MIBFHE scheme is IND-sID-CPA secure.
Proof of Theorem 3.
The security of the WZ-MIBFHE scheme is established through an IND-sID-CPA game played between an adversary and a challenger . The proof proceeds as follows:
Suppose the adversary targets the identity , and let represent the adversary’s advantage in game i.
Game 0: The standard IND-sID-CPA game in the WZ-MIBFHE scheme is conducted between the adversary and the challenger .
Game 1: The adversary declares the target identity . Compared to Game 0, the challenger changes the way the matrix is generated in Game 1. A uniformly random matrix is generated, and . According to Lemma 3, for the adversary , the matrix in Game 0 is statistically indistinguishable from the matrix in Game 1. Therefore, the advantage of the adversary in distinguishing Game 1 from Game 0 is negligible.
Game 2: Compared to Game 1, the challenger changes the way public and private keys are generated in Game 2. In Game 2, a public matrix and a trapdoor matrix of the lattice are generated. The adversary sends a set of identities to the challenger for hash queries. The challenger chooses a uniformly random vector and sets . If the identity , the game terminates. Otherwise, the challenger runs to generate , which satisfies . Set and return it to the adversary . The challenger ensures that is stored. Therefore, for the same identity , the adversary receives the same result for each query. Thus, the public and private keys in Game 2 and Game 1 are statistically indistinguishable. Consequently, the adversary is unable to differentiate between Game 2 and Game 1 within polynomial time with any significant advantage, i.e.,
Game 3: The adversary chooses a pair of messages for the challenger . The challenger generates extended ciphertexts in Game 3 differently than in Game 2. The challenger chooses a uniformly random matrix and , generating the ciphertext for the message , where , and sends the extended ciphertext to the adversary .
Lemma 5
([25]). Assuming the parameters satisfy the hypothesis. For the above generated and , the joint distribution is computationally indistinguishable from a uniform distribution over .
Analyzing the structure of , we observe that the diagonal elements and the elements are both suitable for Lemma 5. Given that the remaining elements of are zero, we can conclude that and are computationally indistinguishable. Thus,
Based on the above analysis, in WZ-MIBFHE scheme, the advantage of the adversary is negligible within polynomial time, and the security is based on the hypothesis. The proof is complete. □
5.5. Efficiency Analysis of Ours MIBFHE SCHEME
We compare the existing MIBFHE schemes with the WZ-MIBFHE scheme, focusing on two main aspects: scheme attributes and scheme parameters. The results are shown in Table 3 and Table 4.
Table 3.
Comparison of Trapdoor, IBE Architecture, Ciphertext Extension Method, Fresh Ciphertext Requirement, and Multi-hop Support in Similar Schemes.
Table 4.
Comparison of Dimension, Secret Key Size, Ciphertext Size, and Noise Expansion Rate in Similar Schemes.
According to Equation (3), the overall error of the scheme after L homomorphic operations for D identities is
Since the number of user participation D is known, according to this formula we need to choose the parameters rigorously to ensure the decryption correctness of the scheme. Based on Table 3 and Table 4, The IBE architecture of WZ-MIBFHE and the IBE architecture from [22] are both based on ABB10; therefore, our public and private key structures are similar, and their sizes appear to be the same. However, WZ-MIBFHE has a lower dimension, resulting in smaller public and private key sizes as well as ciphertext sizes, significantly enhancing the compactness of the scheme. WZ-MIBFHE employs the decomposition method for ciphertext expansion, allowing users to generate expandable ciphertexts directly from the encryption algorithm without needing to generate fresh ciphertexts in advance. This approach reduces the overall operations required, making the scheme more concise. Additionally, with the increase in the number of users participating in WZ-MIBFHE compared to similar schemes, our noise expansion rate is significantly lower, indicating that we can perform more homomorphic evaluations. Compared to [20], WZ-MIBFHE has better performance and parameters, but does not implement the multi-hop property.
6. Conclusions
In this study, we optimized the ABB10 scheme using the pre-image sampling algorithm based on YJW23, resulting in a foundational IBE scheme that satisfies IND-sID-CPA security. We modified the relationship and generation method of the identity vector and identity public key in our IBE scheme to meet the requirements of the decomposition method. Utilizing the decomposition method and the modified IBE scheme, we proposed a compact MIBFHE scheme. Comparisons with other MIBFHE schemes show that our proposal optimizes parameters such as lattice dimension, public and private key sizes, and noise growth rates, making it more concise and efficient. Overall, WZ-MIBFHE offers a practical solution in the field of multi-identity fully homomorphic encryption, demonstrating good security and scalability. In the future, we aim to extend the functionality of WZ-MIBFHE to include multi-hop attributes. Additionally, we are keenly aware of the practical application prospects of MIBFHE in areas like privacy-preserving cloud computing [29,30,31,32]. We also plan to extend WZ-MIBFHE scheme to rings, leveraging the unique properties of rings to further enhance the efficiency of the MIBFHE scheme. To the best of our knowledge, no existing scheme has addressed the IBFHE and MIBFHE problems from the perspective of ring-based LWE.
Author Contributions
Conceptualization, Z.W. and R.H.; methodology, X.W.; software, Z.W.; validation, R.H., Z.W. and X.W.; formal analysis, Z.W.; investigation, Z.W.; resources, X.W.; data curation, Z.W.; writing—original draft preparation, Z.W.; writing—review and editing, Z.W.; visualization, Z.W.; supervision, Z.W.; project administration, X.W.; funding acquisition, R.H. All authors have read and agreed to the published version of the manuscript.
Funding
This work was supported in part by the National Natural Science Foundation Project of China under Grant No. 62062009 and The Guangxi Key Research and Development Program Project No. AB24010340.
Institutional Review Board Statement
Not applicable.
Informed Consent Statement
Not applicable.
Data Availability Statement
The original contributions presented in this study are included in the article.
Conflicts of Interest
The authors declare no conflicts of interest.
References
- Rivest, R.L.; Adleman, L.; Dertouzos, M.L. On data banks and privacy homomorphisms. Found. Secur. Comput. 1978, 4, 169–180. [Google Scholar]
- Rivest, R.L.; Shamir, A.; Adleman, L. A method for obtaining digital signatures and public-key cryptosystems. Commun. ACM 1978, 21, 120–126. [Google Scholar] [CrossRef] [Scilit]
- ElGamal, T. A public key cryptosystem and a signature scheme based on discrete logarithms. IEEE Trans. Inf. Theory 1985, 31, 469–472. [Google Scholar] [CrossRef] [Scilit]
- Paillier, P. Public-key cryptosystems based on composite degree residuosity classes. In Proceedings of the International Conference on the Theory and Applications of Cryptographic Techniques, Prague, Czech Republic, 2–6 May 1999; Springer: Berlin/Heidelberg, Germany, 1999; pp. 223–238. [Google Scholar]
- Gentry, C. Fully homomorphic encryption using ideal lattices. In Proceedings of the Forty-First Annual ACM Symposium on Theory of Computing, Bethesda, MD, USA, 31 May–2 June 2009; pp. 169–178. [Google Scholar]
- Gentry, C.; Sahai, A.; Waters, B. Homomorphic encryption from learning with errors: Conceptually-simpler, asymptotically-faster, attribute-based. In Proceedings of the Advances in Cryptology–CRYPTO 2013: 33rd Annual Cryptology Conference, Santa Barbara, CA, USA, 18–22 August 2013; Proceedings, Part I. Springer: Berlin/Heidelberg, Germany, 2013; pp. 75–92. [Google Scholar]
- Brakerski, Z.; Gentry, C.; Vaikuntanathan, V. (Leveled) fully homomorphic encryption without bootstrapping. ACM Trans. Comput. Theory TOCT 2014, 6, 1–36. [Google Scholar] [CrossRef] [Scilit]
- Chillotti, I.; Gama, N.; Georgieva, M.; Izabachène, M. TFHE: Fast fully homomorphic encryption over the torus. J. Cryptol. 2020, 33, 34–91. [Google Scholar] [CrossRef] [Scilit]
- Cheon, J.H.; Kim, A.; Kim, M.; Song, Y. Homomorphic encryption for arithmetic of approximate numbers. In Proceedings of the Advances in Cryptology—ASIACRYPT 2017: 23rd International Conference on the Theory and Applications of Cryptology and Information Security, Hong Kong, China, 3–7 December 2017; Proceedings, Part I 23. Springer: Berlin/Heidelberg, Germany, 2017; pp. 409–437. [Google Scholar]
- Ahmad, H.; Hannusch, C. A New Keyed Hash Function Based on Latin Squares and Error-Correcting Codes to Authenticate Users in Smart Home Environments. In Proceedings of the Codes, Cryptology and Information Security: 4th International Conference, C2SI 2023, Rabat, Morocco, 29–31 May 2023; pp. 129–135. [Google Scholar] [CrossRef] [Scilit]
- Clear, M.; McGoldrick, C. Multi-identity and multi-key leveled FHE from learning with errors. In Proceedings of the Advances in Cryptology–CRYPTO 2015: 35th Annual Cryptology Conference, Santa Barbara, CA, USA, 16–20 August 2015; Proceedings, Part II 35. Springer: Berlin/Heidelberg, Germany, 2015; pp. 630–656. [Google Scholar]
- Canetti, R.; Raghuraman, S.; Richelson, S.; Vaikuntanathan, V. Chosen-ciphertext secure fully homomorphic encryption. In Proceedings of the IACR International Workshop on Public Key Cryptography, Amsterdam, The Netherlands, 28–31 March 2017; Springer: Berlin/Heidelberg, Germany, 2017; pp. 213–240. [Google Scholar]
- Wang, W.L.; Hu, B.; Zao, X.F. An efficient multi-identity homomorphic encryption scheme. J. Shandong Univ. Natural Sci. 2017, 52, 85–94. [Google Scholar]
- Micciancio, D.; Peikert, C. Trapdoors for lattices: Simpler, tighter, faster, smaller. In Proceedings of the Annual International Conference on the Theory and Applications of Cryptographic Techniques, Cambridge, UK, 15–19 April 2012; Springer: Berlin/Heidelberg, Germany, 2012; pp. 700–718. [Google Scholar]
- Tu, G.; Yang, X.; Zhou, T. Efficient identity-based multi-identity fully homomorphic encryption scheme. J. Comput. Appl. 2019, 39, 750. [Google Scholar]
- Cash, D.; Hofheinz, D.; Kiltz, E.; Peikert, C. Bonsai trees, or how to delegate a lattice basis. J. Cryptol. 2012, 25, 601–639. [Google Scholar] [CrossRef] [Scilit]
- Shen, T.; Wang, F.; Chen, K.; Wang, K.; Li, B. Efficient leveled (multi) identity-based fully homomorphic encryption schemes. IEEE Access 2019, 7, 79299–79310. [Google Scholar] [CrossRef] [Scilit]
- Agrawal, S.; Boneh, D.; Boyen, X. Efficient lattice (H) IBE in the standard model. In Proceedings of the Advances in Cryptology–EUROCRYPT 2010: 29th Annual International Conference on the Theory and Applications of Cryptographic Techniques, French Riviera, France, 30 May–3 June 2010; Proceedings 29. Springer: Berlin/Heidelberg, Germany, 2010; pp. 553–572. [Google Scholar]
- Shen, T.; Wang, F.; Chen, K.; Shen, Z.; Zhang, R. Compressible Multikey and Multi-Identity Fully Homomorphic Encryption. Secur. Commun. Netw. 2021, 2021, 6619476. [Google Scholar] [CrossRef] [Scilit]
- Liu, W.; Wang, F.; Jin, X.; Chen, K.; Shen, Z. Leveled Multi-Hop Multi-Identity Fully Homomorphic Encryption. Secur. Commun. Netw. 2022, 2022, 1023439. [Google Scholar] [CrossRef] [Scilit]
- Peikert, C.; Shiehian, S. Multi-key FHE from LWE, revisited. In Proceedings of the Theory of Cryptography Conference, Tel Aviv, Israel, 10–13 January 2016; Springer: Berlin/Heidelberg, Germany, 2016; pp. 217–238. [Google Scholar]
- Fan, H.; Huang, R.; Luo, F. Efficient multi-identity full homomorphic encryption scheme on lattice. Appl. Sci. 2023, 13, 6343. [Google Scholar] [CrossRef] [Scilit]
- Yu, Y.; Jia, H.; Wang, X. Compact lattice gadget and its applications to hash-and-sign signatures. In Proceedings of the Annual International Cryptology Conference, Santa Barbara, CA, USA, 18–22 August 2023; Springer: Berlin/Heidelberg, Germany, 2023; pp. 390–420. [Google Scholar]
- Micciancio, D.; Regev, O. Worst-case to average-case reductions based on Gaussian measures. In Proceedings of the 45th Annual IEEE Symposium on Foundations of Computer Science, Rome, Italy, 17–19 October 2004; pp. 372–381. [Google Scholar] [CrossRef] [Scilit]
- Gentry, C.; Peikert, C.; Vaikuntanathan, V. Trapdoors for hard lattices and new cryptographic constructions. In Proceedings of the Fortieth Annual ACM Symposium on Theory of Computing, Victoria, BC, Canada, 17–20 May 2008; pp. 197–206. [Google Scholar]
- Dodis, Y.; Reyzin, L.; Smith, A. Fuzzy extractors: How to generate strong keys from biometrics and other noisy data. In Proceedings of the Advances in Cryptology-EUROCRYPT 2004: International Conference on The Theory and Applications of Cryptographic Techniques, Interlaken, Switzerland, 2–6 May 2004; Proceedings 23. Springer: Berlin/Heidelberg, Germany, 2004; pp. 523–540. [Google Scholar]
- Jia, H.; Hu, Y.; Tang, C.; Wang, L. Towards compact identity-based encryption on ideal lattices. In Proceedings of the Cryptographers’ Track at the RSA Conference, San Francisco, CA, USA, 6–9 May 2024; Springer: Berlin/Heidelberg, Germany, 2024; pp. 354–378. [Google Scholar]
- Tu, G.; Liu, W.; Zhou, T.; Yang, X.; Zhang, F. Concise and Efficient Multi-Identity Fully Homomorphic Encryption Scheme. IEEE Access 2024, 12, 49640–49652. [Google Scholar] [CrossRef] [Scilit]
- Zhou, L.; Wang, Z.; Cui, H.; Zhang, X.; Wang, X.; Yu, Y. HEAD: An FHE-based Privacy-preserving Cloud Computing Protocol with Compact Storage and Efficient Computation. Cryptol. Eprint Arch. Pap. 2022. 2022/238 preprint. [Google Scholar]
- Marcolla, C.; Sucasas, V.; Manzano, M.; Bassoli, R.; Fitzek, F.H.P.; Aaraj, N. Survey on Fully Homomorphic Encryption, Theory, and Applications. Proc. IEEE 2022, 110, 1572–1609. [Google Scholar] [CrossRef] [Scilit]
- Abdulsalam, Y.S.; Hedabou, M. Security and privacy in cloud computing: Technical review. Future Internet 2021, 14, 11. [Google Scholar] [CrossRef] [Scilit]
- Rezaeibagha, F.; Mu, Y.; Huang, K.; Chen, L.; Zhang, L. Toward Secure Data Computation and Outsource for Multi-User Cloud-Based IoT. IEEE Trans. Cloud Comput. 2023, 11, 217–228. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).