Preprint
Article

This version is not peer-reviewed.

D-HPPK KEM: A Defactorized Homomorphic Polynomial Public Key Encapsulation Mechanism for IND-CCA2 Security

A peer-reviewed version of this preprint was published in:
Journal of Cybersecurity and Privacy 2026, 6(5), 173. https://doi.org/10.3390/jcp6050173

Submitted:

28 September 2026

Posted:

30 September 2026

You are already at the latest version

Abstract
We present the Defactorized Homomorphic Polynomial Public Key (D-HPPK) Encapsulation Mechanism, a post-quantum KEM whose security rests on exhaustive-search problems with efficient verification for both attack paths. We adopt the NIST search-based convention, under which a primitive is assigned security level l when the adversary's best-known attack requires exhaustive search over 2l candidates with efficient verification, exactly as AES-128, AES-192, and AES-256 are assigned NIST Levels I, III, and V. For D-HPPK, both attack paths—long-term key recovery and ephemeral-secret recovery—are exhaustive searches over spaces of size 2l with polynomial-time verification. The long-term key-recovery path reduces to the Hidden Modulus Product Problem (HMPP), and the ephemeral-secret recovery path reduces to the scheme-induced Message Recovery Problem (MRP). The scheme uses a three-layer architecture of additive random masking and hidden-ring embeddings. The hidden-ring moduli and multipliers block the public-constraint attack; the random masking destroys the rank-2 algebraic regularity of the unmasked coefficient matrices, forcing the adversary into HMPP. Both attack paths have best-known classical cost O(2l⋅poly⁡(L)). The IND-CCA2 proof uses a double-encryption consistency check with a five-class rejection set, together with a small number of explicitly stated hardness assumptions; the adaptive form of the decryption-collision property is derived through Structured D-HMPP. A unified parameter set (n=2,m=3,l=⌈log2⁡p⌉) supports a single implementation across security levels. At Level V (l=256), D-HPPK achieves a 1234-byte public key and a 392-byte CCA2 ciphertext—21% smaller public keys and 75\% smaller ciphertexts than ML-KEM-1024—without SIMD or NTT acceleration.
Keywords: 
;  ;  ;  ;  ;  ;  ;  ;  ;  ;  ;  

1. Introduction

The Homomorphic Polynomial Public Key (HPPK) cryptosystem, introduced by Kuang and Perepechaenko in 2023 [1], evolved from the earlier Multivariate Polynomial Public Key (MPPK) framework [2]. Its construction relies on two private univariate polynomials f ( x ) , h ( x ) ∈ F p [ x ] , which generate product polynomials
p ( x , u ) = f ( x ) B ( x , u ) , q ( x , u ) = h ( x ) B ( x , u ) ,
where B ( x , u ) is an ephemeral multivariate polynomial. The system preserves the homomorphic ratio
f ( x ) h ( x ) ≡ p ( x , u ) q ( x , u ) ( mod p ) ,
with security originally derived from arithmetic permutations of coefficient vectors induced by two large hidden rings.

1.1. Motivation and the D-HPPK Approach

The history of multivariate cryptography is marked by a recurring pattern: elegant constructions are proposed, later found to harbor algebraic regularities, and then patched or replaced [3,4,5,6]. Rainbow, for instance, advanced to the NIST PQC finalists before a devastating attack exploited its hidden field structure [7,8].
The original HPPK construction offered compact keys and efficient operations, leveraging hidden-ring permutations to conceal its polynomial factorization. However, Johnson [9] has shown that the hidden-ring embedding itself is vulnerable to a polynomial-time key-recovery attack, the Lattice Reconstitution Attack (LRA). The public key has the form P ^ i j ≡ P i j · r ( mod t ) , where a single scalar multiplier r is applied to all coefficients and t is a hidden modulus larger than the coefficients. An attacker can build a discriminator matrix from Bézout coefficients of pairs of public coefficients; row reduction and LLL lattice reduction then recover the hidden modulus t and hence the full secret key in O ( ( log p ) 3 ) classical time and O ( log p ) memory, with deterministic success. The attack exploits the combined structure of the single scalar multiplier and the low-rank factorization of the unmasked coefficient matrices, rather than the rank of the coefficients alone. The LRA invalidates the security assumptions of the original HPPK KEM.
To defend against the LRA and the algebraic-regularity attack more generally, we introduce the Defactorized HPPK (D-HPPK) KEM, which combines additive random masking with hidden-ring embeddings in a three-layer conjugated architecture. The random masking is applied before embedding into the hidden rings. The published coefficients become P ^ i j ≡ ( P i j ( 0 ) + c i ( p ) d j ( mod p ) ) R 1 ( mod S 1 ) , where the rank-one perturbation c i ( p ) d j destroys the rank-two structure of P ( 0 ) and removes the low-dimensional structure on which the LRA depends. A linear constraint δ ( u ) = d ⊤ u = 0 ensures that the masking cancels exactly during decryption, restoring the homomorphic ratio invariant. Critically, this cancellation is enforced inside the hidden rings, so the adversary cannot evaluate the condition without knowledge of the secret moduli. The result is a pair of complementary mechanisms: the hidden rings block the public-constraint attack, and the random masking blocks the algebraic-regularity attack. An adversary is forced into the generic HMPP problem analyzed in Section 4.5, and the decryption-safety properties required for the CCA reduction are established in Section 4.4.
We emphasize that the masking provides a single barrier against the algebraic-regularity attack, not a second exponential barrier after HMPP. Once the hidden rings are broken, the factorization recovery is polynomial in L. This drives the equal-cost structure discussed next.

1.2. Security Model and Search-Based Framework

D-HPPK grounds security in five hardness assumptions, stated formally in Section 4.3.
Long-term key recovery. Reduces to the Hidden Modulus Product Problem (HMPP): recover the hidden modulus S and multiplier R from the public samples A i ≡ R a ˜ i ( mod S ) . Once HMPP is broken, the factorization structure of the masked coefficient matrices is recoverable in polynomial time via projection onto the public subspace d ⊥ . Best-known classical cost: O ( 2 l · poly ( L ) ) .
Ephemeral secret recovery. Is the Message Recovery Problem (MRP), in two forms. The single-ciphertext form MRP 1 defines the hardness of the base PKE: given PK and C = Enc ( PK , x ; u ) , recover x. The double-ciphertext form MRP 2 matches the KEM challenge: given PK and ( C ( 1 ) , C ( 2 ) ) both encrypting the same x under independent randomness, recover x. Best-known attack on both: O ( 2 l · L 2 ) .
Decryption safety. Is the scheme-induced pairwise decryption-collision resistance assumption: for every fixed ciphertext pair C ( 1 ) ≠ C ( 2 ) outside the rejection set, the two decryptions collide with probability at most 1 / p + negl ( λ ) over the secret key. This is a companion to MRP 2 : where MRP 2 excludes recovery of x * from the challenge pair, the collision assumption excludes oracle leakage through malformed queries. Marginal uniformity of each decryption output is proved from the hidden-ring modular reduction (Lemmas 1 and 2); the joint near-independence of two outputs is assumed and is the genuinely two-dimensional statement not proved here (Assumption 5). The adaptive version is derived through Structured D-HMPP (Lemma 3).
Search-based security convention. We adopt the same framework NIST uses for AES: a primitive is assigned security level l when the best-known attack requires exhaustive search over a space of size 2 l with efficient verification, and no structural attack reduces the search space. This is a definitional level assignment, not a theorem. The same convention applies to D-HPPK: both attack paths are exhaustive searches over 2 l candidates with polynomial-time verification, giving security level l and NIST categories l = 128 , 192 , 256 for Levels I, III, and V. D-HPPK is therefore a search-based cryptosystem in the sense of Merkle’s puzzles [10] and AES. The cryptanalysis in Section 4 supports the level assignment by surveying known attack families on HMPP and MRP and finding none that reduces the search space.

1.3. Contributions

  • Two-barrier security architecture. We separate the public-constraint attack (blocked by hidden rings) from the algebraic-regularity attack (blocked by masking), and show that neither mechanism subsumes the other.
  • Key-recovery analysis. Stage 2 of the key-recovery attack is polynomial-time after HMPP, giving a best-known classical cost of O ( 2 l · poly ( L ) ) , matching the ephemeral-secret recovery cost.
  • Five hardness assumptions with a reduced decryption-safety property. Marginal statistical uniformity of the decryption output is proved from the hidden-ring modular reduction; pairwise collision resistance is stated as a scheme-induced assumption with a companion role to MRP 2 , and its adaptive form is derived through Structured D-HMPP. The IND-CCA2 proof rests on the conjunction of four of the five assumptions.
  • IND-CCA2 security via double encryption with a strengthened consistency check. A union bound over both attack paths, with a five-class rejection set for correlated adversarial ciphertexts, a simulation argument justifying the game-level restriction, and the random-oracle advantage bound quantified.
  • Compact parameterization and algorithmic simplicity. Unified parameter set ( n = 2 , m = 3 , l = ⌈ log 2 p ⌉ ) across security levels. At l = 256 , D-HPPK achieves a 1234-byte public key and a 392-byte CCA2 ciphertext — 21% and 75% smaller than ML-KEM-1024 — without SIMD or NTT acceleration.
Scope and limitations. The security analysis is in the classical random oracle model; a quantum random-oracle proof is left for future work. The five assumptions are new problems or scheme-induced assumptions; the analysis reports best-known attacks and invites further cryptanalysis. The current reference implementation is not constant-time. These limitations are addressed explicitly in Section 4 and Section 5.

3. The Defactorized HPPK KEM Scheme

This section presents the complete construction of the Defactorized Homomorphic Polynomial Public Key (D-HPPK) Key Encapsulation Mechanism. The scheme employs a layered security architecture that combines additive random masking (over F p ) with hidden ring embeddings.
We present the core mathematical objects and key generation (Section 3.1Section 3.2), then define a base Public Key Encryption (PKE) scheme (Section 3.3), and finally obtain an IND-CCA2-secure KEM via a double-encryption construction with a consistency check (Section 3.4).

3.1. Core Mathematical Objects and Notation

All operations are defined over a large prime field F p with prime modulus p of bit-length l, i.e. 2 l − 1 ≤ p < 2 l , or equivalently l = ⌈ log 2 p ⌉ . Where only leading-order behavior matters, we write l and log 2 p interchangeably, since the two differ by at most 1.
Two secret hidden-ring moduli S 1 , S 2 of bit-length L = 2 l + 8 and two secret multipliers R 1 , R 2 are used. The moduli satisfy S 1 , S 2 > 9 p 2 , and the multipliers are sampled uniformly from Z S 1 * and Z S 2 * . The bound S i > 9 p 2 is required for correct decryption (Section 3.3), and the choice L = 2 l + 8 satisfies it for all relevant l, since 2 2 l + 8 = 256 · 2 2 l > 9 p 2 whenever l ≥ 1 . The moduli may be prime or composite; prime moduli simplify implementation, while composite moduli give faster key generation. The inverses R 1 − 1 mod S 1 and R 2 − 1 mod S 2 are computed at key generation.
The following objects form the mathematical foundation:
  • Secret polynomials:  f ( x ) = f 1 x + f 0 ∈ F p [ x ] and h ( x ) = h 1 x + h 0 ∈ F p [ x ] .
  • Ephemeral random polynomial: A random multivariate polynomial
    B ( x , u ) = ∑ j = 1 m ∑ i = 0 n b b i j x i u j
    with coefficients { b i j } ← $ F p . It is multilinear in u . For the default n b = 1 , it is bilinear in ( x , u ) .
  • Total degree:  p ( x , u ) = f ( x ) B ( x , u ) and q ( x , u ) = h ( x ) B ( x , u ) have degree n = 1 + n b . We set n b = 1 , giving n = 2 .
  • Core secret: The rational function Φ ( x ) = f ( x ) / h ( x ) ( mod p ) , invariant under all transformations.
Notation conventions throughout: elements in F p are lowercase letters; matrices in F p are bold lowercase; integer lifts to [ 0 , p − 1 ] carry a tilde; elements in the hidden rings Z S i carry a hat; ( · mod p ) returns an integer in [ 0 , p − 1 ] and ( · mod S i ) returns an integer in [ 0 , S i − 1 ] .

3.2. Key Generation

The key generation algorithm KeyGen ( ) produces a public key PK and a private key SK through three sequential transformations, as illustrated in Figure 1.
Transformation 1: Division Invariant (Embedding). Compute the product polynomials p ( 0 ) ( x , u ) = f ( x ) B ( x , u ) and q ( 0 ) ( x , u ) = h ( x ) B ( x , u ) . Their coefficients form matrices P ( 0 ) , Q ( 0 ) ∈ F p ( n + 1 ) × m . By construction,
Φ ( x ) ≡ p ( 0 ) ( x , u ) q ( 0 ) ( x , u ) ( mod p ) for any u .
Transformation 2: Addition Invariant (Random Masking). Generate random ephemeral masking vectors c ( p ) , c ( q ) ∈ F p n + 1 and a public persistent constraint vector d ∈ F p m with d m = 1 . Define rank-1 masking matrices M ( p ) = c ( p ) ⊗ d and M ( q ) = c ( q ) ⊗ d , and compute
p ′ = p ( 0 ) + M ( p ) ( mod p ) , q ′ = q ( 0 ) + M ( q ) ( mod p ) .
Denote the elements of p ′ and q ′ as p i j ′ and q i j ′ ∈ F p . Define the constraint δ ( u ) = d ⊤ u . The masking terms cancel when δ ( u ) ≡ 0 ( mod p ) because
∑ i = 0 n ∑ j = 1 m c i ( p ) d j x i u j = ∑ i = 0 n c i ( p ) x i δ ( u ) .
Thus the invariant holds:
Φ ( x ) ≡ p ′ ( x , u ) q ′ ( x , u ) ( mod p ) when δ ( u ) = 0 ( mod p ) ,
where p ′ ( x , u ) = ∑ i , j p i j ′ x i u j and q ′ ( x , u ) = ∑ i , j q i j ′ x i u j .
Transformation 3: Multiplication Invariant (Embedding into Hidden Rings). Embed the masked coefficients p i j ′ , q i j ′ ∈ F p into the hidden rings by multiplying by the secret multipliers R 1 , R 2 and reducing modulo the secret moduli S 1 , S 2 :
P ^ i j ≡ p i j ′ · R 1 ( mod S 1 ) , Q ^ i j ≡ q i j ′ · R 2 ( mod S 2 ) .
Key Pair. The following intermediate values are permanently discarded: the ephemeral masking vectors c ( p ) , c ( q ) ; all basis polynomial coefficients { b i j } ; and the intermediate matrices P ( 0 ) , Q ( 0 ) , p ′ , q ′ . Only the final values are retained:
PK = { P ^ i j , Q ^ i j } i = 0 , 1 , 2 ; j = 1 , … , m , { d j } j = 1 , … , m − 1 , SK = f 0 , f 1 , h 0 , h 1 , S 1 , S 2 , R 1 − 1 mod S 1 , R 2 − 1 mod S 2 .
The public key contains the masked coefficients as integers modulo the hidden moduli. The secret key holds the original polynomials, the hidden moduli, and the inverses of the multipliers.

3.3. Base Public Key Encryption Scheme

The base PKE scheme encrypts a message x ∈ F p using a random noise vector u chosen from the kernel of the public constraint δ ( u ) = 0 . The ciphertext consists of two integers c p and c q , computed as ordinary integer weighted sums of the public hidden-ring coefficients P ^ i j and Q ^ i j , evaluated at the field values x i u j . The encrypter does not know the secret moduli S 1 , S 2 ; thus the ciphertext is not reduced modulo these values and is typically much larger than S 1 or S 2 . An adversary cannot simply reduce the ciphertext modulo p to recover the underlying field equation because the large S 1 -scaled terms do not vanish without knowledge of the secret moduli, thereby blocking the fatal public-constraint attack.
Decryption recovers the masked field values by first reducing the ciphertext modulo S 1 and S 2 , then unwrapping the hidden rings using the secret multipliers and moduli. The ratio of the recovered field values yields the invariant Φ ( x ) = f ( x ) / h ( x ) ( mod p ) , from which x is uniquely recovered.
Encryption Enc ( PK , x ; u ) . Given a message x ∈ F p and randomness u = ( u 1 , … , u m ) ∈ F p m satisfying δ ( u ) = 0 , compute the integer values
c p = ∑ i = 0 n ∑ j = 1 m P ^ i j x i × u j ( mod p ) , c q = ∑ i = 0 n ∑ j = 1 m Q ^ i j x i × u j ( mod p ) ,
where each product ( x i mod p ) ( u j mod p ) is reduced modulo p to an integer in [ 0 , p − 1 ] , and the outer multiplication by P ^ i j is performed over the integers. Since P ^ i j ∈ [ 0 , S 1 − 1 ] and each reduced product lies in [ 0 , p − 1 ] , every term of the sum lies in [ 0 , ( S 1 − 1 ) ( p − 1 ) ] , and the ciphertext component satisfies
c p ≤ ( n + 1 ) m ( S 1 − 1 ) ( p − 1 ) < ( n + 1 ) m p S 1 ,
and similarly c q < ( n + 1 ) m p S 2 . For the default parameters n = 2 , m = 3 , this gives c p < 9 p S 1 and c q < 9 p S 2 . Output C = ( c p , c q ) .
Decryption Dec ( SK , C ) . Given a ciphertext C = ( c p , c q ) :
1.
Compute a = R 1 − 1 · ( c p mod S 1 ) mod S 1 and b = R 2 − 1 · ( c q mod S 2 ) mod S 2 .
2.
Compute k = a / b ( mod p ) . If b mod p ≡ 0 ( mod p ) , output ⊥.
3.
Solve for x from k = ( f 1 x + f 0 ) / ( h 1 x + h 0 ) ( mod p ) . If the denominator is zero, output ⊥.
4.
Output the recovered x.
Correctness. Correctness follows directly from the invariant (5): for honestly generated ciphertext with δ ( u ) = 0 ( mod p ) , decryption recovers p ′ ( x , u ) / q ′ ( x , u ) ≡ Φ ( x ) ( mod p ) , and the Möbius transformation Φ ( x ) is uniquely invertible. The scheme specifies that key generation rejects degenerate polynomial pairs satisfying f 1 h 0 − f 0 h 1 = 0 , which occurs with probability at most 1 / p . The reference implementation does not perform this check, because the probability is below 2 − 128 at Level I.

3.4. Key Encapsulation Mechanism via Double Encryption with Consistency Check

We construct a KEM using a double-encryption transform illustrated in Figure 2. The same ephemeral secret x is encapsulated twice under independent randomness, and decapsulation accepts only if the two decrypted values coincide. We prove its IND-CCA2 security in the classical random oracle model, conditional on Assumptions 1, 3, 4, and 5 (Theorem 3). The security proof models the hash function H as a random oracle. The construction is related to generic KEM transformations [31,34], but our proof is specific to the properties of the D-HPPK base PKE. We explain at the end of this subsection why the standard Fujisaki–Okamoto transform does not apply to D-HPPK.
Let H : { 0 , 1 } * → { 0 , 1 } ℓ be a hash function modeled as a random oracle.
Encapsulation KEM . Encaps ( PK ) .
1.
Sample x ← $ F p .
2.
Sample two independent noise vectors u ( 1 ) , u ( 2 ) ← $ { u ∈ F p m : δ ( u ) = 0 ( mod p ) } .
3.
Compute C ( 1 ) = Enc ( PK , x ; u ( 1 ) ) and C ( 2 ) = Enc ( PK , x ; u ( 2 ) ) .
4.
Set C = ( C ( 1 ) , C ( 2 ) ) and K = H ( x ‖ C ( 1 ) ‖ C ( 2 ) ) .
5.
Output ( K , C ) .
Decapsulation KEM . Decaps ( SK , C ) .
1.
Parse C = ( C ( 1 ) , C ( 2 ) ) .
2.
Reject if C ( 1 ) = C ( 2 ) (Class 1).
3.
Reject if c p ( 1 ) ≡ c p ( 2 ) ( mod S 1 ) and c q ( 1 ) ≡ c q ( 2 ) ( mod S 2 ) simultaneously (Class 2).
4.
Reject if C ( 2 ) = λ C ( 1 ) or C ( 1 ) = λ C ( 2 ) for some integer λ (Class 3).
5.
Reject if either component of C equals, or is an integer scalar multiple of, the corresponding challenge component (Class 4).
6.
Reject if gcd ( c p ( 1 ) , S 1 ) ≠ 1 , gcd ( c p ( 2 ) , S 1 ) ≠ 1 , gcd ( c q ( 1 ) , S 2 ) ≠ 1 , or gcd ( c q ( 2 ) , S 2 ) ≠ 1 (Class 5).
7.
Recover x 1 = Dec ( SK , C ( 1 ) ) and x 2 = Dec ( SK , C ( 2 ) ) .
8.
If either decryption returns ⊥ or x 1 ≠ x 2 , output ⊥.
9.
Otherwise output K = H ( x 1 ‖ C ( 1 ) ‖ C ( 2 ) ) .
The rejection classes are analysed in Section 4.8. Classes 1 and 3 are testable from the ciphertext alone. Classes 2 and 5 are secret-dependent and are evaluated using the hidden moduli before the main decryption computation. Class 4 is enforced by the IND-CCA2 game rather than by the decapsulation algorithm. In particular, Class 3 closes the integer-scalar-multiple collision channel that would otherwise allow an adversary to obtain a collision with non-negligible probability; Class 5 excludes the degenerate case in which one or both ciphertext components share a factor with the hidden modulus, which would otherwise allow a deterministic collision. The hidden moduli S 1 , S 2 make residue-preserving shifts (Class 2) infeasible to construct without solving HMPP, and the enlarged rejection set therefore leaves only queries whose decryption outputs collide with probability at most 1 / p + negl ( λ ) .
Applicability of the Fujisaki–Okamoto transform. The FO transform [29,30] requires that decapsulation be able to reproduce the encryption of the recovered message using only public information. For D-HPPK this fails: the base PKE encrypts x using an ephemeral u sampled from the kernel of δ , and u is discarded. Decapsulation recovers x but not u , so the re-encryption step cannot be executed. Two standard workarounds exist, and both have drawbacks. Derandomizing the encryption (replacing u with a deterministic function of x) makes re-encryption well-defined but changes the base PKE and invalidates the current MRP 1 analysis. Including u in the ciphertext increases the size by at least m log 2 p bits (384 bits at l = 256 ), making the FO ciphertext larger than the double-encryption construction. We therefore adopt the double-encryption construction, which avoids both workarounds at the cost of a 2 × ciphertext and a 2 × workload.
Table 1 compares the two approaches. The double-encryption construction is the correct choice given the current base PKE. If a future revision derandomizes the encryption and proves the base PKE remains MRP 1 -hard, the FO transform would halve the ciphertext size. We note this as a direction for future work.

4. Security Analysis of D-HPPK KEM

The security of D-HPPK rests on five assumptions: HMPP (Assumption 1), D-HMPP (Assumption 2), Structured D-HMPP (Assumption 3), MRP in its two forms (Assumption 4), and pairwise decryption-collision resistance (Assumption 5). The security framework is stated in Section 1.2. The technical content of this section is: (i) the search-problem framework (Section 4.1); (ii) the formal games (Section 4.2); (iii) the five assumptions (Section 4.3); (iv) the decryption-safety analysis (Section 4.4); (v) the cryptanalysis of HMPP and MRP (Section 4.5, Section 4.6); (vi) the two-phase key-recovery analysis (Section 4.7); (vii) the rejection set and the IND-CCA2 proof (Section 4.8, Section 4.9); and (viii) the concrete parameters and open problems.

4.1. Search Problems with Efficient Verification

We formalize the security framework in a form that applies to both problems underlying D-HPPK. The notion is standard: it is the framework NIST uses to assign security categories to AES and the framework underlying Merkle’s puzzles [10].
Definition 1 
(Search problem with efficient verification). A search problem with efficient verification is a pair ( X , V ) where
1.
X is a finite search space of size | X | = 2 l ;
2.
V : X × I → { 0 , 1 } is a verification predicate , computable in time poly ( L ) for a public parameter L;
3.
a distribution D over instances such that, for I ← D , the set { x ∈ X : V ( x , I ) = 1 } is non-empty with overwhelming probability.
The enumeration-verification attack on ( X , V ) enumerates every x ∈ X , evaluates V ( x , I ) , and returns the first x with V ( x , I ) = 1 . Its cost is O ( 2 l · poly ( L ) ) .
Every search problem with efficient verification has a two-phase structure: a non-deterministic guess phase and a deterministic verification phase. This is the same structure as AES key search in the known-ciphertext setting: the guess is a candidate key k ∈ { 0 , 1 } 128 , and the verification decrypts the public ciphertext under k and checks whether the result is a recognizable plaintext.
Both problems underlying D-HPPK are instances of Definition 1, each with the same two-phase structure. The HMPP instance is verified in Proposition 1 (Section 4.5); the MRP instances are verified in Proposition 4 (Section 4.6). Both share the 2 l search-space size and polynomial-time verification, which is why the IND-CCA2 proof must cover both paths via the union bound of Theorem 3.
Figure 3 summarizes the dependency structure. Path A (ephemeral-secret recovery) requires solving MRP 2 , decomposing into a non-deterministic search over x ∈ F p and a deterministic integer verification at cost O ( L 2 ) per candidate, for total cost O ( 2 l · L 2 ) . Path B (long-term key recovery) requires solving HMPP (Theorem 2) followed by the polynomial-time Stage 2 projection onto d ⊥ , for cost O ( 2 l · poly ( L ) ) . Structured D-HMPP underpins the adaptive reduction of the pairwise collision assumption (Lemma 3). The collision assumption itself bounds the collision probability of the fixed-pair oracle queries. Paths A and B are subsumed by the union bound of Theorem 3.

4.2. Security Model

We formalize the message-recovery games for the base PKE (single-ciphertext, MRP 1 ; double-ciphertext, MRP 2 ) and the standard IND-CCA2 game for the KEM. The parameter set is ( n , m , p ) with l = ⌈ log 2 p ⌉ , n = 2 , m = 3 , and L = 2 l + 8 .
Definition 2 
(Single-ciphertext message-recovery game Game MR 1 ). The challenger runs ( PK , SK ) ← KeyGen ( 1 λ ) , samples x * ← $ F p and u * ← $ { v ∈ F p m : δ ( v ) = 0 } , computes C * = ( c p * , c q * ) ← Enc ( PK , x * ; u * ) , and sends ( PK , C * ) to A . The adversary A wins iff it outputs x ^ = x * . The advantage is Adv PKE , A mr 1 ( λ ) = Pr [ x ^ = x * ] .
Definition 3 
(Double-ciphertext message-recovery game Game MR 2 ). Same as Game MR 1 except the challenger samples two independent noise vectors u * , ( 1 ) , u * , ( 2 ) , computes C ( i ) * = Enc ( PK , x * ; u * , ( i ) ) for i = 1 , 2 , and sends ( PK , C ( 1 ) * , C ( 2 ) * ) to A . The advantage is Adv PKE , A mr 2 ( λ ) = Pr [ x ^ = x * ] .
Definition 4 
(IND-CCA2 game Game IND - CCA 2 ). The challenger runs ( PK , SK ) ← KeyGen ( 1 λ ) and gives PK to A , who may query Decaps ( SK , · ) adaptively. A outputs a challenge request; the challenger samples x * ← $ F p and u * , ( 1 ) , u * , ( 2 ) , computes C ( i ) * = Enc ( PK , x * ; u * , ( i ) ) , sets C * = ( C ( 1 ) * , C ( 2 ) * ) , K 0 = H ( x * ∥ C * ) , samples K 1 ← $ { 0 , 1 } ℓ , and sends ( C * , K b ) for b ← $ { 0 , 1 } . A may continue querying Decaps subject to the rejection set R of Section 4.8, and wins iff b ^ = b . The advantage is Adv KEM , A ind - cca 2 ( λ ) = | Pr [ b ^ = b ] − 1 2 | .

4.3. Hardness Assumptions

The following five assumptions are the foundation of the security analysis.
Assumption 1 
(HMPP hardness). For every PPT adversary B ,
Adv B hmpp ( λ ) = Pr ( A 1 , … , A t ) ← D HMPP ( 1 λ ) ; y ^ ← B ( A 1 , … , A t ) : y ^ = ( S , R ) ≤ negl ( λ ) .
Assumption 2 
(Decisional HMPP). For every PPT adversary B ,
Pr B ( A 1 , … , A t ) = 1 − Pr B ( U 1 , … , U t ) = 1 ≤ negl ( λ ) ,
where ( A 1 , … , A t ) ← D HMPP ( 1 λ ) and ( U 1 , … , U t ) ← $ ( Z S * ) t .
Assumption 3 
(Structured D-HMPP). For every PPT adversary B ,
Pr B ( PK ) = 1 − Pr B ( PK ideal ) = 1 ≤ negl ( λ ) ,
where PK is generated by KeyGen ( 1 λ ) and PK ideal replaces the masked public coefficients ( P ^ i j , Q ^ i j ) by independent uniform elements of Z S 1 * and Z S 2 * , with the constraint vector d and all public structure preserved.
On the relationship between HMPP, D-HMPP, and Structured D-HMPP. The standalone D-HMPP of Assumption 2 applies to samples A i ≡ R a ˜ i ( mod S ) with independent uniform a ˜ i . The D-HPPK public key, however, exposes structured masked coefficients p i j ′ = p i j ( 0 ) + c i ( p ) d j whose joint distribution is determined by the hidden polynomial structure of p ( 0 ) and the rank-one masking. Structured D-HMPP (Assumption 3) is the form actually invoked in the adaptive reduction of Lemma 3; the standalone form of Assumption 2 is used only in the cryptanalysis of Section 4.5 and is a weaker requirement. We state both separately so the reduction does not rely on an implicit extension. Structured D-HMPP is the standard pseudorandomness assumption used in the analysis of ACD-style and hidden-modulus schemes [35,36,40]. The D-HPPK security claim rests on the conjunction of all five assumptions.
On the structured D-HMPP distribution. The masking is designed so that the structured coefficients do not leak the low-dimensional structure of p ( 0 ) : the Bézout-combination attack family of Section 4.5.4 shows that the LRA, which breaks the unmasked construction, does not apply to the masked coefficients. Structured D-HMPP asserts that, in addition to not revealing p ( 0 ) , the structured coefficients are computationally indistinguishable from independent uniform units of the hidden rings. This is the property required by the hybrid argument of Lemma 3.
Assumption 4 
(MRP hardness). For every PPT adversary B ,
Adv B mrp ( λ ) = max Adv B mr 1 ( λ ) , Adv B mr 2 ( λ ) ≤ 1 p + negl ( λ ) .
On the nature of MRP. MRP is the scheme-induced search problem whose distribution is generated by D-HPPK KeyGen and Enc. By Proposition 4, both formulations are search problems with efficient verification on X = F p of size 2 l . The best-known analyzed attack on MRP 2 is identical to that on MRP 1 up to a constant factor: enumerate x ∈ F p , solve the linear system for each component’s noise vector, and verify both integer ciphertext identities. We state MRP as an assumption rather than deriving it from a well-studied problem, because no such derivation is currently known. MRP 2 is the form actually used by the KEM proof; MRP 1 is stated for completeness.
Assumption 5 
(Pairwise decryption-collision resistance). For every fixed ciphertext pair C ( 1 ) ≠ C ( 2 ) , over the secret-key randomness ( S 1 , R 1 , S 2 , R 2 ) ,
Pr ( C ( 1 ) , C ( 2 ) ) ∉ R ∧ Dec ( SK , C ( 1 ) ) = Dec ( SK , C ( 2 ) ) ≤ 1 p + negl ( λ ) ,
except for pairs ( C ( 1 ) , C ( 2 ) ) generated as two honest encryptions of the same plaintext under Enc .
On the nature of Assumption 5. The assumption is stated in joint form: the probability that a fixed ciphertext pair is both admissible (outside R ) and colliding is at most 1 / p + negl ( λ ) . This avoids a conditioning subtlety, because R contains the secret-dependent Classes 2 and 5, so admissibility itself depends on the secret-key sample; a conditional formulation would require the adversary to know the secret-dependent admissibility of its query, which is not the case in the game. The joint form automatically accounts for the cases in which a candidate pair is rejected by Class 2 or Class 5, since those events contribute to the complementary probability ( C ( 1 ) , C ( 2 ) ) ∈ R and are not counted.
The assumption is scheme-induced: its instance distribution is determined by KeyGen and Enc, and it is a companion to MRP 2 . Where MRP 2 says that the adversary cannot recover x * from the challenge pair, Assumption 5 says that the adversary cannot even produce a distinct admissible pair that decapsulation would accept as consistent. The assumption is consistent with Lemma 1, which shows that the marginal law of each decryption output is close to uniform; it additionally posits near-independence of the two outputs, which is the genuinely two-dimensional statement not proved here. We invite cryptanalysis on this point.

4.4. Decryption-Safety Properties

This subsection establishes the decryption-safety properties used by the IND-CCA2 proof: a marginal statistical-uniformity result for the decryption output (Lemmas 1 and 2) and the pairwise decryption-collision assumption for distinct ciphertext pairs outside the rejection set R (Assumption 5, stated in Section 4.3). We give a short hybrid reduction that derives the adaptive property from the fixed-pair assumption through Structured D-HMPP (Lemma 3). We state the pairwise property as an assumption rather than deriving it from the one-dimensional modular-reduction lemmas, because establishing the joint near-independence of two decryption outputs directly from the hidden-ring structure is a genuinely two-dimensional equidistribution problem that we leave for future analysis (Section 6); the one-dimensional marginal uniformity is proved.

4.4.1. Analytic Preliminaries

The two lemmas below establish the statistical ingredients underlying the marginal uniformity of the decryption output for a fixed admissible ciphertext: Lemma 1 gives near-uniformity of each reduced intermediate, and Lemma 2 transfers near-uniformity through the field division that produces the decryption output.
Lemma 1 
(Modular-reduction uniformity). Let p be prime, let S > 9 p 2 be an L-bit integer, and let c be an integer with gcd ( c , S ) = 1 . Let Y be uniform on Z S * . Then
Δ ( c Y mod S ) mod p , U ( F p ) ≤ c 0 p ,
where c 0 = 2 O ( L / log L ) O ( log L ) is sub-exponential in L. In particular, c 0 / p = 2 − Ω ( L ) for the D-HPPK parameter relation L = 2 l + 8 with p an l-bit prime.
Proof. 
Case 1: gcd ( S , p ) = 1 . Since gcd ( c , S ) = 1 , multiplication by c is a permutation of Z S * . Hence a = c Y mod S is uniform on Z S * . For each r ∈ F p , let N r = | { y ∈ Z S * : y ≡ r ( mod p ) } | . By inclusion–exclusion over the squarefree divisors of S,
N r = φ ( S ) p + η r , | η r | ≤ 2 ω ( S ) .
Therefore
Δ a mod p , U ( F p ) ≤ p 2 ω ( S ) − 1 φ ( S ) .
By the maximal-order theorem for ω ( S ) [41], ω ( S ) = O ( log S / log log S ) , so 2 ω ( S ) = 2 O ( L / log L ) . Using the standard lower bound on φ ( S ) and S > 9 p 2 ,
Δ a mod p , U ( F p ) ≤ 2 O ( L / log L ) O ( log L ) p .
Thus c 0 = 2 O ( L / log L ) O ( log L ) is sub-exponential in L.
Case 2: p ∣ S . Write S = p S ′ . Since gcd ( c , S ) = 1 and Y ∈ Z S * , we have p ∤ c Y , so ( c Y mod S ) mod p = c Y mod p . Multiplication by c is a bijection on F p * , so c Y mod p is uniform on F p * , and
Δ ( c Y mod S ) mod p , U ( F p ) = 1 p .
Combining both cases. The bound Δ ≤ c 0 / p holds with c 0 = 2 O ( L / log L ) O ( log L ) . For L = 2 l + 8 , with p ≥ 2 l − 1 = 2 L / 2 − 5 , Case 1 gives c 0 / p ≤ 2 − Ω ( L ) and Case 2 gives 1 / p = 2 − Ω ( L ) .    □
Lemma 2 
(Ratio of nearly-uniform variables). Let X , Y be independent random variables on F p with Δ ( X , U ) ≤ ε and Δ ( Y , U ) ≤ ε . Define Z = X / Y when Y ≠ 0 and Z = 0 otherwise, with the convention that X / Y is computed in F p . Then
Δ ( Z , U ) ≤ 2 ε + p − 1 p 2 < 2 ε + 1 p .
Proof. 
Let ( X ′ , Y ′ ) be independent and uniform on F p 2 , and define Z ′ from ( X ′ , Y ′ ) as Z is defined from ( X , Y ) . By the product bound for total variation, Δ ( ( X , Y ) , ( X ′ , Y ′ ) ) ≤ 2 ε . The data-processing inequality gives Δ ( Z , Z ′ ) ≤ 2 ε . For z ≠ 0 , Pr [ Z ′ = z ] = ( p − 1 ) / p 2 , and Pr [ Z ′ = 0 ] = ( 2 p − 1 ) / p 2 , so Δ ( Z ′ , U ) = ( p − 1 ) / p 2 . The triangle inequality yields the stated bound.    □

4.4.2. Pairwise Decryption-Collision

We invoke Assumption 5 and derive its adaptive form. The assumption is stated for fixed ciphertext pairs outside the rejection set R , with the probability taken over the secret-key randomness. The adaptive version, in which the adversary chooses the pair as a function of PK , is reduced to the fixed version by Structured D-HMPP (Lemma 3).
Lemma 3 
(Adaptive collision from the fixed-pair assumption). Assume Structured D-HMPP (Assumption 3) and Assumption 5. Then for every PPT adversary A that outputs a pair C ( 1 ) ≠ C ( 2 ) outside the rejection set R ,
Pr Dec ( SK , C ( 1 ) ) = Dec ( SK , C ( 2 ) ) ≤ 1 p + negl ( λ ) ,
unless both C ( 1 ) and C ( 2 ) are honest encryptions of a common plaintext known to A .
Proof. 
Hybrid 0 (real). ( PK , SK ) ← KeyGen , ( C ( 1 ) , C ( 2 ) ) ← A ( PK ) .
Hybrid 1 (ideal public key). Replace the masked public coefficients ( P ^ i j , Q ^ i j ) by uniform independent elements of Z S 1 * , Z S 2 * , keeping the constraint vector d and all other public structure unchanged. By Assumption 3, Hybrid 0 and Hybrid 1 are computationally indistinguishable, so the joint distribution of ( A ( PK ) , Dec ( SK , · ) ) changes by at most negl ( λ ) .
Hybrid 2 (independent secret key). In the ideal world, the public key is independent of ( S 1 , R 1 , S 2 , R 2 ) . Condition on PK ideal and on ( C ( 1 ) , C ( 2 ) ) = A ( PK ideal ) ; the secret-key randomness remains uniform and independent of the conditioning. Assumption 5 then gives
Pr ( C ( 1 ) , C ( 2 ) ) ∉ R ∧ Dec ( C ( 1 ) ) = Dec ( C ( 2 ) ) ≤ 1 p + negl ( λ ) .
Conditioning on the admissible event ( C ( 1 ) , C ( 2 ) ) ∉ R — which has probability bounded below by a non-negligible quantity in the relevant game regime — yields the conditional bound Pr [ Dec ( C ( 1 ) ) = Dec ( C ( 2 ) ) ∣ ( C ( 1 ) , C ( 2 ) ) ∉ R ] ≤ 1 / p + negl ( λ ) . Combining the two hybrid transitions yields the stated bound. The excluded honest-double-encryption case is handled as in Corollary 1.    □

4.5. Hidden Modulus Product Problem

Definition 5 
(HMPP instance distribution). Let p be the public prime with l = ⌈ log 2 p ⌉ , let L be an integer with L > 2 l , and let t ≥ 3 . The instance distribution D HMPP ( 1 λ ) proceeds as follows:
1. 
Sample a secret modulus S uniformly from the set of L-bit integers satisfying S > 9 p 2 . This is the same distribution as KeyGen (Section 3.1); HMPP instances are therefore drawn from the exact distribution that D-HPPK uses, and the assumption is not strengthened by enlarging the instance set.
2. 
Sample a secret coprime multiplier R ← $ Z S * .
3. 
For i = 1 , … , t , sample a i ← $ F p uniformly, and let a ˜ i ∈ [ 0 , p − 1 ] denote its canonical integer representative.
4. 
Compute the public samples A i ≡ R · a ˜ i ( mod S ) .
The secret trapdoor is ( S , R , a 1 , … , a t ) . The public instance is ( A 1 , … , A t ) .
Definition 6 
(D-HMPP instance distribution). The D-HMPP experiment proceeds as follows.
1. 
Sample a secret modulus S uniformly from the L-bit integers satisfying S > 9 p 2 , matching the HMPP instance distribution of Definition 5.
2. 
With probability 1 / 2 , sample a secret multiplier R ← $ Z S * and independent a i ← $ F p , and set A i ≡ R a ˜ i ( mod S ) for i = 1 , … , t .
3. 
Otherwise, sample A i ← $ Z S * independently and uniformly for i = 1 , … , t .
The adversary receives ( A 1 , … , A t ) and outputs a bit b ^ . The D-HMPP advantage is
Pr [ b ^ = 1 ∣ structured ] − Pr [ b ^ = 1 ∣ uniform ] .
The modulus S is not given to the adversary; it is part of the secret trapdoor, exactly as in Definition 5.
HMPP is a new problem introduced in this work, related in spirit to ACD [35,36,38,40] but differing in that a single large multiplier R ∈ Z S * acts on all small values a ˜ i ∈ [ 0 , p − 1 ] , and the resulting samples are uniform residues modulo S. We examine five attack families below, and identify a sixth class (full-sample lattice attacks) as open for further cryptanalysis.
Proposition 1 
(HMPP is a search problem with efficient verification). Under the heuristic lattice model of Proposition 3, HMPP has the two-phase structure of Definition 1. The guess phase is a non-deterministic choice of a ^ 1 ∈ [ 0 , p − 1 ] , of size 2 l − 1 ≤ | X | ≤ 2 l . The verification phase applies lattice reduction to recover a candidate ( S , R ) , then checks R a ˜ i ≡ A i ( mod S ) for all i, in O ( t · poly ( L ) ) bit operations.

4.5.1. Elementary GCD Attack (Rigorous)

Proposition 2 
(Elementary attack on HMPP). For t ≥ 3 , there is an elementary algorithm that recovers ( S , R ) from ( A 1 , … , A t ) in time O ( 2 2 l · poly ( L ) ) classically.
Proof. 
Fix guesses a ^ 1 , a ^ j ∈ [ 0 , p − 1 ] for two of the small values, j ∈ { 2 , … , t } . If both guesses are correct, B j = A 1 a ^ j − A j a ^ 1 is a nonzero multiple of S. Taking gcds over several j isolates S up to a small cofactor. Once S and a 1 are known, R = A 1 a 1 − 1 mod S and a j = A j R − 1 mod S . Wrong guesses are rejected by the consistency check. The dominant cost is the search over ( a ^ 1 , a ^ j ) .    □

4.5.2. Lattice Attack (Heuristic)

A single-guess lattice attack has been proposed in the ACD literature. It reduces the guess space by half, at the cost of a lattice-reduction step whose applicability to HMPP is not proven.
Proposition 3 
(Heuristic lattice attack on HMPP). If the ACD lattice template applies to the HMPP instance distribution, there is a classical algorithm that recovers ( S , R ) in time O ( 2 l · poly ( L ) ) .
Proof. 
Fix a guess a ^ 1 ∈ [ 0 , p − 1 ] . For the correct guess, B j = A 1 a ˜ j − A j a ^ 1 is a multiple of S for all j. Under the heuristic assumption that the ACD template applies, a lattice of dimension t constructed from the public values and a scaling factor 2 ρ with ρ ≈ L contains the vector ( a ˜ 2 , … , a ˜ t , S ) as a short vector, which LLL/BKZ recovers in poly ( L ) time. The dominant cost is the search over a ^ 1 .    □
The proposition is conditional. If the ACD template applies, the best-known attack costs O ( 2 l · poly ( L ) ) ; if it does not, the rigorous fallback is the elementary GCD attack of Proposition 2 at O ( 2 2 l · poly ( L ) ) . The true best attack lies in the range [ 2 l , 2 2 l ] . Parameter selection (Section 5.1) adopts the 2 l bound, so the claimed security level holds even if the heuristic is optimistic. The ACD template is not proven to apply: the standard technique requires small residues modulo the unknown modulus, whereas the HMPP residues A i mod S are uniform in the image of the multiplication-by-R map, and eliminating R requires knowing S. Whether the technique can be adapted is open (Section 4.12).

4.5.3. Algebraic and Statistical Attacks (No Improvement)

We examined three algebraic attack families. Rational reconstruction exploits the relation A i / A j ≡ a ˜ i / a ˜ j ( mod S ) , but reducing the fractions modulo S requires knowing S; without it, the relation is uninformative. Simultaneous modular relations uses the products A i a ˜ j − A j a ˜ i , which are multiples of S; eliminating S between two such products yields a bilinear relation in the unknown small values that does not isolate S. Gröbner basis techniques do not apply directly because the defining relations are congruences over Z , not equations over a field. We found no algebraic attack that improves upon the elementary bound of Proposition 2.
We examined three statistical attack families. Cofactor leakage does not apply because the quotients k i = ⌊ R a ˜ i / S ⌋ are uniform over a wide range and reveal nothing about S. GCD-based combinations do not isolate S because the products A i A j are uniform modulo S up to the shared factor R 2 . Small-coefficient bias is defeated by the injectivity of multiplication by R: in the generic case gcd ( S , p ) = 1 , the image set I R = { R a ˜ mod S : a ˜ ∈ [ 0 , p − 1 ] } has exactly p elements and density p / S ≈ 2 − l − 8 , so no residue is preferred. We found no statistical attack that improves upon the elementary GCD bound of Proposition 2.

4.5.4. Bézout-Combination Attacks (Blocked by Masking)

The Lattice Reconstitution Attack (LRA) [9] recovers the secret key of the unmasked HPPK KEM in polynomial time. D-HPPK applies additive random masking before hidden-ring embedding, producing masked coefficients p i j ′ = p i j ( 0 ) + c i ( p ) d j . The rank-one perturbation destroys the rank-two structure of p ( 0 ) , and for m = n + 1 the masked matrix is generically full-rank. The Bézout-combination construction that underlies the LRA therefore does not yield a usable discriminator on D-HPPK public samples.

4.5.5. Full-Sample Lattice Attacks (Open)

Using all t samples simultaneously is the strongest known approach to ACD [35,36]; whether this technique applies to HMPP, and with what complexity, is left open in Section 4.12.

4.5.6. Best-Known Attack Summary

The attacks surveyed above are summarized in Table 2. The strongest candidate attack is the heuristic lattice attack at O ( 2 l · poly ( L ) ) ; the rigorous fallback is the elementary GCD attack at O ( 2 2 l · poly ( L ) ) . The remaining attack families either do not improve on these bounds or are blocked by the masking. Parameter selection adopts the 2 l bound (Section 5.1).

4.6. Message Recovery Problem

The problem an adversary faces against D-HPPK has two formulations. At the mathematical level, inverting a system of polynomial congruences over F p is the Modular Multivariate Polynomial System (MMPS). It is parameterized only by the number of equations k, the number of unknowns m + 1 , and the degrees of the coefficient polynomials. At the scheme level, the ciphertext recovery problem is the Message Recovery Problem (MRP) of Definitions 2 and 3. MRP is scheme-induced: its instance distribution references KeyGen and Enc, it inherits the constraint d ⊤ u ≡ 0 ( mod p ) , and its integer ciphertext identity retains the unreduced hidden-modulus information that pins down x * .
MRP reduces to MMPS by reducing the ciphertext equations modulo p and appending the constraint. The hardness assumption is placed on MRP, not on the generic MMPS problem, because the modular system admits a solution for every free variable x and therefore does not by itself distinguish the true secret x * (Section 4.6.4).

4.6.1. The Generic MMPS Problem

Definition 7 
(MMPS). Let p be prime with l = ⌈ log 2 p ⌉ , and let n , m , k ≥ 1 . An MMPS instance is a system of k polynomial congruences over F p in m + 1 unknowns ( x , u 1 , … , u m ) ,
h ℓ ( x , u 1 , … , u m ) ≡ b ℓ ( mod p ) , ℓ = 1 , … , k ,
where each h ℓ is linear in ( u 1 , … , u m ) and polynomial in x of degree at most n:
h ℓ ( x , u ) = ∑ j = 1 m f ℓ , j ( x ) u j , f ℓ , j ( x ) = ∑ i = 0 n c ℓ , j , i x i ,
with c ℓ , j , i , b ℓ ∈ F p . TheMMPS problemis: given a valid MMPS instance, output x * ∈ F p for which the system admits a solution ( u 1 * , … , u m * ) ∈ F p m .
The D-HPPK instantiation has k = 3 equations in m + 1 unknowns: one constraint constant in x, and one equation from each of c p and c q . At the default parameters m = 3 , the system is underdetermined by exactly one variable (x), and the solution variety has dimension one. For each fixed candidate x, the system reduces to three equations in ( u 1 , u 2 , u 3 ) , which is generically determined.
Remark 1 
(Why MMPS is a natural problem). MMPS belongs to the well-studied class of structured polynomial systems over finite fields [23,24,25,26,27]. The D-HPPK instantiation differs from these generic constructions in its coefficient distribution and in the specific structure exploited by the enumeration-verification procedure described in Section 4.6.3.

4.6.2. MRP: The Scheme-Induced Message Recovery Problem

Definition 8 
( MRP 1 and MRP 2 instance distributions). The single-ciphertext instance distribution D MRP 1 ( 1 λ ) runs ( PK , SK ) ← KeyGen ( 1 λ ) , samples x * ← $ F p and u * ← $ { v ∈ F p m : d ⊤ v = 0 } , computes C * ← Enc ( PK , x * ; u * ) , and outputs the instance ( PK , C * ) and the secret x * . The double-ciphertext instance distribution D MRP 2 ( 1 λ ) is identical except it samples two independent noise vectors u * , ( 1 ) , u * , ( 2 ) and outputs ( PK , C ( 1 ) * , C ( 2 ) * ) .
The ciphertext identity is exact over the integers:
c p * = ∑ i = 0 n ∑ j = 1 m P ^ i j x * i u j * mod p , c q * = ∑ i = 0 n ∑ j = 1 m Q ^ i j x * i u j * mod p .
The integer structure is what distinguishes MRP from its modular reduction and is the only place where the hidden-modulus information is retained.
Proposition 4 
(MRP is a search problem with efficient verification). Both MRP 1 and MRP 2 have the two-phase structure of Definition 1. The guess phase is a non-deterministic choice of a single x ∈ X = F p of size 2 l . The verification predicate V ( x , C ) is defined as follows. If M ( x ) is invertible, compute u ( x ) = M ( x ) − 1 b and check the integer ciphertext identity (9); output 1 if it holds and 0 otherwise. If M ( x ) is singular, output 0. The determinant det M ( x ) vanishes for at most 4 values of x, so the exceptional cases remove at most 4 candidates from the search space and do not affect the asymptotic cost.
For MRP 1 , the verification is O ( L 2 ) bit operations. For MRP 2 , the same guess x is used to verify both components, each at O ( L 2 ) bit operations, for a total of O ( L 2 ) up to a constant factor of two. The search space in both cases is 2 l up to an additive constant; only the verification cost differs by a constant.

4.6.3. Reduction to MMPS and Complexity

An MRP instance determines an MMPS instance by reducing the ciphertext equations modulo p and appending the constraint. Let p ¯ i j = P ^ i j mod p , q ¯ i j = Q ^ i j mod p , c ¯ p = c p * mod p , and c ¯ q = c q * mod p . The resulting MMPS instance has k = 3 equations in m + 1 unknowns:
∑ j = 1 m d j u j ≡ 0 ( mod p ) , ∑ i = 0 n ∑ j = 1 m p ¯ i j x i u j ≡ c ¯ p ( mod p ) , ∑ i = 0 n ∑ j = 1 m q ¯ i j x i u j ≡ c ¯ q ( mod p ) .
Lemma 4 
(MRP solutions reduce to MMPS solutions). If ( x * , u * ) satisfies the MRP integer identity (9), then its reduction modulo p satisfies the MMPS system (10).
Proof. 
Reduction modulo p is a ring homomorphism from Z to F p . The reverse direction does not hold in general: an MMPS solution need not lift to an MRP solution.    □
Theorem 1 
(Complexity of MRP and of the D-HPPK MMPS sub-family). At m = 3 , the best-known analyzed attack on both MRP 1 and MRP 2 , equivalently on MMPS instances of the D-HPPK form (10), has running time O ( 2 l · L 2 ) classical bit operations. This is an upper bound established by exhaustive search; no matching lower bound is claimed. For m > 3 , the asymptotic complexity remains O ( 2 l · poly ( L ) ) .
Proof. 
For each fixed guess x ^ ∈ F p , the system (10) becomes three linear equations in the three unknowns u 1 , u 2 , u 3 . If the coefficient matrix M ( x ^ ) is non-singular, the system has a unique solution u , which is then verified against the integer identity (9) at cost O ( L 2 ) bit operations. The determinant det M ( x ) vanishes for at most 4 values of x ^ , handled by a constant-size exception list. For MRP 2 , the procedure is applied to each component; the cost doubles, which does not change the O class. The search is over 2 l candidates.    □
The two-phase structure makes the complexity chain explicit:
O ( 2 l ) ⏟ MMPS search over x × O ( L 2 ) ⏟ integer verification = O ( 2 l · L 2 ) .
Under the search-based convention of Section 1.2, the security level of D-HPPK is l bits, determined by the size of the search space | F p | = 2 l and the O ( L 2 ) -time verification.
Message-recovery security of the base PKE. By construction, the hardness of MRP 1 is the message-recovery security of the base PKE: the single-ciphertext game of Definition 2 and the MRP 1 instance distribution of Definition 8 are generated by the same KeyGen and Enc algorithms. The identification is definitional, not a reduction: MRP 1 hardness is the message-recovery security property of the base PKE under the search-based convention of Section 1.2. The double-ciphertext formulation MRP 2 is the form used by the IND-CCA2 proof of Section 4.9, and has the same O ( 2 l · L 2 ) best-known analyzed attack cost by Theorem 1.

4.6.4. Algebraic Attacks: Trivial Elimination Ideal

We bound the degree of regularity of the D-HPPK sub-family of MMPS. Let I = 〈 g 1 , g 2 , g 3 〉 ⊂ F p [ x , u 1 , u 2 , u 3 ] denote the ideal generated by the system (10), and write the system in matrix form M ( x ) u = b , where b = ( 0 , c ¯ p , c ¯ q ) ⊤ ∈ F p 3 .
The variety V ( I ) is one-dimensional. For each x at which M ( x ) is invertible, the system has a unique solution u ( x ) . The determinant det M ( x ) vanishes for at most 4 values of x. For all other x, the projection V ( I ) → A x 1 is a bijection, so V ( I ) is a rational curve parameterized by x and has dimension 1.
Degree bound on the rational parametrization. Because the system is linear in u , the Gröbner basis is computable by Gaussian elimination over F p ( x ) . The Leibniz expansion gives deg det M ( x ) ≤ 4 , and each entry of adj M ( x ) is of degree at most 4 in x. Consequently the rational parametrization x ↦ u ( x ) has numerator and denominator degree at most 4, and Gröbner elimination introduces no high-degree condition that isolates x. We do not claim a Castelnuovo–Mumford regularity bound for the ideal I; the degree bound on the parametrization is what the cryptanalysis requires.
The elimination ideal is trivial. The elimination ideal I ∩ F p [ x ] is the zero ideal, because the projection V ( I ) → A x 1 is surjective: every x ∈ F p is the x-coordinate of some solution. Consequently, the adversary who computes the Gröbner basis learns nothing about the true x * from the modular system alone. To recover x * , the adversary must use the integer ciphertext identity (9) and enumerate over all x ∈ F p . This is why the search is over x ∈ F p rather than over the algebraic variety, and why the hardness assumption is placed on MRP rather than on the generic MMPS problem.

4.7. Key Recovery: Two-Phase Attack

Recovering the long-term secret key from the public key decomposes into two stages: first breaking the hidden rings, then exploiting the factorization structure of the underlying coefficient matrices. The first stage is HMPP; the second is polynomial. Consequently the total key-recovery cost coincides with the HMPP cost, and Theorem 2 below makes this precise.
Stage 1: Breaking the hidden rings (HMPP). The public key contains two HMPP instances: { P ^ i j } with modulus S 1 and multiplier R 1 , and { Q ^ i j } with modulus S 2 and multiplier R 2 . The standalone cryptanalysis of Section 4.5 establishes that the best currently analyzed attack on HMPP has classical cost O ( 2 l · poly ( L ) ) , conditional on the ACD-template heuristic, with the rigorous elementary GCD fallback at O ( 2 2 l · poly ( L ) ) . The purpose of the present subsection is to show that once HMPP is broken, the remaining factorization recovery is polynomial, so the total key-recovery cost coincides with the HMPP cost.
Stage 2: Recovering the factorization. After Stage 1, the adversary knows p ′ = p ( 0 ) + c ( p ) d ⊤ and q ′ = q ( 0 ) + c ( q ) d ⊤ . Let v ∈ F p m be nonzero with d ⊤ v = 0 . Then p ′ v = p ( 0 ) v , and likewise for q ′ . Since p ( 0 ) = F p B and q ( 0 ) = F h B , the projection gives
p ′ v = F p ( B v ) , q ′ v = F h ( B v ) ,
i.e., a pair of column vectors proportional to the coefficient vectors of f and h, up to unknown scalars. Taking a second, linearly independent v ′ ∈ d ⊥ recovers the ratio and hence the full Möbius transformation Φ ( x ) = f ( x ) / h ( x ) in O ( 1 ) field operations. This requires the nondegeneracy condition that the projected vectors ( B v 1 , B v 2 ) span a rank-two subspace and that the resulting linear system for the scale ratio has nonzero determinant. The condition holds for generic B and fails only on a measure-zero subset of key space; if it fails, key regeneration produces a valid key.
Lemma 5 
(Polynomial-time key recovery after HMPP). Given p ′ , q ′ , and d , the secret polynomials f ( x ) and h ( x ) are recoverable in O ( poly ( L ) ) field operations.
Proof. 
Choose a basis ( v 1 , v 2 ) of d ⊥ . The projections p ′ v k = F p ( B v k ) and q ′ v k = F h ( B v k ) , k = 1 , 2 , are computable in O ( m ) field operations. The column space of ( p ′ v 1 , p ′ v 2 ) equals the column space of F p , whose left null vector is proportional to u f = ( f 1 2 , − f 0 f 1 , f 0 2 ) ⊤ . The same holds for q ′ with u h = ( h 1 2 , − h 0 h 1 , h 0 2 ) ⊤ . The shared factor B fixes the relative scale, so comparing the recovered ratios f 0 / f 1 and h 0 / h 1 determines the full Möbius transformation in O ( 1 ) field operations. The comparison is well-defined whenever f 1 h 0 − f 0 h 1 ≠ 0 , which is the nondegeneracy condition enforced by the KeyGen rejection described in Section 3.3.    □
Theorem 2 
(Key-recovery complexity). Under Assumption 1, the best-known classical complexity of key recovery is O ( 2 l · poly ( L ) ) , matching the best-known secret-recovery cost of MRP.
Proof. 
Stage 1 is bounded by Assumption 1. Stage 2 is polynomial by Lemma 5.    □

4.8. Rejection Set and Formal Justification

The property required by the IND-CCA2 proof is the pairwise decryption-collision assumption (Assumption 5), with its adaptive form provided by Lemma 3. The rejection set R comprises five classes. Classes 1 and 3 are computable from the ciphertext alone; Classes 2 and 5 are secret-dependent, evaluated using S 1 , S 2 ; and Class 4 is enforced by the IND-CCA2 game.
Class 1 (duplicate components): C = ( D , D ) ; rejected by direct comparison.
Class 2 (residue-preserving shifts): c p ( 1 ) ≡ c p ( 2 ) ( mod S 1 ) and c q ( 1 ) ≡ c q ( 2 ) ( mod S 2 ) simultaneously. A direct construction of such a pair requires knowledge of S 1 , S 2 , and under the current analysis this appears to require solving an HMPP-type hidden-modulus problem; we do not claim a proof that every construction must recover the moduli. Because S i > 9 p 2 while c p < 9 p S 1 and c q < 9 p S 2 , any residue-preserving shift is necessarily a small multiple of the hidden modulus, and the moduli are not otherwise observable from the public key.
Class 3 (integer scalar multiples): C ( 2 ) = λ C ( 1 ) or C ( 1 ) = λ C ( 2 ) for some integer λ . Without this rejection, an adversary could submit C ( 2 ) = λ C ( 1 ) and obtain a collision with probability roughly 1 / λ 2 : the reduction c p ( 1 ) mod S 1 is uniform in [ 0 , S 1 − 1 ] , so the probability that λ ( c p ( 1 ) mod S 1 ) < S 1 is 1 / λ , and similarly for c q ( 1 ) mod S 2 . For small λ this is non-negligible. The Class 3 rejection closes this channel.
Class 4 (challenge-component reuse): any query whose first or second component equals, or is an integer scalar multiple of, the corresponding challenge component.
Class 5 (non-unit components): reject any query C = ( c p , c q ) for which gcd ( c p , S 1 ) ≠ 1 or gcd ( c q , S 2 ) ≠ 1 . This class excludes the degenerate case c p ≡ 0 ( mod S 1 ) (or symmetrically), in which the intermediate value a (resp. b) is identically zero and decryption produces a deterministic collision. The predicate gcd ( c p , S 1 ) ≠ 1 is secret-dependent — it cannot be evaluated without S 1 — and constructing a ciphertext that satisfies it with non-negligible probability appears to require recovery of the corresponding hidden modulus.
The five classes are defined as separate rejection conditions; they need not be mutually disjoint. For example, a pair C ( 2 ) = λ C ( 1 ) can simultaneously satisfy Class 3 (integer scalar multiple) and Class 4 (challenge-component reuse) when one component of C ( 1 ) matches the challenge, and Class 3 preserves Class 5 membership under multiplication by λ . The five conditions are enumerated separately because each admits a distinct rejection test, not because the sets are disjoint.
Corollary 1 
(Collision bound). Under Assumption 5, let A be a PPT adversary that outputs a pair C ( 1 ) ≠ C ( 2 ) . Then
Pr ( C ( 1 ) , C ( 2 ) ) ∉ R ∧ Dec ( SK , C ( 1 ) ) = Dec ( SK , C ( 2 ) ) ≤ 1 p + negl ( λ ) ,
except in the excluded honest-double-encryption case.
Proof. 
Immediate from Assumption 5 and Lemma 3.    □
Formal justification for the game-level restriction. The standard IND-CCA2 game prohibits the adversary from submitting the complete challenge ciphertext C * , but not from submitting a ciphertext sharing one component with C * , nor from submitting an integer scalar multiple. We enforce a strictly stronger restriction. Let A be an adversary in the restricted game, and construct A ′ in the standard game that simulates A ’s queries. When A queries a ciphertext C ′ = ( C ′ ( 1 ) , C ′ ( 2 ) ) with C ′ ( 1 ) = C ( 1 ) * , A ′ already knows C ( 1 ) * , whose decryption under SK is x * . The only information extractable from the oracle’s response is whether C ′ ( 2 ) decrypts to x * , a candidate-testing query whose success probability over random x * ∈ F p is at most 1 / p per query. The same argument covers integer scalar multiples λ C ( 1 ) * and Class 5 rejections: the Class 5 predicate is secret-dependent, and the adversary cannot construct a query satisfying it with non-negligible probability without recovering the hidden modulus. Hence the Class 3, Class 4, and Class 5 restrictions only remove redundant degrees of freedom; they do not improperly constrain the adversary.

4.9. IND-CCA2 Security of the Double-Encryption KEM

The double-encryption KEM of Section 3.4 achieves IND-CCA2 security in the random oracle model, under Assumptions 1, 3, 4, and 5. Assumption 2 (standalone D-HMPP) is used only in the cryptanalysis of Section 4.5 and does not appear directly in the CCA bound. The decryption-safety property required by the proof is the adaptive pairwise decryption-collision property of Lemma 3. An adversary can break IND-CCA2 by either:
  • Path A (ephemeral secret). Recovering the ephemeral secret x * directly from ( C ( 1 ) * , C ( 2 ) * ) via MRP 2 .
  • Path B (long-term key). Recovering the secret key SK via HMPP followed by the polynomial-time Stage 2 attack, then decrypting ( C ( 1 ) * , C ( 2 ) * ) to obtain x * .
The proof is in the random oracle model (ROM): the hash function H is treated as a random function that the adversary may query at most q H times. The shared secret K = H ( x ∥ C ( 1 ) ∥ C ( 2 ) ) binds the key to the exact ciphertext and the ephemeral secret. The proof requires that, if the adversary has not queried H on ( x * ∥ C * ) , the value K appears uniformly random.
Theorem 3 
(IND-CCA2 security, conditional on Assumptions 1, 3, 4, and 5). Assume the following four assumptions hold: Assumption 1 (HMPP), Assumption 3 (Structured D-HMPP), Assumption 4 (MRP, both MRP 1 and MRP 2 ), and Assumption 5 (pairwise decryption-collision resistance). Let A be a PPT adversary against Game IND - CCA 2 (Definition 4) making at most q D decapsulation queries and q H random-oracle queries. Then there exist PPT adversaries B 1 , B 2 , B 3 , B 4 such that
Adv KEM , A ind - cca 2 ( λ ) = Pr [ b ^ = b ] − 1 2 ≤ Adv B 1 mr 2 ( λ ) ⏟ Path A : MRP 2 + Adv B 2 hmpp ( λ ) ⏟ Path B : HMPP + Adv B 3 collision ( λ ) ⏟ fixed - pair collision + Adv B 4 structured - dhmpp ( λ ) ⏟ adaptive reduction + ( q D + q H ) p + negl ( λ ) .
Under the four assumptions above, every term on the right-hand side is negligible in λ: the two attack-path advantages by Assumptions 4 and 1, the fixed-pair collision term by Assumption 5, and the adaptive-reduction term by Assumption 3. The trailing negl ( λ ) absorbs the random-oracle simulation loss and the polynomial slack from the per-query bounds. Assumption 2 (standalone D-HMPP) supports the cryptanalysis of Section 4.5 but does not appear directly in the bound.
Proof. 
Let E i denote the event that A wins in Game i.
Game 0 (real game). This is Game IND - CCA 2 , so Adv KEM , A ind - cca 2 ( λ ) = | Pr [ E 0 ] − 1 / 2 | .
Game 1 (explicit rejection). Modify Decaps to reject Classes 1–5 explicitly. Classes 1 and 3 are testable from the ciphertext alone; Classes 2 and 5 are evaluated using the hidden moduli before the main decryption computation; Class 4 is enforced by the game. By Lemma 3, the adaptive form of the fixed-pair collision bound, the remaining admissible queries satisfy
Pr ( C ( 1 ) , C ( 2 ) ) ∉ R ∧ Dec ( C ( 1 ) ) = Dec ( C ( 2 ) ) ≤ 1 p + negl ( λ )
per query. The two losses that appear in Lemma 3 are the fixed-pair collision bound of Assumption 5 and the Structured D-HMPP hybrid that reduces the adaptive case to the fixed-pair case. Over q D queries,
| Pr [ E 0 ] − Pr [ E 1 ] | ≤ Adv B 3 collision + Adv B 4 structured - dhmpp + q D p + q D · negl ( λ ) .
Game 2 (random challenge key). Replace K 0 by a uniform K rand independent of b; then Pr [ E 2 ] = 1 / 2 . A transition between Games 1 and 2 requires A to query H on ( x * ∥ C * ) . Three disjoint events cover this: Path A (recover x * via MRP 2 ) contributes Adv B 1 mr 2 ; Path B (recover SK via HMPP plus Stage 2) contributes Adv B 2 hmpp ; and guessing x * directly contributes at most q H / p . Hence
| Pr [ E 1 ] − Pr [ E 2 ] | ≤ Adv B 1 mr 2 + Adv B 2 hmpp + q H p .
Combining. By the triangle inequality, and using Pr [ E 2 ] = 1 / 2 ,
| Pr [ E 0 ] − 1 2 | ≤ | Pr [ E 0 ] − Pr [ E 1 ] | + | Pr [ E 1 ] − Pr [ E 2 ] | .
Substituting the two bounds above and folding the q D · negl ( λ ) slack and the random-oracle simulation loss into the trailing negl ( λ ) yields the stated result.    □
Proof notes. The random oracle H is simulated by maintaining a shared table of queried values ( x ∥ C ) ↦ H ( x ∥ C ) , and decapsulation queries are answered consistently with this table. Classes 1, 2, 3, and 5 are enforced by the decapsulation algorithm; Class 4 is enforced by the IND-CCA2 game. The simulation argument in Section 4.8 shows that the game-level restriction for Class 4 is without loss of generality up to q D / p . The enlarged rejection set is what makes the joint form of Assumption 5 applicable to every remaining oracle query, so that the collision contribution is bounded by q D / p rather than by a larger quantity. The proof is in the classical random oracle model; QROM security is left for future work.

4.10. Concrete Security Levels

Classical security level. Both attack paths are exhaustive searches over spaces of size 2 l : long-term key recovery via HMPP and ephemeral-secret recovery via MRP 2 . The parameter set is assigned an l-bit search-based security level under the convention of Section 1.2, analogous to AES key search: l = 128 corresponds to Level I, l = 192 to Level III, and l = 256 to Level V. This is a definitional assignment from the search-space size and verification cost, not a computational lower bound. The polynomial factors L 2 (MRP) and poly ( L ) (HMPP) are not counted in the security level.
Generic quantum cost of the best-known search attacks. The best-known attacks on HMPP and MRP both contain an unstructured search step, and Grover’s algorithm applied to that step reduces the number of iterations to approximately 2 l / 2 . This is a generic Grover cost on the search step alone. It does not account for the quantum cost of implementing the verification oracle (lattice reduction for HMPP, modular linear-system solving for MRP), nor for circuit depth, width, or memory. We therefore do not claim an established quantum security level; the numbers below are best read as the Grover-scaled cost of the classical search step. We emphasize that l / 2 , not l, is the binding exponent in this Grover-scaled estimate. A full quantum resource estimation is left for future work.
Assumption dependencies. Key recovery depends on Assumption 1 (Theorem 2); message recovery is defined by MRP (Assumption 4); the pairwise collision-resistance property is Assumption 5, with its adaptive form reduced through Structured D-HMPP (Lemma 3); IND-CCA2 depends on four of the five assumptions (Theorem 3), with standalone D-HMPP (Assumption 2) supporting the cryptanalysis.

4.11. Security Summary

D-HPPK rests on five assumptions: HMPP, D-HMPP, Structured D-HMPP, MRP (in both MRP 1 and MRP 2 forms), and pairwise decryption-collision resistance. Key recovery costs O ( 2 l · poly ( L ) ) under HMPP; message recovery is defined by MRP; marginal uniformity of the decryption output is proved from the hidden-ring modular reduction; the pairwise collision property is assumed, with its adaptive form reduced through Structured D-HMPP; and IND-CCA2 security follows from a union bound over both attack paths in the classical random oracle model, conditional on four of the five assumptions. The five-class rejection set ensures the collision bound applies to every remaining oracle query. The security level is l bits under the search-based convention, determined by the size | F p | = 2 l of the search space and the O ( L 2 ) -time verification.

4.12. Open Problems

The security claim of D-HPPK is conditional on five assumptions, four of which are hardness statements about the underlying problems: HMPP, D-HMPP, Structured D-HMPP, and MRP. None of these is proved, and the security proof is conditional on all of them holding. The construction itself does not depend on their resolution: the scheme is well-defined and the correctness proof stands independently. But the assigned security level is meaningful only if the assumptions are, and the two most consequential open questions are therefore the hardness of the two problems on which the two attack paths depend.
1.
Is HMPP hard? A polynomial-time classical or quantum algorithm that recovers ( S , R ) from the public samples A i ≡ R a ˜ i ( mod S ) would break long-term key recovery and hence the scheme. HMPP is related in structure to the Approximate Common Divisor problem, and the strongest known attack family in that setting is the full-sample lattice technique [35,36]; whether it transfers to HMPP, and with what complexity, is open. A reduction of HMPP to a well-studied lattice problem would provide an independent foundation for the assigned security level; a polynomial-time algorithm would invalidate it.
2.
Is MRP hard? A polynomial-time classical or quantum algorithm that recovers the ephemeral secret x * from ( PK , C * ) would break ephemeral-secret recovery and hence the scheme. MRP is a scheme-induced search problem whose instances are modular polynomial systems with the coefficient distribution of D-HPPK; the best-known attack is exhaustive search over F p with an integer verification per candidate. Whether the algebraic structure of the resulting MMPS family admits an algorithm that reduces the search space below 2 l is open. The question applies to both forms of MRP ( MRP 1 and MRP 2 ).
The cryptanalysis in Section 4.5 and Section 4.6 constitutes the current evidence base for the hardness of HMPP and MRP respectively. We invite independent cryptanalysis and ask to be notified of any findings so that the security claims can be updated.

5. Implementation and Performance

This section reports the performance of the D-HPPK reference implementation on a single platform. Sizes and operation counts, which are implementation-independent, are also reported.

5.1. Parameter Selection

We fix n = 2 and m = 3 ; these choices ensure unique decryption, minimize the public key size, and enable efficient finite-field evaluation. The hidden moduli satisfy S 1 , S 2 > 9 p 2 . Both key recovery and ephemeral-secret recovery have best-known classical cost O ( 2 l · poly ( L ) ) , where l = ⌈ log 2 p ⌉ and L = 2 l + 8 . The resulting key and ciphertext sizes are summarized in Table 3.
The shared secret is derived as K = H ( x ‖ C ( 1 ) ‖ C ( 2 ) ) , where H outputs 256 bits.
Parameter selection uses the best currently analyzed HMPP attack cost O ( 2 l · poly ( L ) ) , conditional on the ACD-template heuristic, with the elementary GCD fallback at O ( 2 2 l · poly ( L ) ) providing additional margin.
The choice of m = 3 . The parameter m is the number of noise variables in B ( x , u ) and determines the kernel dimension of δ as m − 1 . At m = 3 , the kernel is two-dimensional and the MMPS system is uniquely solvable for each x. Increasing m grows the public key linearly in m and the per-candidate verification cost as O ( m 3 ) , while the best-known attack on MRP remains 2 l . We therefore adopt m = 3 as the minimal choice.

5.2. Reference Implementation and Platform

We implemented a reference implementation of the D-HPPK IND-CCA2 KEM in C using GMP for large integer arithmetic and OpenSSL for SHA-256. The reference implementation performs the double encryption of Section 3.4, the consistency check, and the rejection handling for Classes 1 and 2 of Section 4.8. All measurements were obtained on a single platform: 12th Generation Intel Core i5-1240P (1.70 GHz base, 4.40 GHz turbo), Windows 11 64-bit, 16 GB RAM, GCC with -O2 -march=native. Measurements are averages over 10,000 iterations after a 1,000-iteration warm-up; standard deviations across iterations were below 5% of the mean. The implementation has not been subjected to architecture-specific optimizations. It is an academic illustration of the construction, not a production-grade or constant-time implementation and not intended as a performance benchmark; see Section 5.4.

5.3. Operation Counts and Cycle Counts

The computational cost of D-HPPK is dominated by modular arithmetic in F p and multiplication of L-bit integers. Table 4 summarizes the operation counts for the unified parameter set ( n = 2 , m = 3 ) .
Table 5 reports the measured cycle counts, in k-cycles. Figure 4 plots the same data.
At l = 256 , the reference implementation takes approximately 9,300 cycles for encapsulation and 18,000 cycles for decapsulation, corresponding to roughly 5.5 μ s and 10.6 μ s at 1.7 GHz. Scaling across security levels is roughly linear in l.
Scaling. The algorithmic structure of D-HPPK is identical across security levels; only l and L = 2 l + 8 change. Total cost scales as O ( l 3 ) under schoolbook multi-precision arithmetic and O ( l 2 + ϵ ) with subquadratic multiplication. At very large l ( l > 1024 ), the O ( l 2 ) multiplication becomes the dominant bottleneck. For l ∈ [ 128 , 512 ] , this is not a constraint.

5.4. Implementation Status and Constant-Time Roadmap

The current implementation is a prototype for correctness and performance indication. It uses GMP for large integer arithmetic and is not constant-time. We document below the specific operations that would require hardening in a constant-time reference implementation, together with the standard techniques that would be used.
Decapsulation (security-critical path). The six operations that involve secret values are: (i) reduction of c p , c q modulo S 1 , S 2 (Barrett or Montgomery); (ii) multiplication by R 1 − 1 , R 2 − 1 (fully unrolled routine with no early termination); (iii) modular inversion of b in F p (fixed-window exponentiation b p − 2 ); (iv) the division for x = Φ − 1 ( k ) ; (v) the consistency check x 1 = x 2 (branch-free selector via ( x 1 − x 2 ) p − 1 ); and (vi) the five-class rejection comparisons, including the Class 3 divisibility check and the Class 5 constant-time gcd of c p with S 1 and c q with S 2 .
Key generation. Rejection sampling of S 1 , S 2 ; sampling of R 1 , R 2 with fixed-time coprimality testing; modular inversion of R 1 , R 2 ; and the computation of P ^ i j , Q ^ i j with constant-time modular multiplication.
Encapsulation. In the standard KEM threat model, encapsulation is executed by the sender on a trusted machine. If the sender’s platform is compromised, the shared secret could leak through timing, but this is outside the standard IND-CCA2 model.
The techniques listed are standard and have been implemented in production libraries such as BearSSL, BoringSSL, and libsodium. The work required for D-HPPK is engineering rather than research: adapting known constant-time primitives to the specific multi-precision bit-lengths used here ( L = 2 l + 8 bits). We leave this implementation work for a subsequent revision, and we state clearly that the current prototype should not be deployed as-is.
Implementation-level attacks (timing, cache, fault injection, power analysis) are outside the scope of this work.

6. Conclusions

We have introduced D-HPPK, the Defactorized Homomorphic Polynomial Public Key key encapsulation mechanism, a post-quantum cryptosystem whose security rests on five hardness assumptions: HMPP, its decisional form D-HMPP, Structured D-HMPP, the scheme-induced MRP in its single- and double-ciphertext forms, and a scheme-induced pairwise decryption-collision resistance assumption. The scheme combines a three-layer architecture of additive random masking and hidden-ring embeddings: the hidden rings prevent the public-constraint attack, and the random masking destroys the rank-2 algebraic regularity that the original HPPK construction exposed.
D-HPPK is a search-based cryptosystem in the sense of AES: its security level is assigned from the size of the search space and the efficiency of verification, following the NIST convention. Both key recovery and ephemeral-secret recovery have best-known classical cost O ( 2 l · poly ( L ) ) , and the IND-CCA2 proof rests on a union bound over both paths, conditional on four of the five assumptions. The consistency check relies on the pairwise decryption-collision assumption, whose adaptive form is reduced through Structured D-HMPP; the marginal uniformity of the decryption output is proved from the hidden-ring modular reduction. At Level V, D-HPPK achieves a 1234-byte public key and a 392-byte CCA2 ciphertext, more compact than lattice-based KEMs at comparable security levels, with a single implementation scaling across security levels without SIMD or NTT.
The IND-CCA2 proof is not established in the quantum random oracle model, and further cryptanalysis of HMPP, MRP, and the pairwise collision assumption is invited. Directions for future research: further cryptanalysis of the two hardness problems; a proof of the two-dimensional equidistribution lemma or a reduction of Structured D-HMPP to the standalone form, either of which would reduce the assumption count; a constant-time implementation; a quantum random-oracle proof; and adaptation of the conjugated masking architecture to other primitives.
D-HPPK establishes that polynomial-based cryptography can simultaneously deliver compact representations and a simple algorithmic structure, offering a transparent alternative to lattice- and code-based post-quantum KEMs.

Author Contributions

Conceptualization, R.K.; methodology, R.K.; formal analysis, R.K.; writing—original draft preparation, R.K.; writing—review and editing, R.K. All authors have read and agreed to the published version of the manuscript.

Data Availability Statement

No new data were created or analyzed in this study. Data sharing is not applicable to this article.

Acknowledgments

The author used AI language models (DeepSeek and Gemini) for language refinement and as a discussion aid during the revision process. Every scientific claim, proof, cryptanalytic assessment, and final conclusion in this work was verified, decided, and written by the author. The author also thanks the anonymous reviewers for their detailed and constructive feedback, which substantially improved the rigor of the security analysis.

Conflicts of Interest

R.K. is the founder and Chief Scientist of Quantropi Inc., a company developing post-quantum cryptographic technologies. The authors declare no other conflicts of interest.

References

  1. Kuang, R.; Perepechaenko, M. Homomorphic polynomial public key encapsulation over two hidden rings for quantum-safe key encapsulation. Quantum Inf. Process. 2023, 22, 315. [Google Scholar] [CrossRef]
  2. Kuang, R.; Perepechaenko, M.; Barbeau, M. A New Post-Quantum Multivariate Polynomial Public Key Encapsulation Algorithm. Quantum Inf. Process. 2022, 21, 360. [Google Scholar] [CrossRef]
  3. Matsumoto, T.; Imai, H. Public Quadratic Polynomial-Tuples for Efficient Signature-Verification and Message-Encryption. In Proceedings of the Advances in Cryptology — EUROCRYPT ’88; Barstow, D., Brauer, W., Brinch Hansen, P., Gries, D., Luckham, D., Moler, C., Pnueli, A., Seegmüller, G., Stoer, J., Wirth, N., et al., Eds.; Berlin, Heidelberg, 1988; pp. 419–453. [Google Scholar] [CrossRef]
  4. Patarin, J. Hidden Fields Equations (HFE) and Isomorphisms of Polynomials (IP): Two New Families of Asymmetric Algorithms. In Proceedings of the Advances in Cryptology — EUROCRYPT ’96; Maurer, U., Ed.; LNCS; Berlin, Heidelberg, 1996; Vol. 1070, pp. 33–48. [Google Scholar] [CrossRef]
  5. Ding, J. A New Variant of the Matsumoto-Imai Cryptosystem through Perturbation. In Proceedings of the Public Key Cryptography – PKC 2004; Bao, F., Deng, R., Zhou, J., Eds.; LNCS; Berlin, Heidelberg, 2004; Vol. 2947, LNCS, pp. 305–318. [Google Scholar] [CrossRef]
  6. Ding, J.; Yang, B.Y. Multivariate Public Key Cryptography. In Post-Quantum Cryptography; Springer Berlin Heidelberg: Berlin, Heidelberg, 2009; pp. 193–241. [Google Scholar] [CrossRef]
  7. Ding, J.; Schmidt, D. Rainbow, a New Multivariable Polynomial Signature Scheme. In Proceedings of the Applied Cryptography and Network Security; Ioannidis, J., Keromytis, A.D., Yung, M., Eds.; LNCS; Berlin, Heidelberg, 2005; Vol. 3531, pp. 164–175. [Google Scholar] [CrossRef]
  8. Beullens, W. Breaking Rainbow Takes a Weekend on a Laptop. Cryptology ePrint Archive, Report 2022/214. 2022. Available online: https://eprint.iacr.org/2022/214.
  9. Johnson, D. Evolutions in Knapsack Cryptology. PhD thesis, Carleton University, Ottawa, Ontario, Canada, 2025. [Google Scholar] [CrossRef]
  10. Merkle, R.C. Secure communications over insecure channels. Commun. ACM 1978, 21, 294–299. [Google Scholar] [CrossRef]
  11. Shor, P.W. Algorithms for Quantum Computation: Discrete Logarithms and Factoring. In Proceedings of the Proceedings of the 35th Annual Symposium on Foundations of Computer Science, 1994; pp. 124–134. [Google Scholar] [CrossRef]
  12. National Institute of Standards and Technology. Post-Quantum Cryptography Standardization: Minimum Acceptability Requirements. NIST Computer Security Resource Center. 2017. Available online: https://csrc.nist.gov/projects/post-quantum-cryptography/post-quantum-cryptography-standardization/minimum-acceptability-requirements.
  13. National Institute of Standards and Technology. FIPS 203: Module-Lattice-Based Key-Encapsulation Mechanism Standard. ML-KEM (formerly CRYSTALSKyber). 2024. Available online: https://csrc.nist.gov/pubs/fips/203/final.
  14. National Institute of Standards and Technology. FIPS 204: Module-Lattice-Based Digital Signature Standard. ML-DSA (formerly CRYSTALS-Dilithium). 2024. Available online: https://csrc.nist.gov/pubs/fips/204/final.
  15. Fouque, P.A.; Hoffstein, J.; Kirchner, P.; Lyubashevsky, V.; Pornin, T.; Prest, T.; Ricosset, T.; Seiler, G.; Whyte, W.; Zhang, Z. Falcon: Fast-Fourier Lattice-based Compact Signatures over NTRU Specification v1.2, NIST PQC Round 3 Submission. 2020. Available online: https://falcon-sign.info/falcon.pdf.
  16. Aumasson, J.P.; Bernstein, D.J.; Beullens, W.; Dobraunig, C.; Eichlseder, M.; Fluhrer, S.; Gazdag, S.L.; Hülsing, A.; Kampanakis, P.; Kölbl, S.; et al. SPHINCS+: Stateless Hash-Based Signatures. NIST Post-Quantum Cryptography Standardization Round 3 Submission, v3.1. 2022. Available online: https://sphincs.org/data/sphincs+-r3.1-specification.pdf.
  17. National Institute of Standards and Technology. FIPS 205: Stateless Hash-Based Digital Signature Standard. SLH-DSA (formerly SPHINCS+). 2024. Available online: https://csrc.nist.gov/pubs/fips/205/final.
  18. McEliece, R.J. A Public-Key Cryptosystem Based On Algebraic Coding Theory. In DSN Progress Report 42-44; 1978; pp. 114–116. Available online: https://tda.jpl.nasa.gov/progress_report/42-44/44N.PDF.
  19. Albrecht, M.R.; Bernstein, D.J.; Chou, T.; Cid, C.; Gilcher, J.; Lange, T.; Maram, V.; von Maurich, I.; Misoczki, R.; Niederhagen, R.; et al. Classic McEliece: Conservative Code-Based Cryptography. NIST Post-Quantum Cryptography Standardization Round 3 Submission. 2020. Available online: https://classic.mceliece.org.
  20. Bernstein, D.J.; Chuengsatiansup, C.; Lange, T.; van Vredendaal, C. NTRU Prime: round 2. Technical Report NIST PQC Standardization Process, National Institute of Standards and Technology. 2019. Available online: https://ntruprime.cr.yp.to/nist/ntruprime-20190330.pdf (accessed on 19 August 2026).
  21. Jao, D.; Azarderakhsh, R.; Campagna, M.; Costello, C.; Feo, L.D.; Hess, B.; Jalali, A.; Koziel, B.; LaMacchia, B.; Longa, P.; et al. Supersingular Isogeny Key Encapsulation (SIKE). NIST Post-Quantum Cryptography Standardization Round 2 Submission. 2020. Available online: https://sike.org.
  22. Castryck, W.; Decru, T. An Efficient Key Recovery Attack on SIDH (Preliminary Version). Cryptology ePrint Archive, Report 2022/975. 2022. Available online: https://eprint.iacr.org/2022/975.
  23. Faugère, J.C.; Levy-dit Vehel, F.; Perret, L. Cryptanalysis of MinRank. In Proceedings of the Advances in Cryptology — CRYPTO 2008; Lecture Notes in Computer Science; Springer, 2008; Vol. 5157, pp. 280–296. [Google Scholar] [CrossRef]
  24. Faugère, J.C. Solving Structured Polynomial Systems and Applications to Cryptology. In Proceedings of the Computer Algebra in Scientific Computing (CASC 2009); Lecture Notes in Computer Science; Springer, 2009; Vol. 5743, pp. 79–80. [Google Scholar] [CrossRef]
  25. Petit, C.; Quisquater, J.J. On Polynomial Systems Arising from a Weil Descent. In Proceedings of the Advances in Cryptology — ASIACRYPT 2012; Lecture Notes in Computer Science; Springer, 2012; Vol. 7658, pp. 451–466. [Google Scholar] [CrossRef]
  26. Boneh, D.; Lipton, R.J. Algorithms for Black-Box Fields and Their Application to Cryptography. In Proceedings of the Advances in Cryptology — CRYPTO ’96; Lecture Notes in Computer Science; Springer, 1996; Vol. 1109, pp. 283–297. [Google Scholar] [CrossRef]
  27. Coppersmith, D. Small Solutions to Polynomial Equations, and Low Exponent RSA Vulnerabilities. J. Cryptol. 1997, 10, 233–260. [Google Scholar] [CrossRef]
  28. Selim, A.; Saračević, M.; Ćatović, A. Homomorphic Cryptographic Scheme Based on Nilpotent Lie Algebras for Post-Quantum Security. Symmetry 2025, 17, 1666. [Google Scholar] [CrossRef]
  29. Fujisaki, E.; Okamoto, T. Secure Integration of Asymmetric and Symmetric Encryption Schemes. In Proceedings of the 19th Annual International Cryptology Conference (CRYPTO), 1999; pp. 537–554. [Google Scholar] [CrossRef]
  30. Hofheinz, D.; Hövelmanns, K.; Kiltz, E. A Modular Analysis of the Fujisaki-Okamoto Transformation. In Proceedings of the 15th Theory of Cryptography Conference (TCC), 2017; pp. 341–371. [Google Scholar] [CrossRef]
  31. Jiang, H.; Zhang, Z.; Chen, L.; Wang, H.; Ma, Z. IND-CCA-Secure Key Encapsulation Mechanism in the Quantum Random Oracle Model, Revisited. In Proceedings of the 38th Annual International Cryptology Conference (CRYPTO), 2018. [Google Scholar] [CrossRef]
  32. Jiang, S.; Wang, H. Plaintext-Awareness of Hybrid Encryption. In Proceedings of the Topics in Cryptology – CT-RSA 2010, The Cryptographers’ Track at the RSA Conference 2010, Proceedings; 2010, Lecture Notes in Computer Science; Springer; Vol. 5985, pp. 57–72. [CrossRef]
  33. Seurin, Y.; Treger, J. A Robust and Plaintext-Aware Variant of Signed ElGamal Encryption. In Proceedings of the Topics in Cryptology – CT-RSA 2013, The Cryptographers’ Track at the RSA Conference 2013, Proceedings; 2013, Lecture Notes in Computer Science; Springer; Vol. 7779, pp. 381–397. [CrossRef]
  34. Chen, K.; Miyaji, A.; Chen, J. Generic CCA Secure Key Homomorphic KEM and Updatable Public Key Encryption. In Proceedings of the Information Security Practice and Experience – 19th International Conference, ISPEC 2024, Wuhan, China, October 25-27, 2024, Proceedings; Xia, Z., Chen, J., Eds.; Lecture Notes in Computer Science; Springer, 2024; Vol. 15053, pp. 168–185. [Google Scholar] [CrossRef]
  35. Cohn, H.; Heninger, N. Approximate Common Divisors via Lattices. Cryptology ePrint Archive, Paper 2011/437. 2011. Available online: https://eprint.iacr.org/2011/437.
  36. Galbraith, S.D.; Gebregiyorgis; Murphy, S. Algorithms for the Approximate Common Divisor Problem. Cryptology ePrint Archive, Paper 2016/215. 2016. Available online: https://eprint.iacr.org/2016/215.
  37. Xu, J.; Sarkar, S.; Hu, L. Revisiting Orthogonal Lattice Attacks on Approximate Common Divisor Problems and their Applications. Cryptology ePrint Archive, Paper 2018/1208. 2018. Available online: https://eprint.iacr.org/2018/1208.
  38. Notarnicola, L.; Wiese, G. The Hidden Lattice Problem. Cryptology ePrint Archive, Paper 2021/1491. 2021. Available online: https://eprint.iacr.org/2021/1491.
  39. Grover, L.K. A fast quantum mechanical algorithm for database search. In Proceedings of the Proceedings of the twenty-eighth annual ACM symposium on Theory of computing, New York, NY, USA, 1996; pp. 212–219. [Google Scholar] [CrossRef]
  40. Howgrave-Graham, N. Approximate Integer Common Divisors. In Proceedings of the Cryptography and Lattices (CaLC); LNCS; Springer, 2001; Vol. 2146, pp. 51–66. [Google Scholar] [CrossRef]
  41. Wigert, S. Sur l’ordre de grandeur du nombre des diviseurs d’un entier. Ark. För Mat. Astron. Och Fys. 1907, 3, 1–9. [Google Scholar]
Figure 1. Three-layer key generation architecture for D-HPPK. The three sequential transformations (Division Invariant, Addition Invariant with random masking, Multiplication Invariant with hidden ring embedding) generate the public key PK and secret key SK . Intermediate values shown in the discarded block are permanently removed.
Figure 1. Three-layer key generation architecture for D-HPPK. The three sequential transformations (Division Invariant, Addition Invariant with random masking, Multiplication Invariant with hidden ring embedding) generate the public key PK and secret key SK . Intermediate values shown in the discarded block are permanently removed.
Preprints 235639 g001
Figure 2. Encapsulation and decapsulation flow for the D-HPPK IND-CCA2 KEM. The double-encryption consistency check ensures that only ciphertexts decrypting to the same ephemeral secret x are accepted.
Figure 2. Encapsulation and decapsulation flow for the D-HPPK IND-CCA2 KEM. The double-encryption consistency check ensures that only ciphertexts decrypting to the same ephemeral secret x are accepted.
Preprints 235639 g002
Figure 3. Security dependency structure for D-HPPK KEM. Four of the five assumptions support the IND-CCA2 proof of Theorem 3: HMPP and MRP 2 (the two search-based paths), Structured D-HMPP (adaptive reduction of the collision assumption), and pairwise decryption-collision resistance (Assumption 5). The fifth, standalone D-HMPP (Assumption 2), supports the cryptanalysis of Section 4.5 but does not appear directly in the bound. Marginal uniformity of the decryption output is proved from the hidden-ring modular reduction (Lemmas 1 and 2).
Figure 3. Security dependency structure for D-HPPK KEM. Four of the five assumptions support the IND-CCA2 proof of Theorem 3: HMPP and MRP 2 (the two search-based paths), Structured D-HMPP (adaptive reduction of the collision assumption), and pairwise decryption-collision resistance (Assumption 5). The fifth, standalone D-HMPP (Assumption 2), supports the cryptanalysis of Section 4.5 but does not appear directly in the bound. Marginal uniformity of the decryption output is proved from the hidden-ring modular reduction (Lemmas 1 and 2).
Preprints 235639 g003
Figure 4. Cycle counts (k-cycles) for D-HPPK IND-CCA2 KEM across security levels. Values are the same as in Table 5.
Figure 4. Cycle counts (k-cycles) for D-HPPK IND-CCA2 KEM across security levels. Values are the same as in Table 5.
Preprints 235639 g004
Table 1. Comparison of the double-encryption construction (this work) with a hypothetical FO transform applied to D-HPPK. The FO figures assume the encryption is derandomized. Ciphertext sizes are for l = 256 .
Table 1. Comparison of the double-encryption construction (this work) with a hypothetical FO transform applied to D-HPPK. The FO figures assume the encryption is derandomized. Ciphertext sizes are for l = 256 .
Property Double encryption FO (hypothetical)
Ciphertext size (B) 392 196
Encapsulation operations 2 Enc 1 Enc
Decapsulation operations 2 Dec + check 1 Dec + 1 re-Enc + check
Re-encryption available No Required
Base PKE security analysis Unchanged Must be redone
IND-CCA2 proof Direct (this work) Standard FO
Table 2. Summary of attacks on HMPP. Complexity is classical.
Table 2. Summary of attacks on HMPP. Complexity is classical.
Attack Complexity Status
Elementary GCD (two guesses) 2 2 l · poly ( L ) Rigorous
Single-guess + lattice (ACD template) 2 l · poly ( L ) Heuristic
Algebraic (rational, Gröbner) No improvement Examined
Statistical (cofactor, gcd, bias) No improvement Examined
Bézout-combination (LRA) Blocked by masking Not applicable
Full-sample lattice Open Invited
Table 3. D-HPPK concrete parameters. The security level is l = ⌈ log 2 p ⌉ bits, assigned under the NIST search-based convention of Section 1.2.
Table 3. D-HPPK concrete parameters. The security level is l = ⌈ log 2 p ⌉ bits, assigned under the NIST search-based convention of Section 1.2.
Level I Level III Level V
l = ⌈ log 2 p ⌉ (bits) 128 192 256
L = 2 l + 8 (bits) 264 392 520
Field element size (B) 16 24 32
Hidden-ring element size (B) 33 49 65
Public key size (B) 626 930 1234
Secret key size (B) 196 292 388
Ciphertext size (CPA, B) 100 148 196
Ciphertext size (CCA2, B) 200 296 392
Table 4. Field-operation counts for D-HPPK IND-CCA2 KEM ( n = 2 , m = 3 ). The counts are algorithm-independent.
Table 4. Field-operation counts for D-HPPK IND-CCA2 KEM ( n = 2 , m = 3 ). The counts are algorithm-independent.
Operation KeyGen Encap Decap
Random number generations 23 5 0
Modular multiplications (over F p ) 77 18 8
Large integer multiplications 18 18 2
Large integer modular inversions 2 0 0
Hashing (SHA-256) 0 1 1
Table 5. D-HPPK IND-CCA2 KEM performance (k-cycles) on the reference platform. Averages over 10,000 iterations after a 1,000-iteration warm-up; standard deviations below 5%.
Table 5. D-HPPK IND-CCA2 KEM performance (k-cycles) on the reference platform. Averages over 10,000 iterations after a 1,000-iteration warm-up; standard deviations below 5%.
Parameter KeyGen Encap Decap
l = 128 23.7 6.6 11.0
l = 192 32.9 8.2 14.9
l = 256 41.7 9.3 18.0
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.
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.