Abstract
Following the completion of the NIST post-quantum cryptography standardization, Kyber has been adopted as a key encapsulation mechanism (KEM) for quantum-resistant communication. Although lattice-based KEMs provide strong security and efficiency, most existing designs restrict the cyclotomic ring dimension to powers of two, which limits parameter flexibility for heterogeneous and resource-constrained Internet of Things (IoT) devices. In this paper, we propose Fyber, a post-quantum KEM based on the Module Learning With Errors (M-LWE) problem over a module ring defined by the cyclotomic polynomial , where n is a product of powers of 2 and 3. This construction enables mixed-radix parameter selection and allows finer-grained trade-offs between security and efficiency. To further improve performance on constrained platforms, we introduce an efficient non-Gaussian sampling method. The proposed KEM supports flexible security-level stratification for IoT applications, achieving reduced public key and ciphertext sizes for selected parameter sets at the cost of moderately increased computational overhead compared to Kyber, and fills intermediate security gaps between existing standardized parameter sets.
1. Introduction
With the rapid development of Internet of Things (IoT) systems [1], IoT applications have expanded across diverse domains, including smart homes, cities, transportation, and healthcare [2]. These devices can collect, process, and share data with each other and with external systems over the Internet. To ensure data confidentiality and integrity, key encapsulation mechanisms (KEMs) are required to securely distribute symmetric keys between devices, which are then used for encrypting transmitted data [3]. With the development of quantum computers [4], conventional cryptographic schemes are expected to become vulnerable, which motivates the consideration and deployment of post-quantum cryptography (PQC) in IoT devices.
KEMs based on the Learning With Errors (LWE) problem [5,6] and its variants [7,8] play a central role in establishing secure channels in PQC-enabled systems. In 2015, Langlois et al. [8] proposed the LWE problem on modular lattices (M-LWE). Compared to LWE, cryptosystems based on M-LWE offer greater flexibility in parameter selection and have become a primary focus of mainstream research in recent years. Especially after the National Institute of Standards and Technology (NIST) designated CRYSTALS-Kyber [9] as a standard post-quantum KEM, constructions based on the hardness of lattice problems have been considered to be among the primary contenders for replacing current KEMs that rely on the computational hardness of traditional number-theoretic problems such as integer factorization and discrete logarithm.
Despite its practical success, Kyber (and most existing M-LWE-based KEMs) relies on cyclotomic polynomial rings whose degrees n are restricted to powers of two [9,10,11]. In this case, the n-th cyclotomic polynomial takes the form , which is maximally sparse. Moreover, this design choice simplifies the implementation of number-theoretic transforms (NTTs) [12], enabling polynomial multiplication with complexity rather than . As a result, high performance can be achieved on general-purpose platforms. However, restricting the ring dimension to powers of two significantly reduces the flexibility of parameter selection, making it difficult to achieve well-balanced trade-offs among security, computational efficiency, and memory footprint in IoT environments. In practice, IoT deployments encompass a wide spectrum of devices, ranging from ultra-low-power microcontrollers [13] to more capable gateways [14]. Restricting ring dimensions to powers of two only permits coarse-grained parameter scaling, forcing designers to choose between insufficient security margins with small dimensions or unnecessary computational and memory overhead with large dimensions. To illustrate the flexibility enabled by ring dimensions of the form , Table 1 presents representative parameter choices for different classes of IoT devices. These configurations are illustrative examples following standard M-LWE parameterization principles and are intended to demonstrate how non-power-of-two dimensions enable finer-grained trade-offs between security and resource consumption, rather than to define standardized parameter sets. Specifically, ultra-low-power MCUs typically target NIST level-1 security [15] due to strict memory and energy constraints, while mid-range IoT devices can support moderate parameters at level-3 security. Gateways and edge devices, being less resource-constrained, can adopt higher security levels (e.g., level-5) with larger ring dimensions. For instance, on microcontrollers with only tens of kilobytes of SRAM, a power-of-two dimension such as may exceed the memory budget, whereas may not meet security requirements. In contrast, intermediate dimensions such as achieve security levels that are difficult to realize using power-of-two dimensions alone, while significantly reducing key size and memory footprint.
Table 1.
Example parameter configurations enabled by non-power-of-two ring dimensions for IoT devices [13,14]. (n is the degree of the cyclotomic polynomial.)
Non-power-of-two cyclotomic rings expand the parameter space by enabling a wider range of ring dimensions, thereby allowing finer-grained security-level tuning and potentially reducing bandwidth and ciphertext expansion for intermediate security requirements. Moreover, many existing cryptanalytic techniques have been primarily studied and optimized for power-of-two cyclotomic rings [16,17,18]. While this does not imply a general security advantage, adopting more diverse cyclotomic structures may reduce exposure to structure-specific attack optimizations and broaden the design space for mitigating known attack strategies. Despite these potential benefits, designing KEMs over general cyclotomic rings is non-trivial and introduces challenges at multiple levels. First, the equality no longer holds, which requires sampling secret keys from the dual ring and incurs higher computational complexity. Second, naive coefficient scaling distorts the noise distribution in the embedded space and violates the spherical Gaussian assumption, thereby opening the door to several known attacks [19,20,21]. Finally, NTT cannot be directly applied to accelerate polynomial multiplication in non-power-of-two rings, which further complicates efficient implementations.
Contributions. In this work, we address these challenges by proposing Fyber, a post-quantum CCA-secure KEM based on the Module Learning With Errors (M-LWE) assumption over cyclotomic rings defined by the polynomial , where . This mixed-radix ring structure enables flexible parameter selection and supports mixed-radix NTT implementations, allowing fine-grained trade-offs between security, computational efficiency, and memory usage that are well-suited to IoT devices.
To enhance practicality, we develop an efficient non-Gaussian sampling method and a fast polynomial multiplication algorithm tailored to the proposed ring structure. Compared with Kyber, Fyber achieves smaller public key and ciphertext sizes for selected parameter sets while maintaining post-quantum security, and it naturally supports intermediate security levels that are not covered by existing standardized parameter sets. Overall, Fyber demonstrates improved parameter adaptability and security-level stratification for IoT-oriented post-quantum communication.
The remainder of this paper is organized as follows. Section 2 surveys the related work, and Section 3 presents the relevant background definitions. Section 4 describes the proposed public key encryption (PKE) scheme, which is subsequently converted into a key encapsulation mechanism (KEM) using the Fujisaki–Okamoto (FO) transform. Section 5 offers a comprehensive evaluation of the performance of our construction. Finally, Section 6 summarizes our work.
2. Related Work
2.1. Lattice-Based KEMs
In addition to the post-quantum standardized KEM Kyber discussed above, another major class of lattice-based KEMs is built upon the NTRU encryption paradigm [22]. NTRU-based constructions are typically instantiated over cyclotomic rings and, in principle, allow greater flexibility in the choice of ring parameters and algebraic structures. Representative schemes include the NTRU KEM [23] and NTRU Prime [24] submissions to the NIST post-quantum standardization process, the latter of which adopts an alternative ring selection strategy to mitigate certain forms of structural attacks. Although these schemes advanced to the final rounds of the NIST process, they were not ultimately selected for standardization. Compared to Kyber, NTRU-type KEMs follow a different design line and exhibit distinct performance and bandwidth profiles depending on parameter choices and platforms; however, they were not ultimately selected for NIST standardization, whereas Kyber/ML-KEM has been standardized and widely optimized for deployment. Moreover, several works have shown that NTRU implementations can be susceptible to implementation-level attacks, including power analysis and related side-channel attacks [25,26]. In this paper, we focus on constructions based on the M-LWE assumption, which provides a well-understood security foundation, standardized parameterization, and favorable efficiency–security trade-offs compared to alternative lattice-based approaches.
Despite the rich literature on lattice-based KEMs, existing standardized M-LWE-based designs largely restrict ring dimensions to powers of two, which limits parameter flexibility and results in coarse-grained security-level choices. Prior work on alternative lattice structures either follows different design paradigms (e.g., NTRU-type schemes) or does not target fine-grained parameter tuning within the M-LWE framework. In contrast, our work fills this gap by enabling non-power-of-two ring dimensions within an M-LWE-based KEM, allowing finer-grained security-efficiency trade-offs while preserving a standardized security foundation.
2.2. PQC KEMs on Constrained and IoT Platforms
A growing body of work investigates the practicality of post-quantum KEMs on resource-constrained platforms and in IoT deployments, where memory footprint, code size, and energy consumption are often the dominant constraints. Benchmarking frameworks such as pqm4 enable systematic evaluation of NIST PQC candidates on ARM Cortex-M4 microcontrollers and have become a common baseline for comparing embedded performance [27]. Beyond micro-benchmarks, several studies integrate PQC KEMs into real-world communication stacks and evaluate end-to-end performance. For example, post-quantum TLS handshakes on embedded devices have been studied with respect to runtime and memory overheads [28], and protocol-level optimizations such as KEMTLS have been evaluated in IoT-relevant network settings [29]. Recent surveys further summarize the challenges and optimization directions for deploying PQC in IoT systems [30,31].
In addition to protocol and system level evaluations, several works explore algorithmic and implementation-level optimizations tailored to IoT environments. In 2021, Khalid et al. proposed a KEM construction and corresponding co-processor design for lightweight IoT applications based on a new hardness assumption, namely the multilevel approximate R-LWE problem [32]. More recently, a number of studies have focused on improving the efficiency of Kyber-KEM on resource-constrained platforms through implementation-level optimizations. In particular, Kundu et al. [33] and Shehzadi et al. [34] demonstrated that replacing the original hash function components in Kyber with lightweight alternatives can reduce computational overhead and memory usage on embedded devices. However, existing work largely focuses on implementation- and system-level optimizations, and does not explicitly address the need for fine-grained security-level stratification when deploying KEMs in heterogeneous IoT environments.
In summary, prior studies primarily improve the deployability of existing KEMs on constrained platforms through implementation and protocol-level optimizations, but largely assume fixed, coarse-grained parameter sets defined by standardized schemes. The need for fine-grained security-level stratification to accommodate heterogeneous IoT devices remains underexplored. Our work addresses this gap by redesigning the parameterization space of M-LWE-based KEMs, enabling flexible security–performance trade-offs tailored to diverse IoT deployment scenarios.
3. Preliminaries
3.1. Notation
We denote , and as the set of all natural numbers, integers, rational numbers, real numbers, and complex numbers, respectively. For a fixed integer m, we denote as , where means the greatest common divisor function. It follows that the number of the group . By default, is the Euler totient function. For a real , we denote as the integer closest to a, denote , and denote . For a real coefficients polynomial , we let indicate that each coefficient is rounded individually.
Fixing a prime q, for any , we denote . For any , we denote , where means the i-th coefficient of v. Similarly, for any , we let denote the norm.
Throughout this paper, for a fixed integer , we always denote the integer
And we define the polynomial
3.2. Lattice and Algebraic Background
Cyclotomic ring. When fixing an integer , for m-th primitive root of unity , cyclotomic polynomial is defined by
which is a monic irreducible polynomial with integer coefficients. The degree of is . The number field is an extension of by adjoining and . When considering as an -dimensional vector space over , the power basis is defined as .
The set of all algebraic integers in a number field K, denoted as R, forms an integral domain and is referred to as the ring of algebraic integers. For , the ring of algebraic integers is .
In addition to this, by the definition of (2), we can obtain . Thus, the ring is an expansion of the cyclotomic ring . Furthermore, the reduction modulo , denoted as , is a ring morphism. The power basis of consists of for odd m and for even m.
Module learning with error. Let be a fixed distribution with standard deviation and be a secret vector. The decisional M-LWE problem asks any distinguisher to distinguish between and with a negligible advantage, where , and .
3.3. PKE and KEM
A public key encryption (PKE) scheme is a tuple of polynomial-time algorithms over a message space , where outputs , outputs a ciphertext c for , and outputs m or ⊥. Correctness requires that for all ,
A PKE scheme is indistinguishability under chosen-plaintext attacks (IND-CPA) secure [35] if for any polynomial-time adversary , its advantage in the standard IND-CPA experiment is negligible, i.e.,
A key encapsulation mechanism (KEM) is a tuple of polynomial-time algorithms. The key generation algorithm outputs a public/secret key pair . The encapsulation algorithm takes a public key as input and outputs a shared secret K together with a ciphertext c. The decapsulation algorithm takes the secret key and a ciphertext c as input and outputs either the shared secret K or ⊥. Correctness requires that
where . The advantage of an adversary against the indistinguishability under chosen-ciphertext attacks (IND-CCA) security of a KEM is defined as
3.4. Compression and Decompression Functions
We utilize Kyber’s compression and decompression functions to decrease the ciphertext size without impacting decryption. Let q be a fixed prime, and let and an integer t such that . The compression and decompression functions are denoted as
For and , the functions are applied component-wise to each entry. The following lemma is essential for calculating the decryption failure rate.
Lemma 1.
For fixed , we have , an element close to x; more precisely:
Definition 1
(Mod switching errors distribution, MSED). For fixed , we define the distribution by uniformly sampling and then returning
4. M-LWE-Based IND-CPA Security PKE
In this section, we construct an IND-CPA security PKE based on the hardness of M-LWE problem. Our construction is inspired by the work of Ducas and Durmus [36], which proposed a PKE scheme instantiated over general cyclotomic rings under the R-LWE assumption. While their work established an important theoretical foundation, it primarily focused on the R-LWE setting and did not allow for flexible selection of the module rank, nor include an efficient practical instantiation. In this work, we extend their approach to the more general M-LWE setting and provide a complete security analysis, which is given in Appendix A. This generalization enables finer-grained parameter selection and allows the use of non-Gaussian sampling techniques. As a result, our PKE construction offers improved parameter flexibility and practical efficiency compared to the original R-LWE-based scheme.
4.1. Fyber’s PKE Scheme
For clarity, we consistently use n to denote the ring dimension (i.e., the degree of the cyclotomic polynomial), and m to denote the modulus parameter in the M-LWE instance throughout the paper.
For the security parameter , the system parameter params is generated as follows: an integer m is chosen such that , where . Thus . And modulus q is a prime congruent to 1 modulo n. Note that , where . Here, polynomial and integer , which are respectively defined by (2) and (1) (since m is an even). They also have small positive integers and that are smaller than . Then, for given positive integers d and , params is given by .
We use Kyber’s encoding/decoding algorithms to convert a n bit-string message to its polynomial form and vice versa via .
The centered binomial distribution (CBD) is defined as follows: randomly choosing samples from , and outputting . The convolution of the centered binomial and uniform distribution is defined as follows: randomly choosing samples from , with from uniform distibution over , outputting random variety . The probability of is equal to . Subsequently, we abbreviate it as BUD, denoted by . We will discuss the Rényi divergence between this distribution and the Gaussian distribution in detail in Section 4.2. Our PKE construction is as follows:
- KeyGen().
- 1.
- Generate seed .
- 2.
- Generate matrix uniformly by seed .
- 3.
- Sample from the distribution , respectively.
- 4.
- Calculate ; .
- 5.
- .
- Enc().
- 1.
- ;
- 2.
- Sample from , from , and from .
- 3.
- Calculate ; ; .
- 4.
- Compute .
- 5.
- Output
- Dec().
- 1.
- Compute and .
- 2.
- Compute .
- 3.
- Output .
4.2. On Non-Gaussian Errors
The hardness of the M-LWE problem is typically analyzed via worst-case to average-case reductions formulated for continuous Gaussian error distributions over the rationals [8]. In contrast, practical schemes such as Kyber and Newhope [10] employ efficient non-Gaussian sampling, which comprises notably centered binomial distributions. While such noise is implementation-friendly, its tail bounds and overall statistical profile can be less robust in the M-LWE setting with non-power-of-two dimensions [36]. To achieve a more stable security–efficiency trade-off without incurring the cost of high-precision Gaussian sampling, we adopt a convolution of a centered binomial and a uniform distribution (BUD). This choice improves the statistical behavior and tunability of the noise distribution while introducing negligible implementation overhead.
Noise Distribution
In our PKE scheme, the secret and error vectors are sampled from a rational-valued distribution obtained by combining a centered binomial distribution with a uniform distribution. Figure 1a illustrates the resulting distribution for . Specifically, any rational number can be uniquely written as , where and . We sample z from a centered binomial distribution and uniformly from ; the resulting value then follows the distribution .
Figure 1.
Distributions of secret coefficients after reduction and rounding.
We fix and let be a polynomial of degree . The cyclotomic polynomial has degree . After sampling , the derivation of the secret vector proceeds in two steps.
In the first step, since , for any satisfying , reducing s modulo yields coefficients
Consequently, for all , we have . Figure 1b illustrates the resulting distribution, corresponding to the additive convolution of two BUD samples. In the second step, the coefficients are rounded after the modulo operation, resulting in the distribution shown in Figure 1c, which we refer to as MR-BUD.
In works such as [9,10], using a Rényi divergence-based analysis, the authors show that replacing the n-dimensional discrete Gaussian distribution over with standard deviation by a centered binomial distribution only marginally affects security. This observation relies on the fact that, for LWE-based encryption schemes, the security is robust under small statistical deviations from the ideal Gaussian noise, rather than being tied to an exact noise distribution [10]. The following theorem shows that, compared to Gaussian noise, using MR-BUD as the error distribution in our PKE scheme does not incur a significant loss of security.
Theorem 1.
Let be a real integer, and η be a small integer such that . Denoted is the rounded Gaussian distribution. Let be the M-LWE sample under a standard definition; the noise sampling is taken from . If there exists an algorithm that succeeds in recovering the secret error when given an M-LWE instance of our PKE as input with probability , then it would also succeed against with probability .
Proof.
For two probability distributions , the Rényi divergence of is defined as [37,38]:
It bounds via:
for the same event E. In our PKE, under the random oracle model, any attacker can successfully and accurately recover the plaintext message by recovering the secret vector in the M-LWE samples. By setting the value of , we ensure that the secret vector and noise vector in our PKE follow the MR-BUD, i.e., the distribution after rounding by the BUD module operation. We define the event E be the attacker successfully recover the secret vector. We also denoted as the rounded Gaussian distribution of standard deviation ; that is, the distribution of where x follows the standard normal distribution. We give the parameter suggestions in Table 2, where the largest of and ; we can obtain that for fixed real we have
by script Renyi.py. Since samples are used per instance of our PKE, we used have . Thus, by (3), we have
□
4.3. Correctness and Security
Below, we explain that, to correctly recover all message bits, the -norm of error polynomial must be smaller than . We can make the decryption error negligible by controlling the parameters, as discussed in Section 5. We have the following theorem.
Theorem 2
(Correctness). Let
then our PKE scheme is -correct.
Proof.
Based on the hardness of M-LWE, we have are pseudo-random. By the Enc algorithm, we have
where (see Definition 1). Thus, the value of in step 2 of Dec is , where are from line 4 of Enc. For , by definition of we can write . It is clear that
Then we have
The line of 2 of Dec means that decrypt the i-th coefficient of is equal to 1 if the is closer to and as 0 otherwise. It is clear that as long as the decryption succeeds, which concludes the proof of the correctness. □
This part we would give the security proof of our PKE using the hybrid argument. Our scheme is IND-CPA secure if the M-LWE assumption holds. Now for any adversary , we define
Theorem 3
(IND-CPA security). Our PKE is IND-CPA secure, provided that the M-LWE problem is hard. More precisely, if are two distinguishers for M-LWE, then
where is an adversary for the PKE.
Proof.
Now, we prove the theorem under the M-LWE assumption. To argue that an adversary cannot distinguish between the two cases, we rely on the hardness of the decision M-LWE problem and adopt a standard game-based proof framework. Specifically, we consider a sequence of security games, where each game represents an interaction-based security experiment between a challenger and an adversary . For , let denote the event that correctly guesses the challenge bit in Game i, and let denote the distribution induced by Game i.
Game 0. Game 0 is the real game in which the public key is properly generated and the ciphertext is an encryption of . It follows that
Game 1. In this game, we replace the public key by a uniformly random element in . It is given that
Thus, there exists a distinguisher for M-LWE such that
Game 2. In this game, is replaced with uniformly random polynomials in , is replaced with uniformly random polynomial in . is given as follows:
- 1.
- Let .
- 2.
It follows that , where is a distinguisher for M-LWE.
Game 3. In this game, message is replaced with . We have
Obviously,
In conclusion, collecting the probabilities yields the required bound. □
4.4. The CCA-Secure KEM
In this subsection, we construct a CCA-secure KEM Fyber from the proposed PKE scheme using the Fujisaki–Okamoto (FO) transformation [39]. Let be the IND-CPA secure PKE scheme defined in the previous section. The resulting KEM is denoted by .
We describe the KEM algorithms in detail below. Let denote the key space and let , be hash functions modeled as random oracles. The key generation algorithm runs the of PKE to obtain and outputs the same key pair.
- 1.
- Sample a random message .
- 2.
- Compute .
- 3.
- Compute the ciphertext .
- 4.
- Compute the shared key .
- 5.
- Output .
- 1.
- Recover .
- 2.
- If , output ⊥.
- 3.
- Recompute and .
- 4.
- If , output ⊥.
- 5.
- Otherwise, output .
The correctness of the KEM follows directly from the correctness of the underlying PKE scheme. For honestly generated keys and ciphertexts, the decrypted message equals the encapsulated message m, and the recomputed ciphertext matches the original ciphertext c. Consequently, both parties derive the same shared key K except with negligible probability.
The IND-CCA security analysis of the proposed KEM Fyber follows the standard FO transformation and is identical to that of [9], given that the underlying PKE is IND-CPA secure. We present the following theorem and omit the proof.
Theorem 4
(CCA-secure KEM). Assuming that the underlying PKE scheme is IND-CPA secure and that the hash functions and are modeled as random oracles, Flexkyber.KEM is IND-CCA secure.
5. Implementation
In this section, we conduct an analysis of the challenges encountered during the implementation process, provide corresponding solutions, and present a summary of the experimental data in Table 2. Our scheme is implemented in C, with security level and failure rate estimation performed using Python 3.11.9. The computational environment consists of an AMD Ryzen 7 4800H CPU @2.9 GHz and 16 GB RAM, running Ubuntu 22.04 LTS.
Table 2.
Parameter selection and comparison with Kyber.
5.1. Polynomial Multiplication
In lattice-based encryption schemes, polynomial multiplication constitutes the dominant component of the computational cost. While our construction employs non-power-of-two ring dimensions to enable flexible parameter selection, such choices typically preclude the direct use of standard NTT-friendly polynomial rings and may introduce additional computational overhead.
To mitigate this effect and improve practical performance, especially in resource-constrained IoT environments, we adopt an efficient polynomial multiplication strategy inspired by existing implementation-oriented optimizations [40]. The core idea is to embed polynomial multiplication over into a larger convolution-friendly ring , where is chosen as a power of two to enable the use of the Number-Theoretic Transform (NTT).
Specifically, given two polynomials with coefficient bounds and , we select a modulus large enough to avoid modular overflow during intermediate computations, i.e., , and that satisfies to support NTT operations. The polynomials are zero-padded to length N, multiplied using NTT over , and subsequently reduced modulo and q to obtain the final product in . Algorithm 1 summarizes this procedure.
5.2. Public Key and Ciphertext Sizes
For fixed parameters , the public key produced by the PKE scheme is of the form . Here, is a public matrix whose entries are polynomials over . Each polynomial is deterministically generated from an n-bit seed . The vector consists of d polynomials, each having n coefficients represented using bits. Consequently, the size of the public key is
The ciphertext is of the form
where contains d polynomials with n coefficients each, and is a single polynomial with n coefficients. Each coefficient of and v is represented using bits prior to compression. After applying the compression function, the total size of the ciphertext is
| Algorithm 1: Polynomial multiplication |
![]() |
5.3. Decryption Failure Rate of Fyber
We outline the procedure used to evaluate the decryption failure rate. The coefficients of , and follow the MR-BUD distribution, with each coefficient supported on the interval , as illustrated in Figure 1. In addition, by Lemma 1, each coefficient of and lies in the interval . By choosing close to q, the value of can be made sufficiently small. For example, when and , we obtain .
Given the resulting distributions and the concrete parameter choices for , t, and q, the decryption failure rate is evaluated using the script PKE-failure.py, and the corresponding results are reported in Table 2. Furthermore, following the analysis in Theorem 2, the probability distribution of each error-term coefficient can be explicitly derived, enabling an estimation of the concrete failure probability of the scheme. Since these coefficients are discrete and bounded by small values, their distributions can be computed efficiently. Overall, the resulting decryption failure rate, denoted by , is negligible for all parameter sets considered.
5.4. Comparison to Kyber
In this part, we focus on a comparison with the Kyber. The outcomes are displayed in Table 2. The Fyber-576/768/864 parameter sets are chosen to approximately match NIST security categories 1/3/5 under BKZ-based concrete security estimation. Specifically, the parameters are selected such that the estimated cost of the best-known lattice attacks achieves security levels comparable to Kyber-512/768/1024, while enabling finer-grained control of n through non-power-of-two dimensions. We calculate the time complexity of the BKZ algorithm for breaking the scheme to ensure concrete security. The estimation model used for the BKZ algorithm is based on Kyber [9]. When considering the complexity of the SVP oracle (which is called by the BKZ algorithm), we use for classic complexity and for quantum complexity [9], where b represents the block size in the BKZ algorithm. This estimator assumes the standard geometric series assumption (GSA) and the best-known sieving-based SVP algorithms in both classical and quantum models. Although this model does not necessarily reflect the latest improvements in lattice reduction heuristics, it is widely adopted in the literature and provides a consistent baseline for comparing concrete security levels with Kyber.
The choice of module polynomials in Kyber is , where n is a power of 2. However, our PKE selects , where and k and l are positive integers. This decision is based on the fact that the density of chosen values for n in our scheme is higher than in Kyber’s scheme. Additionally, m also takes the form of a power of 2 multiplied by a power of 3. The sparsity of the form is moderate compared to other more general m. Secondly, we provide three sets of parameter selection suggestions: Fyber-576, 768, and 864, corresponding to Kyber’s three parameter sets: Kyber-512, 768, and 1024, respectively.
Figure 2a,b illustrate the public key and ciphertext sizes of Fyber and Kyber under three representative parameter sets, respectively. From the horizontal axis, it can be observed that the coarse granularity between adjacent security levels in Kyber is effectively bridged by our construction. Furthermore, our KEM is well-suited for IoT environments, as it enables more flexible choices of the degree n to accommodate diverse application scenarios, thereby allowing a finer-grained stratification of security levels.
Figure 2.
Comparison of communication overhead.
When comparing Fyber-768 with Kyber-768 under the same product , our scheme achieves a reduction in public key size. Although the ciphertext size increases slightly by approximately ; this overhead is incurred while providing a higher concrete security level. This improvement is mainly attributed to the flexibility of our scheme in selecting a smaller n. Furthermore, we compare Kyber-1024 with Fyber-864, as Kyber-1024 targets the 192-bit quantum security level. At this security level, our scheme achieves a reduction in public key size and a reduction in ciphertext size. This advantage stems from the ability of our parameterization to approach the 192-bit security level more flexibly through a reduced value of n. Overall, our results demonstrate that Fyber effectively fills the security-level gap around the 192-bit setting in Kyber.
5.5. Computational Overhead
Figure 3 reports the median and average cycle counts measured over 1000 executions of key generation, encryption, and decryption for Fyber and Kyber. Compared to Kyber, Fyber incurs a moderate increase in computational cost: encryption requires approximately 73– more cycles, while decryption requires 20– more cycles. This overhead mainly stems from supporting non-power-of-two ring dimensions, which enable finer-grained parameter tuning. Compared with Kyber, Fyber reduces communication overhead at the cost of moderately increased computation, while requiring a comparable implementation memory footprint, as both schemes use similar arithmetic building blocks. All comparisons with Kyber are conducted under comparable NIST security levels.
Figure 3.
Comparison of the running time of KeyGen, Enc and Dec.
Despite this increase, the resulting performance remains practical for IoT-oriented deployments. In IoT and low-power communication settings, bandwidth is often a more critical constraint than computation. Traditional KEMs based on classical number-theoretic assumptions typically exhibit high computational latency but small communication overhead, whereas lattice-based KEMs such as Kyber prioritize high arithmetic efficiency at the cost of larger ciphertexts. Fyber deliberately moves toward the communication efficiency of traditional KEMs by trading a modest amount of computational efficiency for reduced ciphertext size and improved adaptability.
In contrast to Kyber’s coarse-grained parameterization, Fyber supports fine-grained security-level selection through flexible ring dimensions, allowing ciphertext sizes to be tailored to specific security requirements. Overall, Fyber strikes a balanced trade-off between computation and bandwidth, making it well-suited for resource-constrained IoT KEM deployments.
6. Conclusions
In this paper, we proposed a post-quantum key-encapsulation mechanism (KEM) based on the M-LWE assumption over a more flexible class of cyclotomic rings. In contrast to the NIST-standardized KEM Kyber, our construction is instantiated over cyclotomic trinomials of the form , where for positive integers k and ℓ. While Kyber adopts polynomial rings of the form , which enable highly efficient implementations, this choice restricts parameter selection to power-of-two dimensions and results in coarse-grained security levels. As a consequence, achieving intermediate security requirements (e.g., around the 192-bit level) may incur unnecessary bandwidth overhead.
By leveraging more flexible ring dimensions, our scheme enables finer-grained security-level stratification and achieves improved trade-offs between security and bandwidth consumption. In particular, the proposed parameter sets fill the gap between existing standardized security levels while maintaining a low decryption failure rate. To address the technical challenges arising from general cyclotomic rings, we further design a fast polynomial multiplication algorithm and an efficient noise sampling method tailored to the proposed ring structure. Experimental results indicate that the resulting performance remains competitive with Kyber, while offering enhanced parameter adaptability for resource-constrained IoT deployments.
Overall, our work demonstrates that extending M-LWE-based KEMs beyond power-of-two cyclotomic rings is a viable and practical approach for achieving flexible security levels and efficient post-quantum key establishment in heterogeneous IoT environments.
Author Contributions
S.M.: methodology, formal analysis, writing—original draft. S.L.: software. W.W.: software and investigation. X.L.: investigation, writing—review and editing. H.C.: methodology, writing—original draft, supervision, funding acquisition. All authors have read and agreed to the published version of the manuscript.
Funding
This work is supported by BUPT Excellent Ph.D. Students Foundation (Grant Number: CX20241058) and the Fundamental Research Funds for the Central Universities (Grant Number: 3282024048). The authors appreciate Yimin Lu from Tsinghua University for their helpful discussions.
Data Availability Statement
The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding author.
Conflicts of Interest
The authors declare no conflicts of interest.
Appendix A. The Extension of Ducas and Durmus’ Work to M-LWE
In this part, we generalize the results of Ducas and Durmus [36] on R-LWE over general m-th cyclotomic rings to the M-LWE framework, as shown in Theorem A1.
First, we introduce the following basic definitions.
Embeddings of cyclotomic fields. Each the conjugates of (i.e., ) defines an embedding , where . Then the canonical embedding is defined by the direct sum of , so that .
The ring R emdeds under as a lattice. The conjugate dual of this lattice corresponds to the embedding of the dual fractional ideal . The dual of , denoted by , is the fractional ideal , where is the derivative of . For a modulus , we denote , .
The space H. We consider working with the space , defined as
The standard basis of H, which represents elements as complex vectors, is known as the I-basis. The -basis of H, which represents elements as real vectors, is given by the columns of conjugate pair matrix , where
Note that for each and any , we have . Therefore, for an appropriate indexing of , the image H of is the -vector space spanned by the columns of . Put simply, every element can be represented by a vector (in the I-basis) such that . Similarly, the opposite is also true, where
We also refer to the -basis as the canonical basis for H.
Theorem A1 establishes the security foundation for our PKE by demonstrating that breaking the decisional M-LWE problem over the expansion ring is computationally equivalent to solving the Mod-GIVP problem. We note that we sample from a spherical Gaussian distribution in the extension ring , apply the modulo operation to each component individually, and finally round off each coefficient separately. The error distribution on the canonical space H after the mapping remains a spherical Gaussian distribution according to Theorem 5 in [36].
Theorem A1.
Let m be an integer. Integer d is module rank satisfies for some small ε. And prime . is a real number such that . Let be the m-th algbraic integers ring. Let k be positive integers, and is defined in (1), is given in (2). Suppose there is an algorithm that can solve the decisional M- problem; that is, it can distinguish between k uniformly random samples drawn from and k samples , where and are chosen uniformly at random from , and with is distributed as for ; then, there exists a quantum algorithm that solves the Mod-GIVP (with module rank ) with a non-negligible advantage with in polynomial time.
Before formally proving the theorem, we first have the following discussion. The key to prove the correctness of Theorem A1 lies in how to sample the error polynomial from the extension ring of R in such a way that it still has a spherical Gaussian distribution after being mapped back to the canonical space H, which is required for the hardness of M-LWE problem. In the following we analyze the noise distribution and decryption failure rate.
Error distribution. Review the content of Section 3. See Figure A1 for the mapping diagram between the spaces and . The map defined by , is a reduction modulo . We consider H in the -basis, where the matrix from H to is defined as in (A1). When we set the number of M-LWE samples as k, the noise takes on the form , where . It is crucial to ensure that each vector component’s distribution over maps to a spherical Gaussian in the embedding space H. For a general integer m, Ducas and Durmus have demonstrated that ring extension is suitable for error generation in R-LWE (see Theorems 5 in [36]). Specifically, canonical embedding from ring preserves sphericity of Gaussian distributions. Thus, because no operations are performed among the k samples, it follows that the noise distribution remains spherical Gaussian for M-LWE samples.
Figure A1.
Mappings between different spaces [36].
Decision failure rate. We consider a wide range of special sets of integers , so that and . These values of m result in a reduction modulo that has a straightforward and sparse representation when using the power basis. We denote the transformation matrix of on the power basis by B. Specifically, when m is a power of two, B becomes the identity due to the equality of and . In the case where , we can observe that
That means for any element over in the power basis, . As will be shown later in our PKE algorithm, the main form of the error polynomial is , where are distributed according to . The following gives the bound after noise sampling; see [36] for the proof. By Lemma 6 in [36], we have the following result. And we can assert that approaches 1 with an overwhelming probability by selecting .
Lemma A1.
Let integer , be distributed as . Then, , except with probability less than , where .
The following introduces the proof of Theorem A1. We revisit the result (cf. Theorems 3 in [36]), where is defined as in (1). This result is extended to the setting of and the assertion remains valid.
Proof.
In order to prove this theorem, we define different hybrid distributions:
: Output , where , and according to in the embedding space H.
: Output , where , and as in .
: Output , where , as in .
: Output , where , , as in .
: Output , where as in .
: Output , where , as in .
For , we denote by the problem of distinguishing between k M-LWE samples from and given samples from . Recall that problem and are indistinguishable if for any PPT attacker the advantage of solving is negligible; thus . The overall idea is to show that if is hard, then is hard as well.
From to : according to Theorems 9 and 10 in [8], we only scaled the point, thus
From to : by , we have
From to : in , we can uniformly at random sample such that , we also have
From to : since the product already has integer coefficients in the power basis, we round each coefficient of to the nearest integer to be equivalent in order to round each coefficient of in the power basis representation. Thus, we also have
From to : currently, is generated from a distribution in the embedding space H. Obtaining such a distribution is equivalent to sampling the distribution , where each is a random variable with mean 0 and standard deviation that is times smaller than that required in the distribution in the embedding space H. Therefore,
In conclusion,
□
References
- Miraz, M.H.; Ali, M.; Excell, P.S.; Picking, R. A Review on Internet of Things (IoT), Internet of Everything (IoE) and Internet of Nano Things (IoNT). In Proceedings of the Internet Technologies and Applications (ITA); IEEE: New York, NY, USA, 2015; pp. 219–224. [Google Scholar]
- Patel, K.K.; Patel, S.M.; Scholar, P. Internet of things-IOT: Definition, characteristics, architecture, enabling technologies, application & future challenges. Int. J. Eng. Sci. Comput. 2016, 6, 6122–6131. [Google Scholar]
- Panja, S.; Sharifian, S.; Jiang, S.; Safavi-Naini, R. CCA-secure hybrid encryption in correlated randomness model and KEM combiners. arXiv 2024, arXiv:2401.00983. [Google Scholar] [CrossRef] [Scilit]
- Shor, P.W. Algorithms for quantum computation: Discrete logarithms and factoring. In Proceedings of the 35th Annual Symposium on Foundations of Computer Science; IEEE: New York, NY, USA, 1994; pp. 124–134. [Google Scholar]
- Brakerski, Z.; Langlois, A.; Peikert, C.; Regev, O.; Stehlé, D. Classical hardness of learning with errors. In Proceedings of the Forty-Fifth Annual ACM Symposium on Theory of Computing; Association for Computing Machinery: New York, NY, USA, 2013; pp. 575–584. [Google Scholar]
- Peikert, C. Public-key cryptosystems from the worst-case shortest vector problem. In Proceedings of the Forty-First Annual ACM Symposium on Theory of Computing; Association for Computing Machinery: New York, NY, USA, 2009; pp. 333–342. [Google Scholar]
- Lyubashevsky, V.; Peikert, C.; Regev, O. On ideal lattices and learning with errors over rings. In Proceedings of the Advances in Cryptology–EUROCRYPT 2010: 29th Annual International Conference on the Theory and Applications of Cryptographic Techniques, French Riviera, 30 May–3 June 2010; Proceedings 29; Springer: Berlin/Heidelberg, Germany, 2010; pp. 1–23. [Google Scholar]
- Langlois, A.; Stehlé, D. Worst-case to average-case reductions for module lattices. Des. Codes Cryptogr. 2015, 75, 565–599. [Google Scholar] [CrossRef] [Scilit]
- Bos, J.; Ducas, L.; Kiltz, E.; Lepoint, T.; Lyubashevsky, V.; Schanck, J.M.; Schwabe, P.; Seiler, G.; Stehlé, D. CRYSTALS-Kyber: A CCA-secure module-lattice-based KEM. In Proceedings of the 2018 IEEE European Symposium on Security and Privacy (EuroS&P); IEEE: New York, NY, USA, 2018; pp. 353–367. [Google Scholar]
- Alkim, E.; Ducas, L.; Pöppelmann, T.; Schwabe, P. Post-quantum key {Exchange—A} new hope. In Proceedings of the 25th USENIX Security Symposium (USENIX Security 16), Austin, TX, USA, 10–12 August 2016; pp. 327–343. [Google Scholar]
- Lu, X.; Liu, Y.; Zhang, Z.; Jia, D.; Xue, H.; He, J.; Li, B.; Wang, K. LAC: Practical Ring-LWE Based Public-Key Encryption with Byte-Level Modulus. Cryptology ePrint Archive. 2018. Available online: https://eprint.iacr.org/2018/1009 (accessed on 20 February 2026).
- Lyubashevsky, V.; Micciancio, D.; Peikert, C.; Rosen, A. SWIFFT: A modest proposal for FFT hashing. In Proceedings of the Fast Software Encryption: 15th International Workshop, FSE 2008, Lausanne, Switzerland, 10–13 February 2008; Revised Selected Papers 15; Springer: Berlin/Heidelberg, Germany, 2008; pp. 54–72. [Google Scholar]
- Nižetić, S.; Šolić, P.; Gonzalez-De, D.L.d.I.; Patrono, L. Internet of Things (IoT): Opportunities, issues and challenges towards a smart and sustainable future. J. Clean. Prod. 2020, 274, 122877. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Gubbi, J.; Buyya, R.; Marusic, S.; Palaniswami, M. Internet of Things (IoT): A vision, architectural elements, and future directions. Future Gener. Comput. Syst. 2013, 29, 1645–1660. [Google Scholar] [CrossRef] [Scilit]
- Moody, D.; Chen, L.; Liu, M.; Peralta, R.; Perlner, R.; Smith-Tone, D.; Stebila, D.; Alagic, J.; Dodson, D.; Robinson, A.; et al. Report on Post-Quantum Cryptography; Nist interagency or internal report (nist ir 8105); National Institute of Standards and Technology: Gaithersburg, MD, USA, 2016. [Google Scholar]
- Bernstein, D.J.; Chuengsatiansup, C.; Lange, T.; van Vredendaal, C. NTRU prime: Reducing attack surface at low cost. In Proceedings of the Selected Areas in Cryptography–SAC 2017: 24th International Conference, Ottawa, ON, Canada, 16–18 August 2017; Revised Selected Papers 24; Springer: Berlin/Heidelberg, Germany, 2018; pp. 235–260. [Google Scholar]
- Bernstein, D.J.; Lange, T. Non-Randomness of S-Unit Lattices. Cryptology ePrint Archive. 2021. Available online: https://eprint.iacr.org/2021/1428 (accessed on 20 February 2026).
- Campbell, P.; Groves, M.; Shepherd, D. Soliloquy: A Cautionary Tale. Talk/Workshop Document. 2014. Available online: https://docbox.etsi.org/Workshop/2014/201410_CRYPTO/S07_Systems_and_Attacks/S07_Groves.pdf (accessed on 20 February 2026).
- Castryck, W.; Iliashenko, I.; Vercauteren, F. Provably weak instances of Ring-LWE revisited. In Proceedings of the Advances in Cryptology–EUROCRYPT 2016: 35th Annual International Conference on the Theory and Applications of Cryptographic Techniques, Vienna, Austria, 8–12 May 2016; Proceedings, Part I 35; Springer: Berlin/Heidelberg, Germany, 2016; pp. 147–167. [Google Scholar]
- Elias, Y.; Lauter, K.E.; Ozman, E.; Stange, K.E. Provably weak instances of Ring-LWE. In Proceedings of the Advances in Cryptology–CRYPTO 2015: 35th Annual Cryptology Conference, Santa Barbara, CA, USA, 16–20 August 2015; Proceedings, Part I 35; Springer: Berlin/Heidelberg, Germany, 2015; pp. 63–92. [Google Scholar]
- Peikert, C. How (not) to instantiate ring-LWE. In Proceedings of the International Conference on Security and Cryptography for Networks; Springer: Berlin/Heidelberg, Germany, 2016; pp. 411–430. [Google Scholar]
- Hoffstein, J.; Pipher, J.; Silverman, J.H. NTRU: A ring-based public key cryptosystem. In Proceedings of the International Algorithmic Number Theory Symposium; Springer: Berlin/Heidelberg, Germany, 1998; pp. 267–288. [Google Scholar]
- Chen, C.; Danba, O.; Hoffstein, J.; Hülsing, A.; Rijneveld, J.; Schanck, J.M.; Schwabe, P.; Whyte, W.; Zhang, Z.; Zhao, Y.; et al. NTRU-Algorithm Specifications and Supporting Documentation (Round 3 Submission). 2020. Available online: https://csrc.nist.gov/Projects/post-quantum-cryptography/post-quantum-cryptography-standardization/round-3-submissions (accessed on 20 February 2026).
- Bernstein, D.J.; Chuengsatiansup, C.; Lange, T.; van Vredendaal, C. NTRU Prime: Round 2. Submission to the NIST PQC Standardization Process. 2019. Available online: https://cr.yp.to/talks/2019.08.24/slides-djb-20190824-ntruprime-4x3.pdf (accessed on 4 February 2026).
- Atici, A. Power Analysis on NTRU Implementations for RFIDs: First Results. In RFIDSec 2008; 2008; pp. 128–139. Available online: https://www.esat.kuleuven.be/cosic/publications/article-1134.pdf (accessed on 20 February 2026).
- Lee, M.K.; Song, J.E.; Choi, D.; Han, D.G. Countermeasures against power analysis attacks for the NTRU public key cryptosystem. IEICE Trans. Fundam. Electron. Commun. Comput. Sci. 2010, 93, 153–163. [Google Scholar] [CrossRef] [Scilit]
- Kannwischer, M.J.; Rijneveld, J.; Schwabe, P.; Stoffelen, K. pqm4: Testing and Benchmarking NIST PQC on ARM Cortex-M4. Software. 2019. Available online: https://csrc.nist.gov/CSRC/media/Presentations/pqm4-testing-and-benchmarking-nist-pqc-on-arm-cort/images-media/kannwischer-session-9-paper-pqc2019.pdf (accessed on 20 February 2026).
- Bürstinghaus-Steinbach, K.; Krauß, C.; Niederhagen, R.; Schneider, M. Post-quantum tls on embedded systems: Integrating and evaluating kyber and sphincs+ with mbed tls. In Proceedings of the 15th ACM Asia Conference on Computer and Communications Security; Association for Computing Machinery: New York, NY, USA, 2020; pp. 841–852. [Google Scholar]
- Gonzalez, R.; Wiggers, T. KEMTLS vs. post-quantum TLS: Performance on embedded systems. In Proceedings of the International Conference on Security, Privacy, and Applied Cryptography Engineering; Springer: Berlin/Heidelberg, Germany, 2022; pp. 99–117. [Google Scholar]
- Liu, T.; Ramachandran, G.; Jurdak, R. Post-quantum cryptography for internet of things: A survey on performance and optimization. arXiv 2024, arXiv:2401.17538. [Google Scholar] [CrossRef] [Scilit]
- Ehsan, M.A.; Alayed, W.; Rehman, A.U.; Hassan, W.u.; Zeeshan, A. Post-Quantum KEMs for IoT: A Study of Kyber and NTRU. Symmetry 2025, 17, 881. [Google Scholar]
- Khalid, A.; Bian, S.; Wang, C.; O’Neill, M.; Liu, W. AxRLWE: A multilevel approximate ring-LWE co-processor for lightweight IoT applications. IEEE Internet Things J. 2021, 9, 10492–10501. [Google Scholar]
- Kundu, S.; Ghosh, A.; Karmakar, A.; Sen, S.; Verbauwhede, I. Rudraksh: A compact and lightweight post-quantum key-encapsulation mechanism. arXiv 2025, arXiv:2501.13799. [Google Scholar] [CrossRef] [Scilit]
- Shehzadi, S.; Whaley, N.; Khalid, A.; Ghafoor, A.; Arshad, S.; Islam, F.U.; O’Neill, M. Kyber-KEM-Ascon: Benchmarking a Lightweight Post-quantum KEM on IoT Devices. In Proceedings of the 2025 IEEE International Symposium on Circuits and Systems (ISCAS); IEEE: New York, NY, USA, 2025; pp. 1–5. [Google Scholar]
- Rackoff, C.; Simon, D.R. Non-interactive zero-knowledge proof of knowledge and chosen ciphertext attack. In Proceedings of the Annual International Cryptology Conference; Springer: Berlin/Heidelberg, Germany, 1991; pp. 433–444. [Google Scholar]
- Ducas, L.; Durmus, A. Ring-LWE in polynomial rings. In Proceedings of the Public Key Cryptography–PKC 2012: 15th International Conference on Practice and Theory in Public Key Cryptography, Darmstadt, Germany, 21–23 May 2012; Proceedings 15; Springer: Berlin/Heidelberg, Germany, 2012; pp. 34–51. [Google Scholar]
- Bai, S.; Lepoint, T.; Roux-Langlois, A.; Sakzad, A.; Stehlé, D.; Steinfeld, R. Improved security proofs in lattice-based cryptography: Using the Rényi divergence rather than the statistical distance. J. Cryptol. 2018, 31, 610–640. [Google Scholar] [CrossRef] [Scilit]
- Rényi, A. On measures of entropy and information. In Proceedings of the Fourth Berkeley Symposium on Mathematical Statistics and Probability, Volume 1: Contributions to the Theory of Statistics; University of California Press: Berkeley, CA, USA, 1961; Volume 4, pp. 547–562. [Google Scholar]
- Fujisaki, E.; Okamoto, T. Secure integration of asymmetric and symmetric encryption schemes. In Proceedings of the Annual International Cryptology Conference; Springer: Berlin/Heidelberg, Germany, 1999; pp. 537–554. [Google Scholar]
- Alkim, E.; Cheng, D.; Chung, C.M.; Evkan, H.; Wei, L.; Hwang, V.; Li, C.L.; Niederhagen, R.; Shih, C.J.; Wälde, J.; et al. Polynomial Multiplication in NTRU Prime: Comparison of Optimization Strategies on Cortex-M4. IACR Trans. Cryptogr. Hardw. Embed. Syst. 2020, 2021, 217–238. [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. |
© 2026 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.




