Open Access
ARTICLE
A Privacy-Preserving Aggregation Mechanism with Multi-Key Support and Short Ciphertexts for Federated Learning
1 School of Mathematics and Statistics, Wuhan University of Technology, Wuhan, China
2 Xi’an Jiaotong University-China Mobile Communications Group Co., Ltd. Digital Government Joint Research Institute, Xi’an, China
* Corresponding Authors: Zhiqiang Ru. Email: ; Xi Fang. Email:
Computers, Materials & Continua 2026, 88(3), 29 https://doi.org/10.32604/cmc.2026.082755
Received 22 March 2026; Accepted 08 May 2026; Issue published 23 July 2026
Abstract
Federated learning is a privacy-preserving machine learning framework that facilitates model training directly on decentralized data that, due to privacy concerns or transmission costs, cannot be centralized on a server for traditional model training. To prevent adversaries from reconstructing the original data via parameters transmitted during the process, homomorphic encryption is a commonly adopted method. However, it introduces significant communication and computation costs and risks total security failure if any secret key is compromised. This paper proposes a privacy-preserving aggregation mechanism that enables each client to independently generate partial keys for encryption while allowing decryption after homomorphic operations using an aggregated key. Key aggregation for the proposed algorithm is realized through secret sharing. Incorporating these components into a standard federated learning framework yields a novel method that enhances communication efficiency and offers robustness against privacy breaches from internal collusion. The algorithm’s resistance to linear and differential attacks is formally demonstrated by algebraically modeling the encryption procedure. Based on this analysis, the overall security of the method is likewise established. Experiments on the privacy-preserving aggregation mechanism demonstrate that the generated ciphertext exhibits favorable statistical properties and sensitivity. Simulation results of the federated learning method further indicate that, compared to existing encryption schemes, our proposed encryption method reduces communication cost byKeywords
Federated learning, represented by Federated Averaging (FedAvg) [1], has been extensively studied due to its straightforward framework and practical functionality. By transmitting and aggregating model parameters among different clients, this approach enables collaborative model training across multiple data owners. Although uploading only model parameters or gradients rather than the original local datasets can significantly reduce the risk of privacy leakage and communication cost during training, Subsequent studies have shown that these parameters and gradients may still expose sensitive information. Techniques such as Deep Leakage from Gradients (DLG) [2] have demonstrated that a semi-honest server or eavesdroppers from either internal or external sources can reconstruct original data from the transmitted parameters.
To better protect clients’ original data, various privacy-preserving techniques and corresponding federated learning methods have been developed. From the perspective of protection level, existing efforts can be categorized into participant anonymization [3], raw data protection [4], and protection of transmitted gradients. In terms of privacy-preserving methods, participant privacy can be safeguarded through approaches such as perturbation-based differential privacy [5], cryptography-based homomorphic encryption [6], and mask [7] based on secure multi-party computation.
In this paper, we construct a privacy-preserving aggregation scheme based on masking and homomorphic encryption. Homomorphic encryption is a special type of encryption algorithm that allows computations to be performed directly on ciphertexts without decrypting them. The result of these ciphertext operations corresponds to the result of operations on the original plaintexts. Existing homomorphic encryption schemes support operations such as addition between ciphertexts, multiplication between ciphertexts and plaintexts, and even multiplication between ciphertexts [8]. In federated learning, this property can be leveraged by encrypting raw model parameters into ciphertexts, performing aggregation in the cloud, and then decrypting the aggregated result locally. Through this process, collaborative training can be conducted without compromising privacy. Owing to the ease of deployment and strong security guarantees of this method, homomorphic encryption has become one of the key technologies for privacy preservation in federated learning [9]. In traditional homomorphic encryption schemes, the same set of public and private keys is used for all encryption and decryption operations. Under the common federated learning environment, if all parties hold the same key pair, the security of the entire system would be compromised if one client’s key is leaked. Moreover, the use of a shared key set introduces the risk that semi-honest clients could compromise each other’s data privacy. Currently, multi-key homomorphic encryption, which allows each client to use different keys for encryption and the server to use an aggregated key for decryption, is widely used in federated learning [10].
Although multi-key homomorphic encryption can alleviate the issue of key leakage inherent in conventional homomorphic encryption schemes within federated learning, its underlying encryption process and ciphertext structure remain fundamentally based on traditional designs [11]. Without targeted optimization, it still incurs high computational and communication costs. Reducing the high computational and communication costs caused by the use of homomorphic encryption in federated learning is still an urgent issue that needs to be addressed.
To reduce ciphertext size and the computational cost of encryption and decryption, this study constructs and a privacy-preserving method based on a symmetric encryption algorithm. In this work, to reduce the overall communication cost of federated learning and to prevent privacy leakage from internal participants, we propose a multi-key, short-ciphertext privacy-preserving aggregation mechanism for federated learning (MKPHE-FL). This algorithm is constructed based on a multi-party privacy-preserving mechanism, in which traditional encryption operators are extended to rings, thereby enabling homomorphism and supporting a multi-key setting. A secret sharing-based key negotiation protocol (SS-KNP) allows the aggregated key to be delivered to the server without revealing individual private keys. On this basis, a communication-efficient federated learning method is developed. The security and effectiveness of the proposed algorithm are validated through both theoretical analysis and experimental evaluation. The overall method preserves user privacy with negligible impact on the final model accuracy, while maintaining moderate computational cost and low communication overhead. The main contributions of this paper are as follows:
• In the context of federated learning, a multi-key, short-ciphertext privacy-preserving aggregation mechanism is proposed. The short-ciphertext property stems from the use of a symmetric encryption framework, while the multi-key capability is achieved by incorporating an initialization vector mask during the encryption process. The main advantage of the mechanism lies in its ability to preserve homomorphism while maintaining a relatively short ciphertext length, all with an acceptable computational cost.
• To aggregate the individual keys held by each client in the privacy-preserving aggregation mechanism into a unified decryption key accessible to the server, a key agreement protocol is designed based on the homomorphic properties of secret sharing. This design provides robustness against collusion, preventing any subset of clients and the server up to a certain threshold from reconstructing the private keys of others.
• By integrating the proposed algorithm into the conventional federated learning framework, a novel method is developed that prevents collusion-based privacy leakage during both the aggregation and key agreement phases. This method is not only communication-efficient but also reduces the overall communication overhead of the system by delegating the decryption process to the server.
• The security of the privacy-preserving aggregation mechanism is first demonstrated through linear algebraic modeling, as well as formal proofs regarding differential attacks, linear relationships, and the overall security of the mechanism. Subsequently, the overall security of the federated learning method is assessed based on the security properties of the privacy-preserving aggregation mechanism and the secret sharing scheme. Finally, experimental results further demonstrate the algorithm’s security and the communication efficiency of the proposed federated learning approach.
The rest of this paper is organized as follows: Section 2 presents recent related work on communication efficiency optimization in federated learning and the use of homomorphic encryption for privacy preservation. Section 3 introduces the proposed encryption algorithm, the key agreement protocol, and the federated learning method, and provides the analysis of the communication cost and security of the method. Section 4 provides experiments and analysis on the security of the privacy-preserving aggregation mechanism as well as the computational and communication overhead of the proposed federated learning framework. Section 5 concludes the paper.
2.1 Communication Efficiency Optimization in Federated Learning
The most straightforward approach to reducing the overall communication and computational costs in federated learning is to minimize the volume of data exchanged between the server and each client. This concern has evolved into a distinct line of research within federated learning, commonly referred to as efficiency optimization. Current studies on communication efficiency primarily employ techniques such as lazy aggregation, sparsification, and quantization. Despite their differences in implementation, these methods share a common objective: to discard redundant information and transmit only the most critical data required for model updates. Sun et al. [12] proposed the LAQ algorithm, which computes the gradient update (i.e., the difference between the current gradient and the previously quantized one). If a worker’s gradient update falls below a predefined threshold, communication of that worker’s gradient is skipped. In FetchSGD introduced by Rothchild et al. [13], dimensionality reduction is first performed locally using the sketch algorithm. The resulting parameters are then transmitted to the server, where a top-
Singh et al. [16] proposed a relay-chain-driven architecture that integrates context-aware smart contracts with an enhanced ciphertext-policy attribute-based encryption (CP-ABE) scheme. For highly sensitive events, the model enforces robust multi-attribute access policies, whereas lightweight policies are adopted for routine data updates to reduce computational overhead. In addition, the cryptographic framework provides traceability and low-latency privilege revocation. This distributed and scalable model achieves a sound balance between real-time responsiveness and security.
In addition to directly reducing the number of parameters transmitted, a range of lightweight strategies designed for specific encryption algorithms has been employed to alleviate the communication burden in federated learning systems. Zhang et al. [17] significantly reduces the size and quantity of ciphertexts generated during encryption by optimizing the encoding scheme. Specifically, multiple quantized gradients are packed into a single long integer, allowing for one-time encryption and thus minimizing communication cost for an encryption algorithm based on long integers. Zhang et al. [18] introduce a hybrid approach that leverages both homomorphic encryption and masking techniques. In this method, local data quality is used to weight model aggregation, accelerating convergence. The quality metrics are protected using homomorphic encryption, which, although computationally intensive, is negligible compared to the complete set of model parameters. Meanwhile, the model parameters are safeguarded employing a more lightweight masking technique, thereby balancing security, convergence speed, and computational efficiency. Burlachenko et al. [19] adopt the symmetric Advanced Encryption Standard (AES) encryption algorithm to secure parameter transmission, significantly reducing both computational and communication costs. In this scheme, the server merely collects and redistributes the encrypted gradient updates. Additionally, the stateless compressed sensing algorithm is employed to prevent data leakage to the host and further mitigate communication costs. Pan et al. [20] identify an optimal parameter configuration for the Cheon–Kim–Kim–Song (CKKS) homomorphic encryption scheme based on empirical analysis within a conventional federated learning framework, thereby improving computational efficiency and reducing communication cost.
Methods for reducing communication costs can be broadly categorized into general approaches that do not account for privacy considerations and specialized techniques designed to efficiently apply specific encryption algorithms. However, there has been relatively little research focused on directly improving encryption algorithms themselves to reduce communication cost. Chait et al. [21] proposed a symmetric homomorphic encryption algorithm whose ciphertext size is comparable to that of the plaintext and whose computational complexity is O(n). Ming et al. [22] applied an efficient symmetric homomorphic encryption scheme to federated learning, achieving reduced computational and communication overhead. Hariss and Noura [23] previously proposed a lightweight encryption algorithm tailored for resource-constrained IoT devices. However, due to differences in privacy requirements and hardware environments, this scheme is not fully suitable for federated learning applications. Building upon the structure of the algorithm, this paper introduces a homomorphic encryption algorithm adapted to federated learning by improving its parameter settings, encryption mode, and key negotiation protocol.
Azzouzi et al. [24] proposed fine-grained field-programmable gate array (FPGA) architectures for the MixColumns and InvMixColumns transformations in the Advanced Encryption Standard (AES) to improve performance and optimize resource utilization. The proposed designs exhibit competitive performance compared with state-of-the-art FPGA implementation schemes in the current literature and industry.
2.2 Federated Learning Combined with Encryption
In federated learning, secret-sharing primitives are commonly employed to achieve privacy preservation or tamper-resistance. However, encryption methods relying on a single key may be vulnerable to key leakage.An intuitive approach to mitigating key leakage is to enable each client to independently encrypt data using distinct keys, a concept known as multi-key encryption. Early studies in this area primarily focused on multi-key extensions of lattice-based cryptographic algorithms. Over time, multi-key homomorphic encryption algorithms based on various cryptographic frameworks have been increasingly adopted in federated learning.
Ma et al. [10] address the risks of data leakage and collusion associated with using a shared key by introducing a multi-key homomorphic encryption approach. This method permits participants to encrypt data using individual keys and ensures that the aggregated result can only be decrypted if all participants provide their respective decryption shares. Similarly, Park and Lim [25] propose a distributed homomorphic encryption method based on secure multi-party computation to mitigate the challenges introduced by a single-key setup, such as increased key distribution cost and heightened risk of key exposure. In this work, parameter aggregation is performed collaboratively by two non-colluding servers. Jiang et al. [26] construct a multi-key homomorphic encryption system utilizing a double trapdoor function and design a federated learning method involving two non-colluding servers. The privacy of the ciphertext is further protected by incorporating ciphertext perturbation between the servers. Cai et al. [27] replace the trusted third party traditionally required in homomorphic encryption-based federated learning methods with a trusted execution environment (TEE) deployed on the server. By enhancing the existing multi-key homomorphic encryption algorithms, this method improves both efficiency and robustness against mid-training dropouts, thus achieving a fault-tolerant, privacy-preserving federated learning system. Kumbhar and Rao [4] employs the PAOA optimization algorithm to generate cryptographic keys that perform reasonably well and applies multi-key homomorphic encryption directly to the datasets of each participant. Pham et al. [28] utilize multi-key homomorphic encryption to secure each participant’s model, while additionally employing random masking with xor operations to protect local data. Li et al. [29] implement model aggregation via re-encryption, allowing participants to encrypt with distinct public keys. A federated learning method is built upon this technique using two non-colluding servers. In terms of application, Walskaar et al. [30] provide a practical implementation of Ma’s [10] scheme using numpy and the Flower framework, and demonstrate its applicability in medical data scenarios.
In addition to preventing single-point key leakage, other cryptographic tools can also be employed in encryption algorithms to meet diverse functional requirements in federated learning. Wu et al. [31] utilized blockchain and multi-authority attribute-based encryption (MA-ABE) to construct a highly secure encryption system, supporting dynamic revocation under partial policy hiding, verifiable lightweight operations, and resistance to offline dictionary attacks and multiple collusion attacks within the system. Tian et al. [32] proposed a dynamic privilege attribute-based encryption scheme based on a multi-authority architecture, enabling changes in decryption privileges and auditable records of access behaviors. Finally, after the training of federated learning is completed, homomorphic encryption can also be used to perform model inference in the ciphertext state while protecting the privacy of participants. Kong et al. [33] implemented a fully privacy-preserving machine-learning-based model predictive control method. They constructed a homomorphic encryption recurrent neural network (HE-RNN), which supports training and inference on ciphertext inputs.
In current privacy-preserving federated learning methods based on multi-key homomorphic encryption, some require multiple rounds of fixed communication, which reduces the overall robustness of the process. Others rely on third parties, such as non-colluding dual servers, to perform privacy operations, resulting in a relatively complex system. In this work, the above issue is mitigated by designing a federated learning method that includes only semi-honest, potentially colluding participants and a server with the same characteristics. Furthermore, the privacy-preserving components employed in our federated learning approach consist solely of the proposed encryption algorithm and key negotiation protocol, along with an eavesdropping-resistant secure channel for key transmission and negotiation.
The specific innovations of this study, as compared with the aforementioned studies, are presented in Table 1.

In summary, based on the work of Hariss and Noura [23], we have developed a short-ciphertext lightweight multi-key privacy-preserving aggregation mechanism suitable for federated learning. Compared with the aforementioned work, this algorithm features a lightweight ciphertext length and a moderate computational cost, and can be easily combined with other federated learning lightweight methods to further reduce communication overhead. Meanwhile, by designing a key agreement algorithm, our system avoids introducing additional trusted parties, can operate under the classic FedAvg architecture, and maintains its simplicity.
This section first provides an overview of the proposed federated learning method. Subsequently, we introduce two modules proposed in this work that deviate from the traditional federated learning framework, including the proposed privacy-preserving aggregation mechanism and the key agreement protocol designed to integrate the encryption scheme into the federated setting. In this process, we analyze the communication cost and security of the proposed method. As a relatively large number of symbols are used in this paper, the tables listing the symbols employed in this and subsequent sections are provided in Appendix B, organized into several tables according to the respective modules to which the symbols belong.
During the training process of federated learning, we assume that the system operates under the Honest-but-Curious threat model, also known as the Semi-honest model, and we take potential internal collusion attacks into account. Specifically, the assumptions regarding the entities and the adversarial capabilities are defined as follows. We assume that the server is semi-honest. This means that the server will strictly follow the protocol specification and honestly execute all prescribed aggregation computations and communication procedures, and will not intentionally discard messages, tamper with computation results, or launch denial-of-service attacks. However, the server is curious in that it may attempt to infer the original private data of individual participants by exploiting all underlying data collected during the execution of the protocol, including the received ciphertext streams, public parameters, and intermediate computational views in the aggregation process. We assume that the participants in the system consist of honest, curious nodes. Curious also follows the apparent protocol flow, but they may collude with each other. Specifically, some malicious participants, the exact number of which will be discussed later in the security analysis, may secretly collude by sharing their private inputs, internal states, local masks, and key information, in an attempt to recover the private data of other honest participants through algebraic solving or statistical analysis. We assume that the number of Curious is bounded by the system security threshold. Finally, the system assumes that the underlying network connections used for transmitting highly sensitive information among all entities, such as key negotiation and initial parameter configuration during the initialization phase, are established over standard secure channels, for example, mutually authenticated links based on TLS/SSL (Transport Layer Security/Secure Sockets Layer).
3.2 Federated Learning Method with Multi-Key Encryption
This subsection presents the overall method of our proposed efficient federated learning algorithm. Our overall federated learning system and the corresponding information transmission steps are illustrated in Fig. 1. The entire training process consists of four main components: initialization, local training, key agreement, and aggregation. The arrows in the figure illustrate the communication steps involved throughout the entire process. Each component is described in detail as follows:

Figure 1: The functional modules of system components and the overall training workflow.
Initialisation: The server firstly generates the initial global model and secret key, and then distributes them to clients as indicated by line ①. Each client performs key expansion locally.
Local training: Each participant conducts a certain number of rounds of training using the local dataset. After training, the gradients are extracted, quantized, and encrypted to produce ciphertexts. These ciphertexts, along with the aggregated key shares, are then transmitted to the server, as illustrated in line ②.
Key negotiation: Each client refreshes a subset of its subkeys using a local random state and packages its subkeys into shares based on the share generation mechanism. As illustrated in line ③, the clients then exchange the corresponding shares with each other. After the exchange, the shares are aggregated accordingly.
If the number of participants in federated learning exceeds the threshold
Aggregation: The server first reconstructs the decryption key from the aggregated key shares, aggregates the encrypted gradients, and then performs decryption. Finally, the model is updated, and the new global model is sent to the clients selected for the next round, as shown in ④.
If there are multiple groups in the current training process, decryption is first performed within each group, and the ciphertexts are then aggregated again.
Initialisation is only performed once, while the other three steps are repeated until the training is complete. Since the gradients are already encrypted, they can be transmitted directly. However, to prevent potential eavesdropping, the initial key distribution and negotiation are supposed to be conducted over secure communication channels.
The following subsections will provide a detailed description of our encryption algorithm and key negotiation protocol, along with an analysis of the method’s security and communication efficiency.
3.3 Multi-Key Privacy-Preserving Mechanism
This subsection presents the proposed MKPHE-FL algorithm. Its parameters can be tuned according to the requirements of federated learning to reduce ciphertext length. By incorporating a randomization mechanism and encryption modes into the privacy-preserving aggregation mechanism, the security of the mechanism is significantly enhanced. Moreover, the algorithm allows each client to encrypt data using a distinct initialization vector, provided that these vectors are properly aggregated during decryption.
3.3.1 Key Expansion and Refresh
This subsubsection describes how to generate the cryptographic keys required by the privacy-preserving aggregation mechanism based on the parameters and keys in federated learning.
First, define the following parameters: the number of clients in the federated learning system,
Set a single-group aggregation threshold
where the number of matrices needed is determined by the encryption round count
In this work, the KSA algorithm proposed by Noura et al. [34], an enhanced variant of RC4, is employed for generating permutation boxes. The method by Hariss and Noura [35] is employed to construct permutation matrices that can be used to perform reversible permutation operations. The bit string is divided into substrings, which are then used to generate the individual subkeys. Once the matrices are generated, their corresponding inverse keys are also derived, and all cryptographic keys are stored in their respective lists for subsequent use.
After the completion of local training in each training round, just before the encryption phase begins, each client refreshes their initial vectors. They independently generate a sufficiently long pseudorandom bit string using the key

Figure 2: The process of expanding secret keys and nonce into subkeys.
An example of the derived key and corresponding subkeys for the case where

Figure 3: A numerical example of keys, nonce, bit strings, and subkeys for a given parameter.
3.3.2 Block Encryption with Multiple Encryption Modes
This subsubsection details the encryption procedure of the proposed algorithm. The extracted gradient data are first mapped onto the integers in the interval
where each matrix
where
Following this, the initial round key addition As shown in Eq. (4) is performed using the round key (RK) and the initial vector (
where
where
Upon completion of the CBC mechanism, the remaining

The decryption process strictly follows the inverse procedure of encryption. Upon receiving the ciphertext bitstream, the decrypting party first decodes the bitstream into vectors according to the encryption parameters determined during key initialization, and subsequently reconstructs it into a list of ciphertext matrices. The ciphertext list is then traversed in the same order as the encryption phase for decryption. During the decryption of each ciphertext block, multiple rounds of inverse operations are performed sequentially, including round key addition, substitution, and permutation. When the process reaches the
3.3.3 Correctness and Homomorphic Properties of the Proposed Algorithm
This subsubsection introduces the source of correctness and homomorphism in the proposed encryption algorithm.
In Section 3.3.1, we choose the modulus N of the ciphertext domain to be a prime number slightly greater than
Leveraging the associativity of addition over a ring and the distributive properties of both scalar and matrix multiplication, the round key addition and column mixing steps in the encryption process inherently preserve additive homomorphism. Moreover, the permutation operation, being a position-based transformation that does not alter the actual values of ciphertext elements, also maintains homomorphic properties, provided that an identical subkey is used across ciphertexts. Consequently, it becomes feasible to perform plaintext addition within the encrypted domain simply by executing additive operations on the corresponding ciphertexts. Following encryption, as long as the sum of the original plaintexts remains within the bounds of the minimal plaintext space
where the symbols is consistent with their previous definitions.
For the entire encryption algorithm, its homomorphic property can be referred to in the equation in the Appendix A.1.2. For multiple participants using the same public key, the subkeys derived from the public key are identical, and the generated
Therefore, a key negotiation step is required following homomorphic operations to ensure the correct decryption of the aggregated result. On the other hand, this characteristic also enables each client to utilize a distinct subkey
3.4 Key Negotiation of Initialization Vectors
The previous subsection introduced the improved encryption algorithm proposed in this paper. However, as observed in the decryption phase, it is necessary to aggregate the different
Secret sharing allows a secret to be divided into
The security of Shamir’s secret sharing scheme relies on the uniqueness of the solution to a system of linear equations or equivalently, the uniqueness of the coefficients in polynomial interpolation. In this scheme, the secret S is embedded as a coefficient in a randomly generated polynomial
When applying secret sharing for key agreement, the entire protocol consists of three phases: share generation, aggregation, and reconstruction of the secret.
Generation the Sharing of Subkeys: For the aforementioned privacy-preserving aggregation mechanism, the secret that needs to be shared and aggregated is the initial vector
Key Aggregation: Once all clients have shared their secrets, the
where
Reconstruction of the Aggregated Key: After the sharing and aggregation are complete, the aggregated and sufficient sharing values are sent to the required entity (server) for secret reconstruction. This process is typically performed using the Lagrange interpolation polynomial. By collecting at least
In this subsection, the security of the proposed method based on the security properties of the privacy-preserving aggregation mechanism and the secret sharing protocol is analysed. By examining the information generated and exchanged by each participant throughout the federated learning process, it has been demonstrated that the proposed method effectively preserves the privacy of individual clients.
Lemma 1: For the proposed privacy-preserving aggregation mechanism, even if an entity has access to a set of plaintext-ciphertext pairs, as well as knowledge of the key
Proof: See Appendix A.3.
Lemma 2: For any subset of fewer than
Proof: This property has been formally proven in Shamir’s original work [36].
First, we present the views observable to the server and the colluding participants: Let
Initialization: During the initialization phase, the server generates a system-wide shared key
Local training: In the local training phase, no information is transmitted, so naturally, no information leakage occurs. During the encryption and uploading process, each client’s local random state and the generated initial vector are both randomly instantiated. According to Lin et al. [37], the gradients generated during deep learning training tend to be sparse and contain a large number of zero entries. This sparsity may leak additional information to an adversary within the system regarding the plaintext corresponding to a given ciphertext, which could potentially be exploited to construct a known-plaintext attack.
Key negotiation: In this phase, each client packages its own
Aggregation: The server can acquire the local encrypted weighted gradients
In summary, we can characterize the views (leakage assumptions) of an honest-but-curious server and a subset of participants who are also honest-but-curious but may engage in collusion among themselves, when the number of participants has not yet reached the level required for group aggregation. The server
where each component is specified as follows:
Let
where each component is specifically expanded as follows:
Here,
Definition 1 (Privacy against Honest-but-Curious Server): Let
Definition 2 (Privacy against
Theorem 1: Under the assumption that the proposed privacy-preserving aggregation mechanism satisfies IND-CPA security, the protocol
Proof: To prove Definition 1, we construct a probabilistic polynomial-time (PPT) simulator
Construction of the forged view by
Internal state and public parameters:
Forgery of the received messages
Forged aggregated key shares:
Forged initialization vectors: According to the generated
Forged encrypted gradients: This is the key step.
To ensure consistency of the final decryption result,
The ciphertexts
Security analysis.
In the real execution, according to the security of the privacy-preserving aggregation mechanism proved in Appendix A.3, each true ciphertext uploaded by a participant,
Meanwhile, the forged key shares satisfy the same algebraic structure as in the real world. Since IV itself is sampled from a uniform random distribution, it is indistinguishable from the randomly generated
Thus, Theorem 1 is proved.
Theorem 2: Under the assumption that the underlying secret sharing scheme (e.g., Shamir Secret Sharing) satisfies threshold security and the proposed privacy-preserving aggregation mechanism satisfies IND-CPA security, the protocol
Proof: Analogously to the above, we construct a probabilistic polynomial-time (PPT) simulator
Construction of the forged view by
Internal state and preservation of local data:
Embedding the final output
Forging the received key shares
In the real protocol, the colluding parties receive key shares
Security analysis:
In the real execution of the protocol, each honest participant
This implies that:
The real
Finally, even if the colluding participants eavesdrop on the ciphertexts uploaded by other participants, the security in this case can still be established through a simulation argument similar to that for the server, due to the computational indistinguishability of the privacy-preserving aggregation mechanism.
In summary, the joint distribution generated by the simulator,
is perfectly indistinguishable from the colluding set’s view
Theorem 3: Assume that the underlying encryption algorithm satisfies IND-CPA computational indistinguishability, and that the secret sharing scheme (e.g., Shamir Secret Sharing) achieves perfect secrecy with fewer than
Proof: The conclusion of Theorem 3 follows directly from Theorems 1 and 2.
Specifically, Theorem 1 shows that, under the assumption that the underlying encryption algorithm satisfies IND-CPA security, the view of the honest-but-curious server
Meanwhile, Theorem 2 shows that, under the threshold security of the underlying secret sharing scheme, for any colluding set satisfying
Combining the above two results, it follows that, under the honest-but-curious model, the protocol
In the above proof, we presented the security analysis of the federated learning method against an honest-but-curious server and colluding participants, based on the security of the privacy-preserving aggregation mechanism and the security of secret sharing. When the number of participants is large, the proposed federated learning method groups the participants. After grouping, the view observed by the server remains essentially unchanged; therefore, the above conclusion still holds. For colluding participants, since each group conducts key negotiation and aggregation independently, colluding participants from different groups cannot form effective cooperation. Within a single group, as long as the secret-sharing threshold
Since the participants’ original gradients are not leaked, the framework can effectively prevent attacks that aim to steal participants’ privacy, such as gradient inversion attacks. However, since no screening mechanism is incorporated into the framework, it may be unable to defend against attacks intended to disrupt training.
3.6 Communication Efficiency Analysis
This subsection analyzes the overall communication cost after applying the proposed algorithm within the federated learning method. The communication efficiency of the proposed algorithm is influenced primarily by the quantisation precision
where
During the key negotiation process, within each group, the total number of times shares are sent is
The total communication cost during the negotiation process is:
For the federated learning process, assuming that the number of parameters in the global model is
Therefore, the total communication cost in federated learning is
Since, compared with the number of parameters in commonly used deep learning models, the number of parameters occupied by
In this section, we evaluate the performance of the federated learning framework in terms of accuracy, computational cost (time), and communication cost. The performance of the privacy-preserving aggregation mechanism is evaluated using metrics such as entropy and NPCR (Number of Pixels Change Rate). Specifically, we conduct horizontal performance comparisons and parameter sensitivity analyses for both the federated learning framework and the privacy-preserving aggregation mechanism, and further perform ablation experiments on the privacy-preserving aggregation mechanism. The code related to the experiment can be found at https://github.com/ignorance163/LHEFL_algorithm.
In the first part, to illustrate the communication cost of the federated learning method and the computational cost of the privacy-preserving aggregation mechanism, we compare our approach (Our Work) with several baselines: FedAvg with direct plaintext transmission (Plaintext), FedAvg with quantized plaintext transmission (QuantPlaintext), variants of our method that use other homomorphic encryption schemes (BFV and CKKS), and MaskCrypt [15], a privacy-preserving federated learning framework based on homomorphic encryption with optimized communication efficiency. The comparison is conducted in terms of both transmitted data volume and execution time.
In the second part, to provide an intuitive comparison of the computational cost and ciphertext size of the proposed encryption algorithm, we evaluate it outside the federated learning framework against traditional homomorphic encryption schemes (Paillier and Elliptic Curve ElGamal) as well as lattice-based cryptosystems (BFV and CKKS). Under the same security level, we compare their performance in terms of encryption/decryption, homomorphic addition, and ciphertext length.
This subsection presents the devices and parameters used in our experiments. The proposed federated learning method is simulated on a host equipped with an Intel Core i7-14700KF 20-core processor, 32 GB of RAM, and an NVIDIA 4070Ti GPU with 16 GB of graphics memory, running the Windows operating system. The model was implemented using PyTorch.
General parameters of the federated learning framework were configured as, and
In the second part, in addition to empirically analyzing the security of the algorithm, we also compare its efficiency and ciphertext length with those of existing classical homomorphic encryption algorithms. The specific algorithms and parameter settings used for comparison are as follows: For proposed algorithm, encryption parameters were
4.3 Neural Network Models and Datasets
The models and datasets tested in this paper are shown below.
• Image Classification: ResNet18 on Cifar-10 [41]. CIFAR-10 is a standard benchmark dataset for image classification, consisting of 60,000
• Text Classification: Transformer on AGNews [42]. The AGNews dataset contains 31,900 news samples, including headlines and content from four distinct topical categories. The dataset was partitioned into ten equally sized subsets with identical label distributions, following the same approach as in the Cifar-10 setting.
• Pose Recognition: HARCNN on PAMAP2 [43]. PAMAP2 provides motion data from nine participants performing 18 different physical activities, which are categorized into 12 fundamental actions such as standing and lying down. As the data originates from nine individual participants, the dataset is naturally divided into nine subsets and allocated to nine clients, differing from the partitioning strategies used for the other datasets.
4.4 Performance Evaluation of the Method
This subsection evaluates the method in terms of accuracy, computational cost, and communication cost during training. The computational cost is assessed by the time consumed in each phase of the method. To evaluate communication cost, the data exchanged in a single round of federated learning is converted into byte streams using the serialization functions provided by NumPy and TenSEAL [39]. The communication cost is then represented as the total volume of data transmitted.
Fig. 4 and Table 2 illustrate the trends in accuracy variation and the final achieved accuracy of the global model under different encryption schemes. It can be observed that, even with the application of quantization, the accuracy and convergence curves of the proposed method remain largely consistent with those obtained from plaintext training and partial encryption, which indicates that the proposed approach does not introduce any adverse impact on model performance in terms of accuracy.

Figure 4: Average accuracy of the global model on each local dataset across different tasks.

Table 3 summarizes the computational and communication costs of the proposed method by reporting the time consumed at each step as well as the total time per iteration. When he proposed privacy-preserving aggregation mechanism is employed within the proposed framework, both the encryption and aggregation times are significantly reduced compared with those of the CKKS scheme. Although the encryption and decryption times of our algorithm are slightly higher than those of BFV, they remain within an acceptable range. Moreover, our method achieves a shorter aggregation time for homomorphic addition. In addition, unlike conventional encryption schemes that distribute only a single public-private key pair, the multi-key property of our approach allows decryption to be performed solely on the server side, without requiring each client to decrypt locally. This design further reduces the overall computational burden of the system in practical deployments. Although MaskCrypt exhibits the shortest encryption and decryption times among the homomorphic-encryption-based approaches, it requires additional training during the negotiation phase to estimate the gradient sensitivity of the updated model, which results in a longer overall training time per round. Finally, under a network bandwidth setting of

The experimental results show that, in a serial simulation environment, our method achieves the shortest per-round execution time among all privacy-preserving federated learning frameworks, thereby realizing a balanced optimization of computational and communication costs.
Under the parameter settings adopted in this subsection, the average communication cost of our encryption algorithm is reduced by
Overall, our method achieves a substantial reduction in communication cost while maintaining the same model accuracy as plaintext training, at the expense of an acceptable computational overhead.
4.5 Security and Performance Evaluation of the Proposed Privacy-Preserving Aggregation Mechanism
This subsection quantitatively evaluates the security of the proposed algorithm based on a set of well-defined metrics. Given that the encryption of parameter tensors functions more similarly to image encryption algorithms than to bit-level or stream encryption schemes, the evaluation methodology proposed by Radwan et al. [44] is referenced in our work. Specifically, the Pixel Change Rate (NPCR) and Unified Average Changing Intensity (UACI) metrics are employed to quantify the differences between plaintext and ciphertext, as well as between different ciphertexts. On the other hand, entropy is used to assess the randomness of the ciphertext. Subsequently, we conducted ablation experiments on each module in the privacy-preserving aggregation mechanism.
Additionally, we conduct a separate comparison, outside the federated learning framework, of the computational time and ciphertext length of the proposed algorithm with several classical homomorphic encryption schemes.
The metrics used in this subsection are described as follows.
• Entropy: Entropy measures the randomness of elements within the encrypted ciphertext. A value closer to the ideal entropy indicates higher unpredictability of the ciphertext. The theoretical maximum entropy is given by
where
• UACI (Unified Average Changing Intensity): This metric quantifies the average intensity of differences between two sets of data. The ideal UACI value is approximately
where
• NPCR (Number of Pixels Change Rate): This metric represents the proportion of differing elements between two datasets relative to the total number of elements. Values approaching 1 indicate greater variability between vectors.
where
4.5.1 Performance Evaluation of the Proposed Privacy-Preserving Aggregation Mechanism
Fig. 5 illustrates the entropy values of ciphertexts corresponding to various plaintext lengths. The horizontal axis of the figure in this subsection represents the number of encrypted parameters. Although a noticeable gap exists between the observed entropy values and the ideal value when the plaintext length is short, this discrepancy can be attributed to the relatively larger space and number of states available in the ciphertext. In such cases, the number of ciphertext states utilized by short plaintexts is insufficient to fully exploit the available entropy. As the number of parameters encrypted in plaintext approaches or exceeds the modulus size (with

Figure 5: Comparison of ciphertext entropy and the theoretical optimum of the entropy value as the plaintext length increases.
In Fig. 6, a single bit in the plaintext is modified, and the UACI and NPCR values between the corresponding ciphertexts are evaluated. The results demonstrate that, regardless of plaintext length, both NPCR and UACI values approach their theoretical upper bounds. This indicates that the proposed algorithm exhibits high sensitivity to changes in plaintext, thereby offering strong resistance against conventional differential attacks.

Figure 6: NPCR and UACI values under different plaintext lengths in differential testing experiments.
In Fig. 7, a slight modification is made to either the key or a subkey, and the ciphertexts generated by two separate encryption operations are compared. It is observed that the resulting UACI and NPCR values are both close to their respective theoretical upper bounds, indicating that the algorithm demonstrates strong key sensitivity. This implies that an attacker cannot effectively reduce the key search space through differential key analysis. Overall, the algorithm has demonstrated numerical robustness against statistical, differential, and linear cryptanalytic attacks.

Figure 7: NPCR and UACI values under different plaintext lengths in key differential testing experiments.
Table 4 shows the encryption and decryption times, homomorphic addition times, and ciphertext sizes for various encryption algorithms when 10,000 parameters are to be encrypted, with results averaged over 10 experiments. It can be observed that, compared to traditional encryption methods based on elliptic curve and integer factorization problems, lattice-based encryption and the proposed algorithm exhibit multiple orders of magnitude differences in encryption and decryption times. Although the proposed algorithm has slightly longer encryption, decryption, and aggregation times than the BFV algorithm, it benefits from a relatively shorter ciphertext length.

4.5.2 Ablation Experiments of the Proposed Privacy-Preserving Aggregation Mechanism
To verify the interactions among the modules in the privacy-preserving method, this paper conducts ablation experiments. Specifically, in this experiment, starting from the round key, each operator is sequentially incorporated into the proposed algorithm, and the above metrics are retested to verify the role of each module in the algorithm.
In Fig. 8, stage 1–6 respectively represent the progressive incorporation of the add round key, confusion matrix, permutation, CBC, disturb, and PCBC modules into the privacy-preserving aggregation mechanism.

Figure 8: Entropy comparison of ablation experiments.
It can be seen that, through the ablation experiment in which modules are progressively introduced, the involved round-key addition, confusion, and permutation can significantly improve the randomness of the encryption output and rapidly raise its entropy to a relatively high level. However, without introducing perturbation and the encryption mode, the upper bound of the ciphertext entropy is limited by the amount of information contained in the key. After further introducing perturbation and the encryption mode, the entropy of the algorithm can continue to increase steadily and ultimately approach the theoretical ideal value. These results fully demonstrate the effectiveness of the proposed modules, especially the contributions of perturbation and the encryption mode.
Figs. 9 and 10 illustrate the results of the ablation experiments on differential sensitivity and key sensitivity sharing.

Figure 9: KS-test UACI and NPCR comparison results under different stages. The upper panel shows the UACI comparison results, and the lower panel shows the NPCR comparison results.

Figure 10: Diff-test UACI and NPCR comparison results under different Stages. The upper panel shows the UACI comparison results, and the lower panel shows the NPCR comparison results.
Since this is an ablation experiment, it is normal that the sensitivity of the modules that have not yet been incorporated remains constantly zero in the key-sensitivity results shown in Fig. 9. For the remaining modules, it can be observed that, without the collaborative effect of other modules, RK and IV can only affect a single ciphertext component within one ciphertext block. Therefore, when used independently, their key sensitivity is extremely low and close to zero. After the confusion and permutation modules are introduced, the ciphertext sensitivity increases. Specifically, DM and
For plaintext differences, when round-key addition, matrix confusion, and permutation are introduced, the fluctuations caused by plaintext differences still cannot propagate across ciphertext blocks and can only affect a single ciphertext block. As a result, the overall sensitivity of the ciphertext decreases rapidly as the ciphertext length increases. After the introduction of CBC and the perturbation mechanism, ciphertext blocks within each CBC group can influence each other, thereby improving the sensitivity. However, the sensitivity still does not reach the ideal level. The PCBC mechanism further connects the entire ciphertext, allowing the influence of a single ciphertext block to diffuse across the whole ciphertext and thereby forming a stronger avalanche effect.
4.5.3 Sensitivity Analysis of Noise Parameters
From the theoretical derivation, it can be seen that the security of the algorithm largely comes from the applied random perturbation. To test the sensitivity of the proposed algorithm to the noise perturbation parameter, we adjust the noise scale introduced into the algorithm while keeping the modulus used by the algorithm unchanged, and verify the metric values under different noise scales.
As shown in Figs. 11 and 12, when the noise parameter is varied, the statistical properties and sensitivity of the algorithm’s ciphertext change only slightly. The experimental results indicate that our algorithm exhibits good statistical properties under different noise levels, suggesting that the algorithm has a low dependence on different noise levels.

Figure 11: Experimental results under different noise scales.

Figure 12: Entropy comparison under different noise scales.
4.6 Parameter Sensitivity Analysis of the Federated Learning Method
In this subsection, to further explore the performance of the proposed federated learning method, we conduct additional parameter-tuning tests on the proposed method. Specifically, to verify the robustness of the proposed algorithm to non-IID (non-independent and identically distributed) and non-balanced data when applied to the federated learning framework, this subsection first partitions the data into non-balanced datasets according to different Dirichlet distribution parameters, and tests the robustness of the algorithm to non-uniformly distributed data under different settings. Subsequently, to verify the analysis of the computational and communication costs of the proposed algorithm in Section 3.6, this paper adjusts the number of participants within a certain range, repartitions the complete dataset after each adjustment, and evaluates the accuracy, computational cost, and communication cost during the training process. Finally, to test the sensitivity of the model accuracy of the proposed method to quantization precision, the quantization precision is adjusted under the setting of 10 participants, IID, and balanced data.
As shown in Fig. 13, federated learning can proceed normally when the degree of data distribution shift among participants is relatively low, whereas training collapses under extremely severe data shift. This is because the proposed method performs aggregation by weighting the gradients according to the number of samples held by each participant, thereby exhibiting robustness to non-IID distributions under non-extreme settings, similar to FedAvg. These results demonstrate that the proposed quantization and encryption operations do not compromise the robustness of weighted aggregation.

Figure 13: Test accuracy under different non-IID degrees.
As shown in Fig. 14a, the model accuracy decreases as the number of participants increases. However, this is a common phenomenon in federated learning training. As the number of participants increases, data fragmentation may lead to local overfitting. Meanwhile, since the test model used in this study contains normalization layers, specifically batch normalization (BN) layers, the reduced amount of data available to each participant may decrease the stability of the BN statistics estimation.

Figure 14: Performance comparison under different numbers of clients.
The experimental results in Fig. 14b and Fig. 14c indicate that the computational and communication costs of the proposed algorithm increase approximately linearly with the number of participants, which is consistent with the theoretical analysis. When the number of participants varies, the local training time remains almost unchanged. This is because, each time the number of participants is adjusted, the entire dataset is repartitioned, and each experiment still performs forward and backward propagation over the full dataset, resulting in only minor differences in training time. In most cases, the negotiation time can be neglected because mainstream deep learning models generally contain a large number of parameters, and thus the computational cost introduced by key negotiation is negligible in comparison.
The experimental results in Fig. 15 show that the training accuracy remains consistent across different quantization precisions, indicating that the proposed algorithm can still maintain high accuracy even at relatively low quantization precision. The communication cost increases linearly with the quantization precision, which is consistent with the derivation in the theoretical analysis. Meanwhile, the computation time fluctuates only within a small range, which can be regarded as an acceptable measurement error.

Figure 15: Performance comparison under different quantization bit settings.
Finally, we present in detail the percentage of time occupied by each step during the training process when the number of participants is set to 10.
Table 5 presents the average time consumption and the proportion of total training duration for each step in each training round when the number of clients is 10. In each training round, the processes of local training and encryption account for the largest proportion of time consumption. The time taken by decryption and negotiation is relatively small. Ciphertext aggregation consumes the least time, which is almost negligible.

In this work, a short-ciphertext multi-key privacy-preserving mechanism, referred to as MKPHE-FL, is first constructed. Built upon a symmetric block encryption framework, the scheme features low communication overhead and acceptable computational cost. Furthermore, it supports multi-key encryption, making it suitable for federated learning scenarios with strong privacy and security requirements. Leveraging the homomorphic properties of secret sharing, a secret-sharing-based key negotiation protocol (SS-KNP) is designed to aggregate the distinct keys generated by individual clients during encryption.
Based on the above algorithms, we design a federated learning method capable of effectively defending against collusion-based privacy attacks. Within this method, participants can adaptively select encryption precision and noise levels according to the scale of the federated learning task. Each client is allowed to use a distinct sub-key to prevent privacy leakage from other participants.
Theoretical analysis shows that, through the use of encryption modes and randomization mechanisms, our algorithm is resistant to linear and differential attacks. Furthermore, with appropriately chosen parameters, the encryption process does not significantly increase message length. Numerical experiments demonstrate that our algorithm resists statistical and differential analysis attacks and, when applied within the federated learning method, achieves moderate computational cost and low communication cost.
Although the proposed algorithm offers certain advantages in communication cost, its adoption of the classical FedAvg framework for model aggregation leads to relatively weak resilience against malicious attacks. Future research will investigate how the homomorphic properties of the encryption scheme can be leveraged to quantify the similarity among participant-uploaded gradients, thereby improving the robustness of federated learning against adversarial attacks.
At the same time, although the scheme proposed in this paper achieves significant advantages in computational efficiency and communication overhead, we note that the current protocol design still has room for improvement in robustness against client dropouts. Since our method relies on secret sharing to realize key agreement, if some participating nodes unexpectedly drop out during a training round due to network fluctuations, it is highly likely that the received shares among participants will become inconsistent, thereby preventing the successful aggregation of all keys. Although the training of those participants with stable network connections can still proceed through partial key aggregation, the frequent occurrence of such events will cause the updates from participants affected by network fluctuations to be ignored during aggregation. In future work, it should be considered how to quickly compensate for this missing contribution to the global model when dropped participants are occasionally able to reconnect.
Acknowledgement: The authors thank Dr. Dai Yu from the School of Mathematics and Statistics, Wuhan University of Technology, for helpful guidance and suggestions during manuscript revision.
Funding Statement: This paper received funding support from the PCL-CMCC Foundation for Science and Innovation (Grant No. 2024ZY2B0050).
Author Contributions: Conceptualization: Hongzhen Liu, Xi Fang; Methodology: Hongzhen Liu; Software: Hongzhen Liu; Formal Analysis: Hongzhen Liu; Investigation: Hongzhen Liu; Writing—Original Draft: Hongzhen Liu; Writing—Review and Editing: Zhe Zhang, Liang Xie, Yuan Wan, Xi Fang; Supervision: Zhiqiang Ru; Project Administration: Zhiqiang Ru; Validation: All authors. All authors reviewed and approved the final version of the manuscript.
Availability of Data and Materials: The datasets used in this paper include Cifar-10 [41], AGNews [42], and PAMAP2 [43]. Among them, Cifar10 can be obtained from https://www.cs.toronto.edu/~kriz/cifar.html, AGNews can be obtained from https://www.kaggle.com/datasets/amananandrai/ag-news-classification-dataset, and PAMAP2 can be obtained from https://doi.org/10.24432/C5NW2H.
Ethics Approval: Not applicable. This study did not involve any human or animal participants.
Conflicts of Interest: The authors declare no conflicts of interest.
Appendix A Security Analysis of the Proposed Privacy-Preserving Aggregation Mechanism
Appendix A.1 Algebraic Analysis
This appendix analyzes the algorithm’s resistance to chosen-plaintext attacks based on linear algebraic techniques. The algorithm is simplified firstly using linear algebra, and then its resistance to linear and differential attacks under the assumption that the adversary possesses the key
Appendix A.1.1 Assumptions about the Adversary
Assume that the adversary holds
Appendix A.1.2 Simplification of the Algorithm
In this subsection, we take the encryption procedure under the parameter setting
Since the initialization vector (IV) is treated as an unknown key to be solved in this subsection, we isolate the IV from Eq. (4) and denote the resulting operation as
For ease of exposition, we define one complete encryption round composed of these key-dependent operations as
The three keys used in the encryption process, together with a single encryption round, can be transformed into the forms given in Eqs. (A3)–(A5):
For
For
The permutation operation is equivalent to applying an elementary transformation matrix to shift the original vector.
Here,
Consequently, the operation
For the PCBC mode, since the adversary has access to certain plaintext-ciphertext pairs, the unknown variables that introduce interference into the recovery process are the perturbations
Here,
For the CBC mode, the core operation lies in introducing the two preceding ciphertexts
After incorporating the initialization vector (IV), and under the setting
Considering the update strategy of
After substituting the corresponding transformations and merging the IV-related terms in Eq. (A12), the original equation can be reformulated as a noisy linear system over a ring.
Here, O denotes the zero matrix. Clearly, when
Appendix A.1.3 Analysis of Algebraic Methods for Solving Keys
Since the
Meanwhile, the random perturbation vector
Appendix A.1.4 Analysis of Algebraic Methods for Stealing Plaintext Information
Consider the case where the algorithm encounters a differential attack. In the algorithm proposed in this paper, to avoid encrypting all ciphertexts in the same pattern, the position of the key used is continuously rotated according to the plaintext and encryption process. However, for the subkeys, this essentially operates in the ECB (Electronic Codebook) mode. During the rotation process, after every
That is,
Although this approach eliminates
Although Eq. (A14) indicates that
Based on the aforementioned simplifications and deductions, it can be concluded that the proposed algorithm exhibits resistance to commonly used chosen-plaintext attacks.
Appendix A.2 Resistance to Structural Cryptanalysis Based on Noise Evolution
Although the simplification against algebraic attacks in the previous section indicates that the core security of the proposed algorithm is achieved through the perturbation and diffusion of noise in the encryption process, which may render conventional theoretical analyses of differential and linear attacks inapplicable, the encryption process is still built upon a conventional multi-round block cipher structure. Therefore, in this section, we further investigate differential cryptanalysis (DC) and linear cryptanalysis (LC) in the context of traditional block ciphers by formally estimating the cumulative noise distribution after multiple rounds of iteration, thereby showing that the algebraic structure of the proposed algorithm does not introduce exploitable structural weaknesses.
Without considering the encryption mode, the proposed algorithm mainly consists of three key operators: round-key addition, matrix confusion, and permutation. Among them, permutation is merely a shift operation and does not affect the overall noise introduced during the perturbation stage. Therefore, in this section, we mainly analyze the effects of multi-round round-key addition and matrix confusion on the noise distribution. For ease of analysis, we first consider the distribution of the noise after multiple rounds of encryption over the integer domain, and then study its distribution over the modular ring after modular reduction.
Let the initially injected noise be
This indicates that the perturbation grows rapidly with the number of rounds. When the accumulated noise is reduced modulo N, it is wrapped into the ring
Since the standard deviation of
For differential cryptanalysis, let two plaintexts be
where
This probability is close to random guessing, which means that no useful differential trail can be exploited.
For linear cryptanalysis, an adversary attempts to find nonzero linear masks
where
After multi-round diffusion and noise amplification,
In summary, the multi-round diffusion and noise amplification mechanism makes both differential and linear statistical structures indistinguishable from random behavior over the modular ring. Therefore, the proposed mechanism does not leave exploitable structural weaknesses for differential or linear cryptanalysis.
Appendix A.3 Standard Cryptographic Model and Formal Proof
As shown by the previous derivation of the algebraic structure, the encryption process proposed in this paper essentially constitutes a noisy sparse linear evolution system over a ring. Although its single-step operations are highly similar to the classical Learning With Errors (LWE) problem, the specific algebraic correlation introduced by the multi-round iterative operations between the coefficient matrix and the accumulated noise makes a strict reduction to the standard LWE problem an extremely complex and non-trivial task in cryptography.
Given that the lattice-cryptography community has established that multiple matrix variants with special structures can still retain asymptotically equivalent hardness to standard LWE. In particular, the latest breakthrough work by Bangachev et al. [45] rigorously provides a super-polynomial lower bound for solving the Sparse LWE problem when the coefficient matrix is highly sparse (with only
Assumption A1 (Hardness Assumption for the Decision Problem of the Equivalent Matrix of Block Encryption): Let
1. Real Evolution Distribution: the ciphertext generated by Eq. (A14).
2. Uniform Random Distribution:
We make the following assumption: as long as the number of iterations
where C denotes the ciphertext and U denotes a uniformly random element over the same ciphertext space.
Security Model.
Definition A1 (IND-CPA Security of the Aggregation Scheme): We define the indistinguishability under chosen-plaintext attack (IND-CPA) via the following game between a Challenger
Challenge:
Encryption:
Guess:
is negligible.
Security Proof of the privacy-preserving aggregation mechanism.
Theorem A1: Under Assumption A1, and that the accumulated noise
Proof: Let
Game 0 (Real Attack Game): The challenger generates the challenge ciphertext according to the real protocol,
and gives it to the adversary
Game 1: The challenger directly samples a uniform vector U at random from
Analysis: According to the Assumption A1, the truly generated noisy sparse linear ciphertext is computationally indistinguishable from a purely random vector. Therefore, the probability difference for the adversary in distinguishing Game 0 and Game 1 is strictly bounded by
In addition, by injecting sufficiently large initial variance and performing diffusion through
In Game 1, as the ciphertext is computationally indistinguishable from a uniform random value, the probability that the challenger wins differs from
Appendix B Notation Table
Tables A1–A4 contain the notations used in this paper for the sections of federated learning, privacy-preserving aggregation mechanism, key agreement algorithm, experiments and security proof of the privacy-preserving aggregation mechanism, respectively.




References
1. McMahan B, Moore E, Ramage D, Hampson S, Arcas BAY. Communication-efficient learning of deep networks from decentralized data. In: Proceedings of the 20th International Conference on Artificial Intelligence and Statistics (AISTATS 2017). Ft. Lauderdale, FL, USA: Society for Artificial Intelligence and Statistics; 2017. p. 1273–82. [Google Scholar]
2. Zhu L, Liu Z, Han S. Deep leakage from gradients. In: Proceedings of the 33rd International Conference on Neural Information Processing Systems. Red Hook, NY, USA: Curran Associates Inc.; 2019. p. 14774–14784. doi:10.5555/3454287.3455610. [Google Scholar] [CrossRef]
3. Fan M, Zhang Z, Li Z, Sun G, Yu H, Guizani M. Blockchain-based decentralized and lightweight anonymous authentication for federated learning. IEEE Trans Veh Technol. 2023;72(9):12075–86. doi:10.1109/tvt.2023.3265366. [Google Scholar] [CrossRef]
4. Kumbhar HR, Rao SS. Federated learning enabled multi-key homomorphic encryption. Expert Syst Appl. 2025;268(C):126197. doi:10.1016/j.eswa.2024.126197. [Google Scholar] [CrossRef]
5. Truex S, Liu L, Chow KH, Gursoy ME, Wei W. LDP-Fed: federated learning with local differential privacy. In: EdgeSys ’20: Proceedings of the Third ACM International Workshop on Edge Systems, Analytics and Networking. New York, NY, USA: ACM; 2020. p. 61–6. doi:10.1145/3378679.3394533. [Google Scholar] [CrossRef]
6. Fang H, Qian Q. Privacy preserving machine learning with homomorphic encryption and federated learning. Future Internet. 2021;13(4):94. doi:10.3390/fi13040094. [Google Scholar] [CrossRef]
7. Bonawitz K, Ivanov V, Kreuter B, Marcedone A, McMahan HB, Patel S, et al. Practical secure aggregation for privacy-preserving machine learning. In: CCS ’17: Proceedings of the 2017 ACM SIGSAC Conference on Computer and Communications Security. New York, NY, USA: ACM; 2017. p. 1175–91. doi:10.1145/3133956.3133982. [Google Scholar] [CrossRef]
8. Marcoll C, Sucasas V, Manzano M, Bassoli R, Fitzek FTP, Aaraj N. Survey on fully homomorphic encryption, theory, and applications. Proc IEEE. 2022;110(10):1572–609. [Google Scholar]
9. Yang Q, Liu Y, Chen T, Tong Y. Federated machine learning: concept and applications. ACM Trans Intell Syst Technol. 2019;10(2):12:1–19. doi:10.1145/3298981. [Google Scholar] [CrossRef]
10. Ma J, Naas SA, Sigg S, Lyu X. Privacy-preserving federated learning based on multi-key homomorphic encryption. Intl J Intell Syst. 2022;37(9):5880–901. doi:10.1002/int.22818. [Google Scholar] [CrossRef]
11. Chen H, Dai W, Kim M, Song Y. Efficient multi-key homomorphic encryption with packed ciphertexts with application to oblivious neural network inference. In: CCS ’19: Proceedings of the 2019 ACM SIGSAC Conference on Computer and Communications Security. New York, NY, USA: ACM; 2019. p. 395–412. doi:10.1145/3319535.3363207. [Google Scholar] [CrossRef]
12. Sun J, Chen T, Giannakis GB, Yang Q, Yang Z. Lazily aggregated quantized gradient innovation for communication-efficient federated learning. IEEE Trans Pattern Anal Mach Intell. 2022;44(4):2031–44. doi:10.1109/tpami.2020.3033286. [Google Scholar] [PubMed] [CrossRef]
13. Rothchild D, Panda A, Ullah E, Ivkin N, Stoica I, Braverman V, et al. FetchSGD: communication-efficient federated learning with sketching. In: Proceedings of the 37th International Conference on Machine Learning. Cambridge, MA, USA: PMLR; 2020. p. 8253–65. [Google Scholar]
14. Jhunjhunwala D, Gadhikar A, Joshi G, Eldar YC. Adaptive quantization of model updates for communication-efficient federated learning. In: 2021 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP). Piscataway, NJ, USA: IEEE; 2021. p. 3110–4. doi:10.1109/ICASSP39728.2021.9413697. [Google Scholar] [CrossRef]
15. Hu C, Li B. MaskCrypt: federated learning with selective homomorphic encryption. IEEE Trans Dependable Secur Comput. 2025;22(1):221–33. doi:10.1109/tdsc.2024.3392424. [Google Scholar] [CrossRef]
16. Singh A, Rathee G, Kerrache CA, Ghanem MC. A relay-chain–powered ciphertext-policy attribute-based encryption in intelligent transportation systems. Transp Eng. 2026;23(1):100424. doi:10.2139/ssrn.5397593. [Google Scholar] [CrossRef]
17. Zhang C, Li S, Xia J, Wang W, Yan F, Liu Y. BatchCrypt: efficient homomorphic encryption for cross-silo federated learning. In: USENIX ATC’20: Proceedings of the 2020 USENIX Conference on Usenix Annual Technical Conference. Berkeley, CA, USA: USENIX Association; 2020. p. 493–506. [Google Scholar]
18. Zhang L, Xu J, Vijayakumar P, Sharma PK, Ghosh U. Homomorphic encryption-based privacy-preserving federated learning in IoT-enabled healthcare system. IEEE Trans Netw Sci Eng. 2023;10(5):2864–80. doi:10.1109/tnse.2022.3185327. [Google Scholar] [CrossRef]
19. Burlachenko K, Alrowithi A, Albalawi FA, Richtárik P. Federated learning is better with non-homomorphic encryption. In: DistributedML ’23: Proceedings of the 4th International Workshop on Distributed Machine Learning. New York, NY, USA: ACM; 2023. p. 49–84. doi:10.1145/3630048.3630182. [Google Scholar] [CrossRef]
20. Pan Y, Chao Z, He W, Jing Y, Hongjia L, Liming W. FedSHE: privacy preserving and efficient federated learning with adaptive segmented CKKS homomorphic encryption. Cybersecurity. 2024;7(1):40. doi:10.1186/s42400-024-00232-w. [Google Scholar] [CrossRef]
21. Chait K, Laouid A, Laouamer L, Kara M. A multi-key based lightweight additive homomorphic encryption scheme. In: Proceedings of the 2021 International Conference on Artificial Intelligence for Cyber Security Systems and Privacy (AI-CSP). Piscataway, NJ, USA: IEEE; 2021. p. 1–6. doi:10.1109/AI-CSP52968.2021.9671216. [Google Scholar] [CrossRef]
22. Ming Y, Wang S, Wang C, Liu H, Deng Y, Zhao Y, et al. VCSA: verifiable and collusion-resistant secure aggregation for federated learning using symmetric homomorphic encryption. J Syst Arch. 2024;156:103279. [Google Scholar]
23. Hariss K, Noura H. Homomorphic additive lightweight block cipher scheme for securing IoT applications. J Inf Secur Appl. 2023;76(C):103540. doi:10.1016/j.jisa.2023.103540. [Google Scholar] [CrossRef]
24. Azzouzi O, Anane M, Ghanem MC, Himeur Y, Kheddar H. Efficient fine-grained LuT-based optimization of AES MixColumns and InvMixColumns for FPGA implementation. Electronics. 2025;14(24):4912. doi:10.3390/electronics14244912. [Google Scholar] [CrossRef]
25. Park J, Lim H. Privacy-preserving federated learning using homomorphic encryption. Appl Sci. 2022;12(2):734. doi:10.3390/app12020734. [Google Scholar] [CrossRef]
26. Jiang ZL, Guo H, Pan YJ, Liu Y, Wang X, Zhang J. Secure neural network in federated learning with model aggregation under multiple keys. In: Proceedings of the 2021 8th IEEE International Conference on Cyber Security and Cloud Computing (CSCloud)/2021 7th IEEE International Conference on Edge Computing and Scalable Cloud (EdgeCom). Piscataway, NJ, USA: IEEE; 2021. p. 47–52. doi:10.1109/CSCloud-EdgeCom52276.2021.00019. [Google Scholar] [CrossRef]
27. Cai Y, Ding W, Xiao Y, Yan Z, Liu X, Wan Z. SecFed: a secure and efficient federated learning based on multi-key homomorphic encryption. IEEE Trans Dependable Secur Comput. 2024;21(4):3817–33. [Google Scholar]
28. Pham CH, Huynh-The T, Sedgh-Gooya E, El-Bouz M, Alfalou A. Extension of physical activity recognition with 3D CNN using encrypted multiple sensory data to federated learning based on multi-key homomorphic encryption. Comput Methods Programs Biomed. 2024;243(2):107854. doi:10.1016/j.cmpb.2023.107854. [Google Scholar] [PubMed] [CrossRef]
29. Li Y, Lai J, Zhang R, Sun M. Secure and efficient multi-key aggregation for federated learning. Inf Sci. 2024;654(2):119830. doi:10.1016/j.ins.2023.119830. [Google Scholar] [CrossRef]
30. Walskaar I, Tran MC, Catak FO. A practical implementation of medical privacy-preserving federated learning using multi-key homomorphic encryption and flower framework. Cryptography. 2023;7(4):48. doi:10.3390/cryptography7040048. [Google Scholar] [CrossRef]
31. Wu G, Xu S, He D, Chan S. Blockchain-based efficient and secure cloud cross-domain data sharing with dynamic revocation by multiple authorities. Comput Netw. 2025;270(2):111518. doi:10.1016/j.comnet.2025.111518. [Google Scholar] [CrossRef]
32. Tian Y, Fan Z, Zhang Y. Toward secure and auditable data sharing: a cross-chain CP-ABE framework. Comput Mater Contin. 2026;87(1):62. doi:10.32604/cmc.2025.073935. [Google Scholar] [CrossRef]
33. Kong X, Vellayappan K, Chin JT, Khan SA, Wu Z. Homomorphically encrypted neural network modeling and predictive control for data-privacy-preserving control systems. Control Eng Pract. 2026;171(8):106848. doi:10.1016/j.conengprac.2026.106848. [Google Scholar] [CrossRef]
34. Noura HN, Salman O, Couturier R, Chehab A. LoRCA: lightweight round block and stream cipher algorithms for IoV systems. Veh Commun. 2022;34:100416. [Google Scholar]
35. Hariss K, Noura H. Towards a fully homomorphic symmetric cipher scheme resistant to plain-text/cipher-text attacks. Multimed Tools Appl. 2022;81(10):14403–49. doi:10.1007/s11042-022-12043-7. [Google Scholar] [CrossRef]
36. Shamir A. How to share a secret. Commun ACM. 1979;22(11):612–3. doi:10.1145/359168.359176. [Google Scholar] [CrossRef]
37. Lin Y, Han S, Mao H, Wang Y, Dally W. Deep gradient compression: reducing the communication bandwidth for distributed training. arXiv:1712.01887v2. 2018. [Google Scholar]
38. Zhang J, Liu Y, Hua Y, Wang H, Song T, Xue Z, et al. PFLlib: a beginner-friendly and comprehensive personalized federated learning library and benchmark. arXiv:2312.04992. 2025. [Google Scholar]
39. Benaissa A, Retiat B, Cebere B, Belfedhal AE. TenSEAL: a library for encrypted tensor operations using homomorphic encryption. arXiv:2104.03152. 2021. [Google Scholar]
40. Serengil SI, Ozpinar A. LightPHE: integrating partially homomorphic encryption into python with extensive cloud environment evaluations. arXiv:2408.05219. 2025. [Google Scholar]
41. Krizhevsky A, Nair V, Hinton G. Learning multiple layers of features from tiny images [Dataset]. 2009 [cited 2025 Nov 13]. Available from: https://www.cs.toronto.edu/. [Google Scholar]
42. Rai AA. AG news classification dataset [Dataset]. Kaggle datasets. 2021 [cited 2025 Nov 15]. Available from: https://www.kaggle.com/datasets/amananandrai/ag-news-classification-dataset. [Google Scholar]
43. Reiss A. PAMAP2 physical activity monitoring. UCI machine learning repository. 2012 [cited 2025 Nov 15]. Available from: http://archive.ics.uci.edu/dataset/231/pamap2+physical+activity+monitoring. [Google Scholar]
44. Radwan AG, AbdElHaleem SH, Abd-El-Hafiz SK. Symmetric encryption algorithms using chaotic and non-chaotic generators: a review. J Adv Res. 2016;7(2):193–208. doi:10.1016/j.jare.2015.07.002. [Google Scholar] [PubMed] [CrossRef]
45. Bangachev K, Bresler G, Tiegel S, Vaikuntanathan V. Near-optimal time-sparsity trade-offs for solving noisy linear equations. In: Proceedings of the 57th Annual ACM Symposium on Theory of Computing, STOC ’25. New York, NY, USA: ACM; 2025. p. 1910–20. doi:10.1145/3717823.3718284. [Google Scholar] [CrossRef]
Cite This Article
Copyright © 2026 The Author(s). Published by Tech Science Press.This work is licensed under a Creative Commons Attribution 4.0 International License , which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.


Submit a Paper
Propose a Special lssue
View Full Text
Download PDF
Downloads
Citation Tools