4.2. Parameters Versus CKKS Security Levels L
The pair
is the dominant driver of both security and performance in CKKS. Security is based on the hardness of Ring-LWE in the cyclotomic ring
, so
N and
define the underlying lattice dimension and modulus [
6]. In practice, the security level (
L, in bits) is estimated via the cost of the best known lattice attacks (typically BKZ-based), which depends primarily on the ring dimension
N and the modulus-to-noise ratio (captured through
and the error distribution) [
31,
32,
33].
4.2.1. Dependence of Security Level L on N
For RLWE instances with fixed modulus and noise parameters, increasing the polynomial modulus degree N (equivalent to the lattice dimension) increases hardness.
The complexity of the best known attacks (e.g., BKZ with block size
) scales as:
where
itself depends on
N and the ratio
(the standard noise deviation is usually set as
).
Heuristically, for fixed , increasing N increases the required block size , and hence the attack cost.
The implication is that security increases with N, but sublinearly in terms of security bits. For example, doubling N does not double L; instead, it typically yields a moderate increase depending on the modulus size. This behavior is consistent with modern lattice cost models and empirical estimates from tools such as the LWE Estimator.
4.2.2. Dependence of Security Level L on
The modulus q directly affects the distinguishability of RLWE samples.
Increasing
q (for fixed noise standard deviation
) increases the ratio
, making the problem easier. A common heuristic from LWE/RLWE analysis relates the root-Hermite factor to:
which implies that larger
q leads to smaller required
, hence easier lattice reduction.
Since attack cost depends exponentially on lattice reduction quality, one may write:
As a result, security decreases as increases. However, the dependence is not linear; rather, it appears inside a logarithm within an exponential model. Thus, increasing reduces security in a nonlinear and attenuated manner.
4.2.3. Combined Dependence and Practical CKKS Parameter Selection
Combining the above effects yields a commonly used first-order heuristic:
This expression captures the fundamental trade-off:
Increasing N improves security;
Increasing q degrades security;
The relationship is ratio-based and nonlinear.
However, this is only an approximation. In CKKS, the modulus q grows with multiplicative depth, so parameter selection must respect a security budget constraint:
N and cannot be scaled independently;
For a fixed target security level (e.g., 128 bits), increasing requires increasing N.
This explains the structure of parameter tables in implementations such as Microsoft SEAL [
34], where larger
N permits larger total modulus
, but the scaling is sublinear rather than proportional.
For fixed
, increasing
N raises the cost of lattice reduction; for fixed
N, increasing
generally weakens the instance and may require a larger
N to restore the same security level [
6]. The Homomorphic Encryption Standard therefore provides recommended
curves for 80–128-bit security, which we follow when selecting parameter sets [
6].
From a performance perspective, nearly all CKKS operations (NTT/INTT, ciphertext multiplication, key switching, and rotations) scale with
N and with the number of RNS primes in
q [
9,
11,
35]. Larger
N increases latency and memory but also provides more slots (
), improving amortized cost per health record or feature vector. Adding primes to
q increases depth and precision but enlarges ciphertexts and evaluation keys and raises time and memory. Consequently, both
N and
are kept as small as possible while meeting target security and accuracy for the health-management workloads considered.
4.5. Simulation Results and Recommendations
Simulations were conducted for selected parameter pairs
at security levels of 80, 100, 110, 128, 192, and 256 bits. The corresponding results are summarized in
Table 1,
Table 2,
Table 3,
Table 4,
Table 5 and
Table 6, respectively. The parameter sets chosen for the 128-, 192-, and 256-bit security levels follow the recommendations of the Homomorphic Encryption Standard [
6].
4.5.1. The 80-Bit Security
An 80-bit security level, commonly regarded as ultra-lightweight security, corresponds to legacy cryptographic systems such as 1024-bit RSA and Triple DES. It remains relevant in legacy communication infrastructures and resource-constrained embedded devices where lightweight security is sufficient.
For , CRT is slightly faster than Barrett, whereas Barrett achieves significantly lower memory usage. For the remaining parameter sets, CRT substantially outperforms Barrett in execution time, while Barrett consistently requires less memory.
With a fixed security level, e.g., 80 bits, the selection of depends on the requirements of the target application. Further discussion is provided at the end of this section.
4.5.2. The 100 and 110-Bit Security Levels
Security levels of 100 and 110 bits are generally considered lightweight and are suitable for IoT devices, RFID systems, sensor networks, edge computing platforms, and embedded applications.
Even when higher security levels are desired, lower-security configurations are often explored for latency-sensitive applications and intermediate deployment scenarios.
At 100-bit security with , CRT achieves lower execution time but requires more memory. For , CRT is more than twice as fast as Barrett, whereas Barrett reduces memory usage to approximately 95% of that required by CRT. For , CRT is nearly three times faster, while Barrett reduces memory consumption by about 2%.
At 110-bit security, CRT is approximately twice as fast as Barrett for and , although it requires slightly more memory. For , CRT is nearly three times faster, while Barrett reduces memory usage by approximately 1.5%. For (16,384, 550), CRT is about 4.5 times faster, whereas Barrett provides only a marginal memory reduction of roughly 1%.
4.5.3. The 128-Bit Security
A 128-bit security level is widely regarded as the standard baseline for modern cryptographic applications, offering a practical balance between efficiency and long-term protection against classical adversaries.
In CKKS-based homomorphic encryption, 128-bit security is commonly adopted for privacy-preserving machine learning, encrypted database queries, and secure outsourced computation. It is also the default recommendation in standards such as NIST SP 800-57 for protecting sensitive personal, commercial, and institutional data over medium- to long-term periods.
For high-security settings (128 bits or above), large parameter sets such as N = 16,384 with large moduli are generally required. Although both backends incur substantial runtime and memory overhead, CRT consistently achieves lower execution time, whereas Barrett provides slightly lower memory consumption.
4.5.4. The 192-Bit Security
A 192-bit security level is less commonly deployed but is suitable for applications requiring stronger protection against highly capable adversaries or longer data retention periods. Typical use cases include government, defense, and high-assurance-secure communication systems.
In homomorphic encryption and secure multi-party computation, 192-bit security may be preferred when 256-bit security is considered excessively costly, while additional assurance beyond 128-bit security is still desired.
At the 192-bit security level, CRT consistently achieves lower execution time, whereas Barrett provides slightly lower memory usage. For large ring degrees, such as or , the memory advantage of Barrett becomes marginal compared to the substantial runtime advantage of CRT.
4.5.5. The 256-Bit Security
A 256-bit security level targets applications requiring maximum resilience against future threats, including large-scale quantum adversaries and long-term archival attacks. Typical applications include national security systems, critical infrastructure, and highly sensitive financial systems.
In post-quantum and high-assurance cloud-computing applications, 256-bit security provides a conservative security margin for data requiring decades of confidentiality. Although it significantly increases parameter sizes and computational cost in homomorphic encryption systems, such overhead may be justified for highly sensitive long-term data.
At the 256-bit security level, CRT is approximately 2.2–3.4 times faster than Barrett, while Barrett reduces memory usage by roughly 1–2% compared to CRT.
In summary, we acknowledge that the superior performance of the CRT-based method over the Barrett-based method arises primarily from the use of reduced-size moduli obtained via the factorization of q. This decomposition enables computations to be carried out over smaller integers, significantly lowering arithmetic complexity. In addition, the inherent parallelism of the CRT approach—where operations across different moduli are independent—aligns well with modern multi-core architectures, further enhancing performance. This advantage becomes more pronounced for larger values of q, or equivalently, for larger polynomial degrees N that support a larger modulus.
In terms of memory usage, however, the CRT-based method typically incurs higher overhead, as it must maintain multiple residues corresponding to the factorization of q, leading to increased storage and data movement compared to the Barrett-based approach.
4.6. Application Considerations on Selection of
In CKKS, once the target security level is fixed, the polynomial modulus degree N and the total modulus size are primarily driven by circuit depth D, required numerical precision, and the SIMD vector size.
The circuit depth determines the length of the modulus chain: each multiplication (followed by rescaling) consumes one level, so a deeper circuit requires a larger total to accommodate the cumulative modulus drops.
The required precision dictates the size of the scaling factor and the tolerance to noise growth; higher precision necessitates larger intermediate moduli and therefore increases as well.
The vector size (i.e., the number of packed slots) is bounded by , so larger batch sizes require larger N. However, increasing at a fixed security level typically forces an increase in N to maintain hardness of the underlying RLWE instance.
Consequently, D and precision directly inflate , while vector size directly sets a lower bound on N; together they interact so that more demanding depth or precision indirectly pushes N upward to preserve the desired security level. Two practical workload patterns require special attention:
Increasing N increases the number of CKKS slots and thus the batch size. For throughput-oriented workloads (e.g., batched inference), larger N (8192 or 16,384) is recommended even at lower security levels. CRT is preferable when minimizing latency per batch is critical; Barrett becomes attractive when many batches run concurrently, and aggregate memory usage limits the number of parallel sessions.
Increasing allows larger scaling factors and higher fixed-point precision, but increases runtime and memory. For high-precision workloads (e.g., finance or scientific computing), medium-to-large moduli (220–260 at , or 300–350 at N = 16,384) are recommended. In these cases, CRT should be chosen when speed is paramount, while Barrett offers a memory-optimized alternative when infrastructure cost or device RAM is the bottleneck.
Our results suggest the following criteria for choosing between CRT and Barrett for practical users:
For memory-constrained IoT devices with limited RAM and moderate security requirements (e.g., 80-bit security), Barrett is preferable due to its lower memory usage, even though it may be slower.
For cloud servers or high-performance environments requiring high security (e.g., 128-bit or above), CRT is preferable because it provides significantly better time efficiency at these security levels, and memory is less constrained.
For applications where both memory and time are critical, the choice depends on the target security level: Barrett is competitive at low-to-moderate security, while CRT becomes more advantageous as security level increases.
The above guidelines can also be summarized into a table as shown in
Table 7.