Conceptio › Archive › arXiv CS
arXiv CS open access

AoNT Trap: Borromean-Entangled Mutable Chameleon Trapdoor Hash All-or-Nothing Stream Cipher

2026 · arxiv_cs
arXiv CS · Papers · 2026
Open Source ↗Direct PDF ↓
cryptographycybersecurityprivacysecurity
Conceptio Open Archive

Analyze & explore related research in Conceptio

Connect this record directly into your research workflow or AI agent. Explore citations across open repositories, query full text, and export structured proof bundles.

AoNT Trap: Borromean-Entangled Mutable Chameleon Trapdoor Hash All-or-Nothing Stream Cipher

arXiv:2608.18403v1 [cs.CR] 19 Aug 2026

Victor Kebande Department of Computer Science University of Colorado Denver 1380 Lawrence Street, Denver, Colorado, 80204, USA.

Contributing authors: victor.kebande@ucdenver.edu; Abstract This work introduces the Borromean-Entangled Chameleon Trapdoor Hash All-or-Nothing (AoNT) Stream Cipher (BEC-Trap), a novel construction that merges Borromean interdependence, trapdoor-enabled mutability, and streaming encryption into a unified framework. The (BEC-Trap) cipher links key (K), initialization vector (V ), and internal state (St ) in a Borromean structure, ensuring that breaking, guessing, or removing any one component collapses the entire keystream, providing a computational (AoNT) interdependence under standard cryptographic assumptions. A chameleon trapdoor hash is integrated to permit controlled collisions, enabling seamless rekeying, (V ) refresh, and state rotation without resynchronizing endpoints. This design provides confidentiality, forward secrecy, and adaptive key management with low computational overhead, making it suitable for high-throughput secure messaging, IoT communications, and privacy-preserving blockchain channels. Security analysis of the (BEC-Trap) shows that the construction is resistant to key-recovery attacks, state compromise, and desynchronization attempts, delivering a robust cryptographic primitive for next-generation secure communications. Keywords: Borromean, interdependence, Trapdoor hash, Chameleon hash, Stream cipher, All-or-Nothing encryption, cryptanalysis, Adaptive rekeying, Controlled collisions

1

1 Introduction Continued evolution of the stream ciphers as fundamental primitives in modern symmetric cryptography has seen them prized for their high throughput, low latency, and efficient implementation in hardware and software environments[1, 2]. In contrast to the block ciphers that operate on fixed-size data units, the stream ciphers are able to produce a continuous pseudo-random keystream that is combined with plaintext using simple operations such as XOR [3]. This continuous pseudo-random keystream generation property enables the stream ciphers to encrypt data on-the-fly [4]. As a result, this makes them ideal for environments that need real-time responsiveness like wireless communications [5], embedded systems, and Internet-of-Things (IoT) devices [2]. However, despite the stream cipher’s efficiency, traditional stream ciphers suffer from critical limitations concerning key management, synchronization, and resilience to partial compromise. It has been observed that once the stream ciphers are initialized, their internal states are able to evolve deterministically, and as such, a leakage or corruption of the key (K), Initialization Vector(V ), or Internal State (St ) often results in catastrophic failure or complete exposure of the keystream. There exist several well-known stream cipher families, like Chacha [6], ChaCha20 [7], EChaCha20 [8] Salsa20 [9], Grain[10], and Trivium [11], that have achieved significant success in speed and diffusion strength. However, their architectures typically treat the K , V , and St as distinct entities with limited interdependence. This structural separation introduces potential security risks. For example, an adversary that is capable of isolating or predicting one of the components (key, IV or the internal state) component may exploit it to infer partial keystreams, mount state-recovery attacks, or cause desynchronization between communicating endpoints. In addition to this, conventional rekeying mechanisms rely on session restarts or state regeneration. This in the long run incurs synchronization costs and increase s the vulnerability window in dynamic communication systems. Given the evolving cyber threat landscape particularly in secure communication, decentralized and adaptive ecosystems, there is a need for a more cohesive secure-centric paradigm that unifies interdependence, adaptability, and cryptographic accountability. To this end, we introduce a fundamentally new stream cipher architecture that integrates these properties into a unified framework herein referred to as Borromean-Entangled Chameleon Trapdoor Hash All-or-Nothing Stream Cipher (BEC-Trap). The design of BEC-Trap draws its inspiration from three distinct yet complementary cryptographic and mathematical constructs. First, the we leverage the Borromean ring model [12], which introduces structural interdependence among the (key, IV and the cipher state). Second a chameleon trapdoor hash mechanism provides controlled mutability and authorized collision generation. Third, an all-or-nothing, (AoNT) security property [13], provides a computational interdependence under standard cryptographic assumptions. It guarantees that partial exposure of the cipher’s internal components yields no meaningful information about the keystream or plaintext. The contributions of this paper are as follows:

2

• We propose BEC-Trap, a novel stream cipher architecture that unifies Borromean interdependence, trapdoor-based mutability, and all-or-nothing (AoNT) security within a single cryptographic framework. • We introduce a Borromean linkage model a that mathematically couples the (key, IV and the internal state), ensuring total interdependence such that the compromise of any element disrupts the entire keystream. • We integrate a chameleon trapdoor hash layer that enables controlled collisions for authorized rekeying and state refresh without requiring full session reinitialization or desynchronization. • We conduct a comprehensive security and performance analysis, demonstrating robustness against key-recovery, exposure and state-compromise, and resistance to attacks while maintaining low computational overhead. The remainder of this paper is organized as follows: Section II discuss the Background of Borromean Rings’s and Trapdoor Hash foundations. This is then followed by Section III and IV that discusses the Related Work and Research Gap respectively. After this, the Threat Model and the Methodology are discussed in Section V and VI respectively. Next, the Experiments are discussed in Section VII followed by the Results in Section VIII. An Security and Perfomance Analysis is given in Section IX and X respectively followed by a Theoretical Validation in Section XI. The paper ends with a Conclusion and a mention of Future Work in Section XII.

2 Background 2.1 Borromean Rings The Borromean rings are a classical object in topology and knot theory, consisting of three interlocked rings that form a single connected structure, even though no two rings are directly linked to one another [14]. If any one ring is removed, the remaining two become completely unlinked. This configuration illustrates a fundamental principle of interdependence and nontrivial linking, serving as a canonical example of a Brunnian link, which is a link that becomes disconnected when any component is removed [15]. The Borromean rings derive their name from the Italian Borromeo family, whose coat of arms from the Renaissance period prominently featured three interlaced rings as a symbol of strength through unity [16]. Over time, this configuration has appeared in diverse contexts, from medieval art and religious symbolism to modern physics and mathematics, representing harmony, balance, and mutual dependence. From a mathematical standpoint, the Borromean rings can be rigorously described using concepts from algebraic topology [17]. From Figure 1, it is evident that each ring is shown from Figure 1, Li can be viewed as an embedding of the circle S 1 into three-dimensional Euclidean space, such that the entire configuration L = (L1 , L2 , L3 ) forms a three-component link in R3 as is shown in Equation 1. The remarkable feature of this link is that all pairwise linking numbers vanish: Link(Li , Lj ) = 0,

3

∀ i ̸= j

(1)

yet the total link L is nontrivial. This property implies that no two rings are directly coupled [14], but the overall system cannot be decomposed into disjoint parts without severing at least one component. Important to note is that, the linkage is preserved not through pairwise entanglement but through the collective spatial embedding of all three components.

Fig. 1 Borromean rings represented as three interlocked loops L1 , L2 , and L3 in R3 . Each ring is individually unlinked from the others, yet the entire configuration forms a nontrivial link that becomes disconnected upon the removal of any one component.

Consequently, from a topological perspective, the Borromean rings are often used to illustrate higher-order linking phenomena [17]. Their complement in three-dimensional space has a hyperbolic structure [18] [19], and they serve as one of the simplest examples of a nontrivial link with vanishing pairwise linking numbers. The minimal crossing number of the Borromean rings is six, and the configuration has been extensively studied in knot theory as an example of nontrivial linking with trivial pairwise interactions. In addition, the Borromean structure embodies the same fundamental principle: stability and coherence arise not from pairwise bonds but from the interdependence of all components in the system. Furthermore, each component Li that is shown in Figure 1 of the Borromean rings can be parametrically represented using trigonometric embeddings in toroidal coordinates, ensuring rotational symmetry and equal geometric constraints. These parameterizations reveal that the rings occupy distinct, yet interdependent, planes in three-dimensional space, maintaining perfect symmetry about the origin. Removing any one component causes the system’s embedding to collapse into three disjoint circles, thereby confirming the topological rule that the integrity of the Borromean structure depends on the simultaneous existence of L1 , L2 , and L3 .

4

2.2 Trapdoor Hash Foundations Trapdoor hash functions THF are a class of cryptographic primitives that are able to combine the one-wayness of conventional hash functions, with the selective reversibility enabled by a hidden secret [20], referred to as the trapdoor. The THF are designed as follows: For any given input, the hash output can be efficiently computed by all users, but only the possessor of the trapdoor can generate a controlled collision that is, a distinct input that produces the same hash value [21]. This capability introduces asymmetry: the function remains collision-resistant for everyone except the authorized entity in possession of the trapdoor. Formally, we let H denote a family of hash functions parameterized by a public key pk and a secret trapdoor t. The THF system is defined by three algorithms: (Gen, Hash, Collide) where:

• Gen(1λ ) is a probabilistic key generation algorithm that, given a security parameter λ, outputs a pair (pk, t), where pk are public parameters and t is the trapdoor. • Hashpk (m, r) is a public algorithm that maps a message m and random nonce r to a digest h, such that h = Hashpk (m, r). • Collidet (m, r, m′ ) is a deterministic algorithm that, given t, computes a value r′ such that: Hashpk (m, r) = Hashpk (m′ , r′ ) (2) For any entity lacking the trapdoor t, finding such a pair (m′ , r′ ) is computationally infeasible as is shown in Equation 2, assuming standard hardness assumptions such as the discrete logarithm problem or integer factorization. This construction ensures that while the hash function behaves like a conventional one-way function for the public, it offers controlled mutability for authorized entities. Trapdoor hashes are built upon trapdoor one-way functions [22], which are functions f (x) that are easy to compute but hard to invert without special knowledge. A simple example is an RSA-based trapdoor hash. We let n = pq be the product of two large primes, and let e and d be public and private exponents satisfying ed ≡ 1 (mod ϕ(n)) [23]. The public hash may be defined as is shown in Equation 3:

h = (g m · re ) mod n

(3)

where g and r are elements of Z∗n . Without knowing d, finding another pair (m′ , r′ ) that yields the same h requires solving the discrete logarithm modulo n, which is computationally infeasible [22, 24]. However, the trapdoor holder (who knows d) can compute r′ , [21] (Equation 4) such that: ′

r′ = r · (g m−m )d mod n

(4)

thereby generating a valid collision in constant time. This mathematical asymmetry underlies the core security property of trapdoor hash functions.

5

Fig. 2 Process flow of a Trapdoor Hash Function.

Figure 2 shows the Process flow of a trapdoor hash function. The system begins with key generation Gen(1λ ) → (pk, t) in the step labeled 1, which produces public parameters pk and a secret trapdoor t. Using pk , the hash function Hashpk (m, r) computes a digest h from message m and random nonce r in the process labeled 2. In Step 3, the trapdoor holder can invoke Collidet (m, r, m′ ) to generate an alternative r′ that yields the same digest, demonstrating controlled collision capability. The Verify(pk, m, r, h) procedure in Step 4 allows public verification of the hash without revealing or using the trapdoor. Generally, Trapdoor hashes are able to balance two competing cryptographic principles: immutability and accountability [25, 26]. They maintain the one-wayness and collision-resistance properties essential for data integrity, while the existence of a trapdoor introduces an additional layer of flexibility and verifiable control . This property is crucial in systems requiring controlled redaction, revocation, or reversible commitment, such as chameleon hash functions, redactable blockchains, and verifiable audit logs. It is worth noting that, the trapdoor acts as a hidden mechanism that transforms an otherwise irreversible function into a selectively mutable one [27]. Moreover, the hash remains immutable to the public, yet the trapdoor enables an authorized entity to introduce structured and traceable modifications. This dual characteristic makes trapdoor hashes an important function in the design of adaptive cryptographic systems.

6

3 Related Work The development of stream ciphers has undergone several evolutionary stages, shaped by the increasing demand for lightweight, high-speed encryption mechanisms suitable for diverse platforms ranging from embedded sensors to high-performance communication systems. Classical designs such as RC4 [28], A5/1 [29], and E0 [30] laid the early foundation for stream encryption but were later found to be vulnerable to bias and key recovery attacks. also, modern stream ciphers like ChaCha20 [6, 7], EChacha20[8], Salsa20[9], Grain[10], and Trivium [11] introduced improved diffusion, non-linearity, and resistance to statistical cryptanalysis, achieving both speed and reliability. Nevertheless, it has been observed that these designs often treat the treat the key, IV, and internal state as distinct elements with minimal cryptographic coupling. Once initialized, the internal state evolves deterministically, which makes synchronization recovery and state rekeying non-trivial tasks. As a result, the compromise of any single component can undermine the confidentiality or availability of the entire cipher.

3.1 Stream Ciphers and Rekeying Mechanisms Recent research has emphasized rekeying and key agility as essential features for longlived secure sessions [31]. Approaches such as key-evolution schemes and state refresh protocols have been proposed to periodically regenerate keys without disrupting the keystream. For example, Trivium and Grain support initialization-dependent states that provide limited protection against known-state attacks [32]. However, they still rely on fixed initialization structures, and rekeying typically requires a full reinitialization of the cipher. Works focusing on adaptive stream ciphers [33], have attempted to incorporate rekeying intervals and state entropy refresh techniques, but none provide a structure where treat the key, IV, and state are intrinsically interdependent. This motivates the need for a new paradigm that ensures the security of one element cannot be analyzed or exploited in isolation from the others.

3.2 All-or-Nothing Transforms in Cryptography The concept of All-or-Nothing Transforms ( AoNT) was first introduced by Rivest [13] as a preprocessing step designed to make data unintelligible unless all transformed blocks are available. In essence, an AoNT is a reversible transformation T applied to a plaintext P that produces an intermediate form T (P ) such that knowledge of any proper subset of T (P ) reveals no information about P . Only when all parts of T (P ) are known can the inverse transformation T −1 be applied to reconstruct the original plaintext. This property ensures that partial exposure of ciphertext or intermediate data provides no computational advantage, thereby strengthening confidentiality. An AoNT can be defined as a bijective mapping T : {0, 1}n → {0, 1}n that satisfies two key properties: (1) the transformation is efficiently computable in both directions, and (2) given any subset of the output bits smaller than n, the entropy of the original input remains maximal. These properties distinguish AoNTs from encryption functions while AoNTs provide diffusion and uncertainty, they are not keyed operations and therefore serve as cryptographic wrappers rather than standalone ciphers.

7

Subsequent research extended Rivest’s original work through formal constructions and optimizations. Canetti and Krawczyk [34] introduced key-exposure resilient variants in which AoNTs were used to enhance block cipher robustness against partial key compromise. Their framework formalized the notion that an attacker who learns any subset of encrypted blocks without possessing the entire ciphertext cannot feasibly recover the plaintext. McEvoy et al. [35] later demonstrated the practical applicability of AoNTs to mitigate side-channel and fault-injection attacks, emphasizing their role as a lightweight obfuscation layer that distributes cryptographic dependencies across all processed blocks. While AoNTs have been extensively studied in block cipher and file encryption settings, their use in streaming contexts remains comparatively limited. The primary challenge arises from maintaining real-time data flow and synchronization, stream ciphers inherently operate on continuous bit or byte sequences, whereas AoNTs rely on complete data units to enforce their all-or-nothing property.

3.3 Chameleon Hash Functions and Trapdoor Mechanisms Chameleon hash functions extend the trapdoor-hash paradigm by enabling controlled collision generation while preserving public verifiability. Introduced in the context of chameleon signatures [36], a chameleon hash is a randomized mapping as is shown in Equation 5. CHpk : (m, r) 7→ h (5) This is defined with respect to public parameters pk and a secret trapdoor t. For any adversary without t, CH is computationally collision-resistant; however, a holder of t can efficiently compute, for any target message m′ , an r′ such that CHpk (m, r) = CHpk (m′ , r′ ). Canonical discrete-logarithm instantiations use a cyclic group G = ⟨g⟩ of prime order q with public key y = g x and define as in Equation 6.

h = g r y m, ′

r′ ≡ r + x(m − m′ )

′

(mod q )

(6)

so that h = g r y m while finding such (m′ , r′ ) without x is as hard as the discretelog problem. RSA-based and pairing-based realizations provide analogous trapdoor algebra [37]. Beyond their original use in chameleon (redactable) signatures [36, 37], chameleon hashes underpin sanitizable and redactable signature families, accountable logging, and policy-driven data redaction, where an authorized party may update content without invalidating public commitments [38]. Recent works refine the security model with notions such as full collision-resistance and indistinguishability of trapdoor-induced collisions from honestly sampled hashes, tightening guarantees for composability in complex protocols [39]. Parallel lines investigate post-quantum instantiations using lattices (e.g., SIS/LWE), hash-and-sign transformations, and isogeny-style groups to remove dependence on discrete-log/RS A assumptions while preserving efficient collision derivation for trapdoor holders [40, 41]. These advances broaden the deployment space to settings that demand long-term security. The chameleon property supports authorized mutability with accountability : updates require possession of t and leave a verifiable relation between old and new 8

openings, enabling auditability and revocation policies. Constructions have been tailored for applications such as redactable blockchain records and verifiable media revision, where the hash digest remains stable while content evolves under policy control [42, 43]. Despite this maturity on the public-key side, the integration of chameleon hashing inside symmetric pipelines remains comparatively unexplored: most systems treat the chameleon layer as an external commitment/metadata mechanism rather than as a state-bearing component of encryption.

3.4 Borromean Cryptographic Constructions The first explicit application of this concept appeared in the work of Maxwell and Poelstra [44], who introduced Borromean Ring Signatures as an efficient zero-knowledge proof mechanism for demonstrating possession of multiple secrets without revealing which specific keys are used. Their scheme achieved compactness and verification efficiency by linking multiple one-of-many proofs through a single challenge, thereby encoding a Borromean-like dependency among sub-signatures. This construction was later deployed in privacy-preserving cryptocurrency systems such as Monero, where it supports unlinkable multi-output transactions while maintaining global verification consistency. Beyond classical Borromean ring signatures, recent research has explored postquantum extensions grounded in lattice assumptions. Ren et al. [45] proposed an efficient lattice-based linkable ring signature scheme that achieves scalability across multiple layers of linkage, ensuring both anonymity and traceability in complex multi-signer environments. Their construction replaces number-theoretic hardness assumptions with lattice-based primitives such as the Learning With Errors (LWE) problem, providing resistance against quantum attacks. The scheme’s hierarchical linkage structure conceptually parallels the Borromean principle of multiple interdependent rings (or layers) maintain overall linkage integrity while individual sub-rings remain unlinkable in isolation. This layered lattice-based design demonstrates how Borromean interdependence can be reinterpreted in post-quantum settings, highlighting the growing trend of using structural entanglement to reinforce multi-party security and accountability. However, these works remain focused on public-key proofs and signature aggregation, leaving unexplored the integration of such interlinked dependencies into symmetric stream-cipher architectures, as addressed in our proposed BEC-Trap framework. More recently, Kasimatis et al. [46] proposed a Ring Signature DID Architecture, integrating Borromean-style ring signatures into decentralized identifier (DID) ecosystems to achieve collective verifiability among multiple identity credentials. These developments illustrate the growing relevance of Borromean-inspired interlinking as a design pattern for systems requiring joint validation or interdependent trust anchors. Subsequent research extended this idea to more general cryptographic frameworks. Brzuska et al. [47] and Ateniese et al. [37] employed related interdependence concepts in redactable and sanitizable signatures, showing that cryptographic authenticity could coexist with controlled mutability under well-defined structural constraints.

9

Fig. 3 Threat model of the proposed BEC-Trap cipher showing the Borromean linkage among key (K), IV (V ), and state (St ).

The author of this paper argues that, despite these advances, existing Borromean cryptographic constructions primarily operate in the asymmetric domain, thus relying on public-key signatures or commitments. Their use in symmetric or streaming contexts remains unexplored at the time of writing this paper.

4 Research Gap Despite the significant progress in modern cryptographic research, it has been seen that existing cryptographic primitives continue to treat adaptability, interdependence, and mutability as isolated design concerns rather than as a unified property of secure systems. It has also been observed that traditional stream ciphers such as ChaCha20 [7], Grain [10], and Trivium [11] offer excellent diffusion and efficiency but lack intrinsic

10

coupling among the K , V , and St . Once these ciphers are initialized, their evolution is deterministic and independent, which exposes vulnerabilities to key recovery, state compromise, and synchronization attacks. Meanwhile, rekeying strategies typically rely on reinitialization or session restarts, introducing latency and increasing the window of exposure. The All-or-Nothing Transforms ( AoNTs) [13] provide an elegant solution for block ciphers by ensuring that partial data or ciphertext leakage yields no meaningful information. However, AoNTs are rarely integrated into streaming contexts due to their dependence on complete data blocks, which conflicts with real-time encryption requirements. Similarly, trapdoor hash and chameleon hash functions have proven effective in enabling authorized mutability and accountability within digital signatures [48], redactable ledgers [49], and blockchain protocols [50], but their integration within symmetric encryption and key-evolution mechanisms remains underexplored at the time of writing this paper. That notwithstanding, the Borromean-inspired cryptographic constructions like the Borromean ring signatures [44], shows structural interdependence and compact verifiability in asymmetric systems. Yet, at the time of writing this paper, there is no existing symmetric or stream cipher designs that leverages Borromean interdependence as an operational principle in cryptography. The collective security and collapse-oncompromise behavior exhibited by Borromean structures remain largely metaphorical rather than functionally instantiated within encryption mechanisms. Three concise shortcomings have been revelaed by the current body of research as folllows: The existing stream ciphers lack structural interdependence, treating the K , V , or the St as independent elements. These parameter are rather supposed to be treated as a unified cryptographic constructs. Not treating them as such weakens resistance to partial compromise. Also, there is limited authorized mutability, since trapdoor and chameleon hash functions remain largely confined to asymmetric applications and have not been embedded into symmetric designs to support verifiable, dynamic rekeying. Also, an absence of intrinsic all-or-nothing behavior persists, as existing AoNTs function externally to cipher operations rather than being inherently integrated within their core algorithmic processes. These limitations motivate the need for a unified model that entangles (key, IV and the state).

5 Threat Model The threat model for the proposed Borromean-Entangled Chameleon Trapdoor Hash AoNTs stream cipher (BEC-Trap) assumes a computationally bounded adversary A capable of performing both passive and active cryptanalytic operations within polynomial time. The cipher operates under standard symmetric-key assumptions: the secret key K is known only to legitimate communicating parties, while the initialization vector (IV) V may be public but must remain unpredictable prior to use. The internal state St evolves through a deterministic update function coupled with trapdoor-controlled mutability, and all communications occur over an insecure channel subject to observation and manipulation.

11

The threat model illustrated in Figure 3 formalizes the operational and adversarial dynamics governing the BEC-Trap. Each numbered element in the diagram corresponds to a distinct cryptographic process or adversarial capability that collectively defines the system’s resilience model. At the entry point, (0) in Figure 3 represents the adversary A, assumed to be polynomially bounded and capable of both passive and active attacks, including eavesdropping, chosen-plaintext manipulation, key exposure, state compromise, and ciphertext modification. These attacks target different entry points within the cipher structure, but BEC-Trap enforces a collapse-on-compromise defense if any component is exposed, all linked dependencies become cryptographically invalid. The initialization phase begins with (1) the key generation process, modeled as Gen(1λ ) → (pk, t), which outputs public parameters pk and a trapdoor secret t under the security parameter λ. These values define the authorized mutability domain for the chameleon hash functions used in later operations. Next, the seed derivation process is defined as is shown in Equation 7. Seed0 = H (Q, V ⊕ G(S0 ))

(7)

where Q is a system constant, V the initialization vector, and G(S0 ) a generator applied to the initial state. This step establishes the foundational entropy source entangling all three Borromean components like key (K ), IV (V ), and state (St ) as indicated by (2) in the core interlocking triad. The (3) trapdoor secret t acts as the enabler of controlled mutability, authorizing legitimate rekeying and state evolution without breaking synchronization. This ensures that only entities possessing t can induce valid collisions in the chameleon hash system. The adversary, shown at (4), may attempt to interfere at this layer via injection, replay, or adaptive ciphertext manipulation; however, all unauthorized collisions remain computationally infeasible. The sender entity at (5) represents the legitimate encryptor transmitting over an insecure channel. Ciphertext segments are computed as is shown in Equation 8.

Ct,i+1 := P (St ∧ K, V, ν )

(8)

where P (·) denotes a permutation or mixing function operating over the Borromean interdependent inputs. The IV and key are jointly entangled with the state to ensure that any alteration in one variable disrupts the resulting keystream sequence. At (6), the chameleon hash function CHpk (m, r) produces digest h under public key pk , while the Collide(m, r, m′ , t) mechanism allows only authorized mutation through the valid trapdoor t. These controlled collisions facilitate adaptive key updates and message revalidation in secure streaming contexts. The ciphertext construction step (7) formalizes this process as is shown in Equation 9.

Ct = Pt (OB | τm , r)

(9)

where OB = f (K, V, St ) represents the Borromean operator binding the three security domains, and τm denotes the trapdoor mutation tag. 12

The block labeled (8) encapsulates the security goals of the model based on confidentiality, forward/backward secrecy, integrity via collision infeasibility, all-or-nothing resilience, and synchronization robustness. These properties ensure that no intermediate exposure leads to partial decryption or state recovery. The circular condition within (8) formally enforces the Borromean principle as is shown in Equation 10: (K ∨ V ∨ St ) \ any one =⇒ system collapse.

(10)

The arrow (9) denotes the feedback loop between ciphertext generation and security verification, signifying that each output is validated against the entangled parameters before transmission, thus completing the end-to-end security cycle. It has been observed from Figure 3 that essential structural dependencies of BEC-Trap are captured. Each layer from initialization and trapdoor management to ciphertext generation contributes to a cohesive AoNTs security architecture. Also, the interdependence of K , V , and St , combined with the chameleon trapdoor mechanism, establishes a mathematically bound system where any partial compromise enforces total cryptographic collapse.

6 Methodology This section outlines the methodological framework adopted to design, model, and evaluate the proposed Borromean-Entangled Chameleon Trapdoor Hash All-orNothing Stream Cipher (BEC-Trap). The methodology follows a structured research process, as illustrated in Fig. 4, beginning with the identification of the research gap and problem setting, followed by the formulation of the system model and two experimental scenarios, Static Session (Baseline) and Dynamic Rekeying (Adaptive Mode). Each scenario is implemented and tested under controlled experimental conditions to assess performance, resilience, and security compliance. The obtained results are then evaluated and comparatively analyzed against existing cryptographic schemes to validate the efficiency, adaptability, and robustness of the proposed design.

6.1 Problem Setting Conventional symmetric-key cryptosystems, particularly stream ciphers, achieve speed and simplicity but often sacrifice structural interdependence and adaptive resilience. In existing models such as ChaCha20, Grain, and Trivium, the key (K ), initialization vector (V ), and internal state (St ) operate as loosely coupled entities, with security relying solely on nonlinear mixing and diffusion. This independence, while efficient, creates exploitable weaknesses: once any component is exposed, the cipher’s evolution becomes predictable, compromising forward secrecy, synchronization stability, and overall integrity. The fundamental problem addressed in this research is the absence of a unified symmetric encryption model that intrinsically enforces interdependence between K , V , and St , while also supporting authorized adaptability through trapdoor-controlled mutability. Formally, the goal is to design a cryptographic system where the keystream

13

Fig. 4 Research methodology outlining the sequential flow from research gap identification to system modeling, experimentation, evaluation, and comparative analysis.

generation function as is shown in Equation 11. Γt = F (K, V, St )

(11)

exhibits Borromean dependence as is shown in equation 12, such that:

∀X ∈ {K, V, St },

I (Γt ; X ) = 0,

but I (Γt ; K, V, St ) > 0

(12)

where I (·) denotes mutual information. This ensures that the keystream can only be derived when all three elements coexist correctly, and the removal or corruption of any single component collapses the entire encryption function—achieving the all-ornothing (AON) property. Additionally, existing rekeying methods in stream ciphers rely on full session resets or external management layers, resulting in performance overhead and transient vulnerability windows. To overcome this, the proposed system introduces a chameleon trapdoor hash mechanism that enables reversible and verifiable key and state updates without reinitialization. For legitimate entities holding the trapdoor t, authorized 14

rekeying is achieved through Equation 13:

CHpk (m, r) = CHpk (m′ , r′ )

(13)

allowing controlled collisions between hash instances while maintaining global consistency and integrity. The proposed Borromean-Entangled Chameleon Trapdoor Hash All-or-Nothing Stream Cipher (BEC-Trap) therefore aims to: 1. Enforce mathematical interdependence among the key, IV, and state components such that any partial compromise renders the cipher unusable. 2. Embed trapdoor-based mutability within the encryption function to support dynamic rekeying and adaptive security without synchronization loss. 3. Preserve efficiency and low computational overhead suitable for real-time and highthroughput cryptographic applications. In summary, this problem setting establishes the need for a structurally entangled, adaptive, and verifiable symmetric cipher that unifies interdependence, mutability, and all-or-nothing resilience within a single operational framework.

6.2 System Model The proposed Borromean-Entangled Chameleon Trapdoor Hash All-or-Nothing Stream Cipher (BEC-Trap) operates as a symmetric cryptographic framework in which encryption and decryption depend on the entangled relationship among the key (K ), initialization vector (V ), and internal state (St ). The system model shown in Figure 5 enforces a Borromean interdependence such that the removal, modification, or compromise of any one of these components renders the entire encryption process nonfunctional. This coupling ensures that confidentiality, forward secrecy, and synchronization robustness emerge as intrinsic properties of the cipher rather than as externally imposed controls. The system consists of three legitimate entities and one adversarial environment:

• Sender (S) (1): Responsible for generating the plaintext stream {Pt } and performing encryption to produce ciphertexts {Ct } using the Borromean entangled parameters. • Receiver (R) (2): Possesses identical cryptographic parameters and performs decryption to recover plaintexts {Pt′ }, ensuring synchronization through the shared trapdoor secret t. • Trapdoor Authority (T ): Initializes and manages the chameleon trapdoor hash parameters by executing the key generation function as is shown in Equation 14: Gen(1λ ) → (pk, t)

(14)

where pk is the public parameter, t the private trapdoor, and λ the system security parameter.

15

Fig. 5 System model of the proposed BEC-Trap framework showing interactions among entities and the Borromean core (K, V, St ) enforcing interdependent security for confidentiality and forward secrecy.

• Adversary (A) : A polynomially bounded entity capable of performing adaptive attacks including state compromise, ciphertext injection, and chosen-plaintext analysis.

A. Initialization and Entanglement Process The cipher begins with an initialization phase (7) where the seed is derived from the combination of static and dynamic parameters is shown in Equation 15: Seed0 = H (Q, V ⊕ G(S0 ))

16

(15)

where Q is a global constant, V is the initialization vector, S0 is the initial internal state, and H (·) represents a cryptographic hash function. The generator G(·) expands the state into a high-entropy representation. This derivation embeds nonlinearity and unpredictability into the system before keystream generation begins.

B. Borromean Core Construction The encryption function is constructed around a Borromean operator OB in the Borromean Core Construction phase (6), defined as as is shown in Equation 16:

OB = f (K, V, St ),

(16)

which enforces the Borromean constraint:

∀X ∈ {K, V, St }, This condition ensures that the cryptographic linkage collapses when any one component is removed, reflecting the topological principle underlying Borromean interdependence.

C. Chameleon Trapdoor Integration A chameleon hash function (13) CHpk is incorporated into the encryption pipeline to enable authorized mutability. For a given message m and randomness r as in 17:

h = CHpk (m, r)

(17)

and for legitimate rekeying with trapdoor t as is shown in Equation 18:

CHpk (m, r) = CHpk (m′ , r′ )

(18)

This property allows the system to update or rotate cryptographic material without desynchronizing the sender and receiver, enabling adaptive resilience and long-term forward secrecy.

D. Encryption and State Evolution During this operation as is shown in (5), each ciphertext block is computed as:

Ct,i+1 = P (St ∧ K, V, ν )

(19)

where P (·) denotes a time-variant permutation or mixing function and ν represents a session counter or round parameter. The state evolves according to Equation 20:

St+1 = U (St , K, V, t)

17

(20)

where U (·) is an update function governed by the trapdoor t, ensuring nonreversibility without the legitimate parameters. This dynamic update guarantees that keystreams are non-repeatable and immune to replay or state inference attacks.

E. Decryption and Verification Decryption shown in (13) mirrors the encryption process as is shown in Equation 28:

Pt′ = D(Ct , K, V, St , t)

(21)

and includes a verification phase where ciphertext validity is confirmed through hash consistency as is shown in Equation 29: ?

CHpk (m, r) = h

(22)

This dual verification ensures that only legitimate, trapdoor-consistent ciphertexts are accepted, providing resistance against adaptive chosen-ciphertext attacks.

F. Security Properties The system model guarantees a number of properties that are shown in (9) and summarized in Table 1: Table 1 Core Security Properties of the BEC-Trap Cipher Property

Description

Confidentiality

I(Pt ; Ct ) ≈ 0 under all polynomial-time adversaries without trapdoor t. I(St ; St+n ) = 0 for n ̸= 0, ensuring temporal isolation. H(Pt | Ct − any subset) = H(Pt ), preserving full information entropy. Rekeying permitted only with valid trapdoor access t.

Forward/Backward Secrecy All-or-Nothing Integrity Controlled Mutability

F. Formal Confidentiality Definition (IND-CPA) We formalize confidentiality of (BEC-Trap) using the standard indistinguishability under chosen-plaintext attack IND-CPA model [51], adapted to stateful stream encryption.

IND-CPA Challenge In the BEC-Trap we assume that a challenger generates a secret key K and initializes a session with IV V and initial state S0 . The adversary A is given access to an encryption oracle OEnc (·). At challenge time, A submits two equal-length plaintext sequences 18

P (0) and P (1) . The challenger selects b ← {0, 1} and returns the ciphertext of P (b) under BEC-Trap. The adversary outputs a guess b′ . The advantage is defined as: Advind-cpa (λ) = Pr[b′ = b] − A

1 2

(23)

BEC-Trap is IND-CPA secure if this advantage is negligible for all polynomial-time adversaries. If all A has to do is to guess then the BEC-Trap is assumed to be secure under the prevalent cryptographic assumptions.

Confidentiality Theorem We assume that, (i) the keystream generator F(K, V, St ) is a secure pseudorandom function (PRF), and (ii) the IV/state pair is never reused under the same key. Then BEC-Trap achieves IND-CPA security. Proof Sketch. We use a standard hybrid argument. In the IND-CPA game, ciphertext blocks are computed as Ci = Pi ⊕ Γi , where Γi is produced by F. Replacing F with a truly random function yields an indistinguishable hybrid under the PRF assumption. Under IV/state uniqueness, each Γi is computationally indistinguishable from uniform and never reused, reducing encryption to a one-time pad. Therefore, (λ) ≤ Advprf Advind-cpa A F (λ)

(24)

which is negligible under the PRF assumption. As such, the system model shown in in Figure 5 formalizes BEC-Trap as a selfcontained, state-dependent cryptographic approach where the operational lifecycle like initialization, encryption, update, and verification, that is bound by Borromean coupling and secured through trapdoor-enabled mutability.

6.3 Scenario 1: Static Session (Baseline) In the static or baseline, the BEC-Trap operates under fixed cryptographic parameters where the key (K ), initialization vector (V ), and trapdoor secret (t) remain constant throughout a session. This scenario establishes the baseline performance and security characteristics against which adaptive mechanisms are later evaluated. At initialization, the cipher generates its seed through the entangled formulation as is shown in Equation 25: Seed0 = H (Q, V ⊕ G(S0 ))

(25)

and subsequently derives the initial keystream from Equation 26:

Ct = Pt ⊕ F (K, V, St )

19

(26)

Fig. 6 Process flow of encryption–decryption approach of the proposed BEC-Trap stream cipher.

where F (·) represents the Borromean permutation core combining all three elements through nonlinear mixing. The keystream generator evolves deterministically as is shown in Equation 27: St+1 = U (St , K, V ) (27) ensuring that the session remains synchronized across legitimate endpoints. Because the key and IV remain static, this configuration highlights the inherent dependency among K , V , and St . Any tampering with one variable (e.g., a modified V ′ ) leads to desynchronization and total keystream collapse, demonstrating the all-ornothing (AON) property. The receiver reconstructs plaintext as is shown in Equation 28: Pt′ = Ct ⊕ F (K, V, St ) (28) and verification is achieved through hash consistency is shown in Equation 29: ?

CHpk (m, r) = h

(29)

From a performance perspective, this baseline configuration provides an optimal reference for measuring computational efficiency, throughput, and synchronization stability in non-adaptive environments. It also allows controlled evaluation of resilience to standard attack vectors, such as key reuse or static-state inference, without the complexity of dynamic rekeying.

6.4 Scenario 2: Dynamic Rekeying (Adaptive Mode) In this configuration, the BEC-Trap extends the static session model by introducing adaptive cryptographic evolution through controlled trapdoor mutability. This mode 20

allows legitimate entities to refresh the key (K ), initialization vector (V ), and internal state (St ) during ongoing communication without reinitializing the session or interrupting synchronization. The rekeying process is governed by the chameleon trapdoor hash mechanism, which guarantees collision consistency between consecutive states. Let (Kt , Vt , St ) denote the system state at time t. A rekeying event is triggered either periodically or conditionally upon entropy decay or detection of anomaly thresholds θ. The trapdoor authority T regenerates parameters through Equation 30:

Gen(1λ ) → (pkt , tt )

(30)

and computes a controlled collision as is shown in Equation 31 such that:

CHpkt (mt , rt ) = CHpkt+1 (mt+1 , rt+1 )

(31)

ensuring seamless transition from state t to t + 1 while maintaining consistency of the global digest h. The rekeying update functions are defined as is shown in Equation 32: Kt+1 = f1 (Kt , tt , ηt ),

Vt+1 = f2 (Vt , tt , ηt ), (32) St+1 = f3 (St , Kt+1 , Vt+1 ) where ηt is a session nonce or random perturbation ensuring non-deterministic evolution. Each update maintains the Borromean entanglement constraint as is shown in Equation 33: I (Γt ; Kt ) = I (Γt ; Vt ) = I (Γt ; St ) = 0, (33) I (Γt ; Kt , Vt , St ) > 0 preserving the all-or-nothing interdependence property even across rekeying transitions. During runtime, ciphertext generation follows Equation 34: Ct = Pt ⊕ F (Kt , Vt , St )

(34)

and upon rekeying, both sender and receiver apply synchronized state refresh through the trapdoor transformation as is shown in 35:

St+1 = U (St , tt , Kt+1 , Vt+1 )

(35)

This controlled rekeying allows resilience against key exhaustion, replay, and partial state compromise, while ensuring uninterrupted secure transmission. From a systems perspective, the dynamic rekeying scenario demonstrates adaptive cryptographic behavior—where security parameters evolve continuously within the cipher’s operational lifecycle. The integration of trapdoor-controlled mutability achieves a self-healing property: even if an adversary compromises partial state information, subsequent rekeying collapses the compromised linkage, restoring system confidentiality and forward secrecy without session resets.

21

Fig. 7 BEC–Trap Encryption and Decryption Workflow.

22

Figure 6 summarizes the overall encryption–decryption workflow of the proposed BEC–Trap stream cipher. In particular, it visualizes the decryption path that takes place between processes 2 and 12 in Figure 5. After the ciphertext is received over the untrusted network channel, it is first processed by the Borromean core re-entanglement block and then passed to the de-embedding and hash verification stage, which checks the consistency of the embedded structure and the chameleon hash commitments. Once these checks succeed, the synchronized keystream generator produce.

7 Experiments The experimental that were conducted in this study validates operational performance, resilience, and cryptographic soundness of the proposed BEC-Trap architecture under both static and adaptive configurations. The experiments were designed to evaluate the effects of Borromean interdependence, the trapdoor-controlled mutability, and AoNT collapse behavior across multiple simulated communication sessions. We conducted a total of five experiments as follows: Baseline throughput test, entropy and randomness validation, analysis of avalanche effect, dynamic rekeying performance and security stress testing.

Fig. 8 Conducted experiments mapped to the scenarios.

All the experiment simulations were conducted using a prototype implementation developed in Python 3.12 and C++17 to ensure compatibility with low-level cryptographic primitives. Experiments were executed on a workstation equipped with an Intel Core i9 processor, 32 GB RAM, and Ubuntu 22.04 LTS, with libraries including PyCryptodome, OpenSSL, and NumPy. For statistical testing and entropy analysis, NIST SP 800-22 randomness tests were employed. A summary of Experimental Design for BEC-Trap Evaluation are shown in Table 2.

23

Table 2 Summary of Experimental Design for BEC-Trap Evaluation

Exp. Experiment No.

Scenario

Objective Measure encryption speed, latency, and efficiency under fixed key, IV, and IS. Evaluate statistical uniformity and diffusion using Shannon entropy and NIST SP 800-22 tests. Evaluate diffusion by flipping individual bits in the plaintext, key, or IV. Assess rekey latency, synchronization accuracy, and trapdoor-based state management. Test resistance to key leakage, state compromise, and replay attacks.

1

Baseline Throughput Test

Scenario 1 (Static)

2

Entropy & Randomness Validation

Scenarios 1 & 2

3

Avalanche Effect Analysis

Scenario 1 (Static)

4

Dynamic Rekeying Performance

Scenario 2 (Adaptive)

5

Security Stress Testing

Scenario 2 (Adaptive)

7.1 Experiment 1: Baseline Throughput Test This experiment establishes the baseline computational performance of the proposed BEC-Trap cipher in a static configuration, where the key (K ), initialization vector (V ), and internal state (St ) remain constant throughout encryption. The objective of this experiment is to measure encryption throughput, latency, and resource utilization to provide a reference for subsequent adaptive rekeying experiments. Random plaintext streams ranging from 0.1 MB to 10 MB are processed under 128-bit and 256-bit keys with a 96-bit IV and 512-bit St , while BLAKE2s serves as the underlying hash function. Each configuration was executed ten times to ensure statistical consistency. The throughput has been computed as encrypted bits/execution time, and latency is recorded as the average time per encryption cycle. ChaCha20 [6] is implemented under identical conditions to serve as a performance baseline. It is expected that BEC-Trap will demonstrate throughput comparable to ChaCha20, with less than 5 percent overhead introduced by Borromean interdependence, thereby validating its efficiency prior to adaptive operation.

7.2 Experiment 2: Entropy and Randomness Validation This experiment evaluates the diffusion strength and statistical uniformity of the proposed BEC-Trap cipher under both Scenario 1 (Static Session) and Scenario 2 (Dynamic Rekeying). The objective of this experiment is to confirm that ciphertexts produced by the Borromean-entangled core exhibit near-ideal entropy and behave as statistically random sequences, ensuring that no structural bias or pattern leaks information about the plaintext. Using the same Colab environment, ciphertext outputs are generated from 1 MB to 10 MB plaintexts over 10 independent trials for each configuration. The Shannon entropy H (Ct ) is computed per ciphertext block

24

and normalized against the ideal value of 8 bits per byte. Complementary randomness diagnostics that includes frequency, runs, and chi-square tests from the NIST SP 800-22 suite [52], are applied to assess uniform bit distribution and autocorrelation. For each mode, the normalized entropy, test pass rates, and variance are recorded to compare stability across rekeying intervals. It is expected that both configurations will achieve H (Ct ) ≈ 0.99−1.00 with uniformly distributed bit transitions, confirming that the Borromean interdependence and trapdoor mutability preserve strong diffusion and randomness across static and adaptive operating modes.

7.3 Experiment 3: Avalanche Effect Analysis This experiment assesses the diffusion capability of the BEC-Trap cipher by quantifying its avalanche effect, whic is the degree to which a one-bit change in the plaintext, (K ), or St causes widespread changes throughout the ciphertext. This was conducted primarily under Scenario 1 (Static Session), where the test determines whether small perturbations in the input propagate uniformly across the encryption output, indicating strong nonlinear mixing within the Borromean core. For each run, a random plaintext block is encrypted, and then a single bit is flipped in the plaintext before re-encryption under identical parameters. The bit-level differences between the two ciphertexts are computed to obtain the avalanche rate, defined as the ratio of flipped output bits to total ciphertext bits. Additional trials introduce single-bit variations in the key and initialization vector to measure cross-parameter sensitivity. Each configuration is executed over 300 independent trials with 1 MB messages, producing a statistical distribution of avalanche rates. The expected result is a mean avalanche rate of approximately 50 percent with low variance, demonstrating that the cipher exhibits ideal diffusion, where every bit in the ciphertext is equally influenced by every bit of the input, thereby confirming the robustness of the Borromean interdependence against differential and correlation attacks.

7.4 Experiment 4: Dynamic Rekeying Performance This experiment evaluates the adaptive performance of the BEC-Trap cipher under Scenario 2, where dynamic rekeying is governed by the trapdoor-controlled chameleon hash mechanism. The objective of this experiment is to measure the efficiency, latency, and synchronization accuracy of the rekeying process while maintaining continuous encryption. In this experiment, the BEC-Trap encrypts large plaintext streams divided into multiple blocks, triggering rekeying events periodically or upon detecting entropy degradation beyond a threshold (θ = 0.05). Each rekey event generates new values of Kt+1 , Vt+1 , and St+1 through trapdoor-dependent transformations, ensuring collision consistency across states. The experiments are executed in Colab under identical conditions as previous tests, with message sizes ranging from 1 MB to 20 MB and rekey intervals varying between 5 and 20 encryption cycles. For each configuration, rekey latency, synchronization stability, and recovery time after induced desynchronization are recorded. It is expected that valid rekey operations complete in less than 10 milliseconds with zero synchronization errors, demonstrating that the chameleon trapdoor

25

enables seamless state transitions and continuous data confidentiality without session interruption. Table 3 Summary of Experimental Results for BEC-Trap Evaluation

Experiment

Description and Observation

Key Metric(s)

1. Throughput

Cipher throughput stabilizes after initialization, maintaining ≈60–65 Mbit/s across message sizes up to 5 MB. Ciphertext entropy remains close to 1 bit/byte, indicating uniform diffusion and minimal statistical bias. Bit-flip propagation exhibits near-uniform response across samples, validating diffusion consistency. Rekey events complete within 7–9 ms with occasional 11 ms spikes during trapdoor regeneration. Even under 75% key exposure, ciphertext entropy drops only in the range of 10−6 bits/byte, confirming collapse-on-compromise behavior.

Mean: 63.2 Mbit/s

2. Entropy & Randomness 3. Avalanche Effect

4. Dynamic Rekeying

5. Security Stress Test

Mean Entropy: 0.9998 bits/byte Mean Flip Rate: ≈50% Avg Latency: 8.1 ms ∆H < 10−6

7.5 Experiment 5: Security Stress Testing This experiment examines the resilience of the BEC-Trap cipher under adversarial conditions by simulating key exposure, internal state compromise, and ciphertext replay attempts within the adaptive rekeying environment of Scenario 2. The goal is to verify that the Borromean interdependence and trapdoor-controlled mutability enforce AoNT security even when portions of the system are partially revealed or tampered with. In this experimental setup, controlled attacks are introduced by deliberately leaking 25 %, 50 %, and 75 % of the key bits, perturbing the internal state St at random intervals, and attempting to reuse valid ciphertext blocks after legitimate rekeying. For each event, the system’s ability to maintain confidentiality, synchronization, and recovery is observed through entropy deviation, collapse probability, and synchronization time metrics. Unauthorized rekeying attempts using forged trapdoor values t′ are also performed to test access control enforcement. Each scenario is executed over 50 independent sessions to ensure statistical reliability. From this experiment it is expected that any partial exposure or unauthorized mutation results in immediate cipher collapse or ciphertext invalidation, with legitimate trapdoor-based recovery restoring secure operation, thus confirming the system’s robustness against key leakage, state tampering, and replay-based compromise.

26

8 Results This section presents the experimental results obtained from implementing and evaluating the proposed Borromean-Entangled Chameleon Trapdoor Hash AoNT Stream Cipher BEC-Trap in a controlled computational environment. The evaluation focuses on five key aspects of the proposed cipher: throughput efficiency, entropy and randomness, diffusion characteristics, rekeying adaptability, and resilience against adversarial compromise. Each experiment isolates a specific metric while maintaining a consistent cryptographic setup, allowing for direct comparison between static (Scenario 1) and adaptive (Scenario 2) configurations.

8.1 Experiment 1: Baseline Throughput Analysis Figure 9 illustrates the throughput behavior of the proposed BEC-Trap cipher as a function of message size under the static configuration (Scenario 1). The experiment measured the encryption rate in megabits per second (Mbit/s) while increasing plaintext sizes from 10 KB to 5 MB over 140 measurement points, each averaged across five trials to mitigate transient CPU fluctuations. The dotted line represents the measured throughput values (observed data), while the solid (Orange) curve shows the rolling-mean trend.

Fig. 9 Measured throughput versus message size for BEC-Trap showing rapid stabilization after initial ramp-up.

This curve exhibits an initial ramp-up phase where throughput rises sharply as message size increases, attributed to the diminishing effect of setup overheads such as key scheduling and state initialization. Beyond approximately 1 MB, the throughput stabilizes near 60–65 Mbit/s, indicating that the cipher reaches steady-state operation with consistent block mixing efficiency. The minor oscillations along the trend reflect normal runtime variance inherent in software-based cryptographic implementations. From the authors view, the results demonstrate that the Borromean interdependence among the key (K ), initialization vector (V ), and internal state (St ) does not introduce significant computational overhead. The observed throughput remains comparable to lightweight stream ciphers such as ChaCha20, confirming that the proposed BEC-Trap architecture preserves real-time efficiency while enabling structural coupling for enhanced security.

27

8.2 Experiment 2: Entropy and Randomness Validation Figure 10 shows the entropy distribution of ciphertext blocks generated by the BEC-Trap cipher under both static and adaptive configurations. This experiment evaluates the statistical uniformity and diffusion quality of the ciphertexts by computing Shannon entropy across multiple encryption trials. Each trial processes a 1 MB random plaintext using independently generated keys, initialization vectors, and states. The computed entropy values, normalized per byte, are displayed as a box plot to illustrate variability and distribution consistency. The results show that the ciphertext entropy remains tightly centered near the ideal value of H (Ct ) ≈ 1.0 bits/byte, indicating that the output exhibits near-perfect randomness with minimal statistical bias. The narrow interquartile range reflects low variance across independent trials, confirming that Borromean coupling between the key, IV, and internal state ensures balanced bit mixing and strong diffusion throughout the keystream. This means that even small input or key variations result in statistically indistinguishable ciphertext outputs. These findings validate that the proposed BEC-Trap achieves uniform bit distribution and preserves entropy stability across both static and dynamic scenarios. Such performance is critical for ensuring unpredictability, resistance to entropy-based cryptanalysis, and the absence of structural leakage in ciphertext streams.

Fig. 10 Entropy distribution of ciphertext showing near-ideal randomness and uniform bit distribution for BEC-Trap.

8.3 Experiment 3: Avalanche Effect Analysis Figure 11 illustrates the avalanche effect distribution for the proposed BEC-Trap cipher under bit-level perturbations of the key and plaintext. In this experiment, a single bit was flipped in the input, and the resulting ciphertext was compared against the

28

unaltered encryption output to determine the fraction of bits that changed across multiple trials. This fraction was termed as the avalanche rate quantifies the BEC-Trap’s sensitivity to minimal input modifications, an essential property for ensuring strong diffusion and unpredictability. The histogram shown in Figure 11 reveals that even minor perturbations trigger consistent and widespread alterations in ciphertext bits, converging toward a balanced mean avalanche rate close to the theoretical ideal of 0.5. The narrow distribution around this mean demonstrates that the proposed Borromean-interdependent structure of (K, V, St ) produces high diffusion consistency and rapid entropy propagation across rounds. This behavior confirms that the BEC-Trap achieves local-to-global bit influence, meaning each input bit has near-equal probability of affecting any output bit. The author argues that this outcome affirm that BEC-Trap satisfies the avalanche criterion, an indicator of cryptographic strength while maintaining stability across repeated runs, thereby mitigating differential and related-key attack vectors.

Fig. 11 Avalanche effect distribution for BEC-Trap showing high sensitivity to single-bit perturbations and balanced diffusion.

8.4 Experiment 4: Dynamic Rekeying Performance Figure 12 shows the latency behavior of the BEC-Trap cipher during dynamic trapdoorbased rekeying operations under the adaptive configuration (Scenario 2). Each rekey event triggers regeneration of the interdependent triplet (K, V, St ) using the trapdoor function Seedt = H (Q, V ⊕G(St )), after which encryption resumes seamlessly without session reset. The measured latency per rekey event, expressed in milliseconds, reflects the total time required for key regeneration and synchronization between sender and receiver.

29

Fig. 12 Dynamic rekeying latency trend showing stable performance with minor recomputation spikes in adaptive mode.

The dotted line represents the raw latency observations, while the solid curve depicts the rolling-mean trend over multiple rekey cycles. The results demonstrate that rekeying remains stable around an average latency of 7–9 ms, with only brief spikes observed around heavier recomputation intervals. These transient deviations are attributed to concurrent entropy generation and state mixing within the Borromean trapdoor function. Importantly, the adaptive mechanism maintains synchronization accuracy and session continuity throughout all 180 rekey events, confirming robust timing predictability. This outcome validates that the dynamic rekeying protocol achieves secure and low-latency key evolution without interrupting the encryption process. The interlinked structure of K , V , and St allows fine-grained key agility while preserving throughput and synchronization integrity, essential for real-time secure communication.

8.5 Experiment 5: Security Stress Testing Figure 13 illustrates the stress testing results, evaluating the resilience of the proposed BEC-Trap cipher under progressive key exposure conditions. This experiment simulated partial disclosure of the secret key at 25%, 50%, and 75% leakage levels respectively while observing the resulting entropy degradation in the ciphertext. The entropy drop serves as an indicator of information leakage: smaller drops correspond to stronger resistance to partial compromise.

30

Fig. 13 Entropy degradation under partial key exposure, showing negligible leakage and confirming the collapse-on-compromise behavior.

The results show that even as key exposure increases up to 75%, the corresponding entropy loss remains minimal, within the range of 10−6 bits/byte. Although a slight rise in entropy degradation is visible at higher leakage levels, the overall information loss remains statistically insignificant. This confirms that the BEC-Trap cipher’s Borromean interdependence between key (K ), initialization vector (V ), and internal state (St ) enforces an all-or-nothing collapse model. In other words, no partial recovery of the cryptographic state provides exploitable information without the complete triad. These findings have validated the BEC-Trap cipher’s robustness against partial key and state exposure, demonstrating that its security does not degrade gracefully but instead collapses only when all dependent parameters are fully compromised. This “collapse-on-compromise” property distinguishes BEC-Trap from traditional stream ciphers like ChaCha20, where partial key leakage can yield partial predictive advantage.

9 Security Analysis The security analysis of the proposed BEC-Trap cipher focuses on validating its resilience against classical and modern cryptanalytic threats. The cipher’s architecture is positioned to unify the trapdoor hash control, Borromean interdependence, and AoNT diffusion into a single operational model, ensuring that confidentiality and integrity are preserved even under partial exposure of components. Each of the aforementioned cryptographic property is evaluated through both theoretical reasoning and experimental verification, linking entropy stability, avalanche diffusion, and controlled collision resistance to measurable security outcomes. A summary of the experimental results that has been discussed in this paper is alos given in Table 3.

31

9.1 Confidentiality and Diffusion Properties Confidentiality, as mentioned the threat model (See Figure 1) in the BEC-Trap cipher is achieved through the interdependent coupling of the key (K ), initialization vector (V ), and internal state (St ) within a Borromean structure. This design ensures that each encryption round’s keystream is mathematically dependent on all three components, preventing isolation of any single parameter for partial plaintext recovery. The high entropy values and near-uniform bit-flip distributions observed in the experimental evaluation confirm that ciphertexts produced by BEC-Trap exhibit strong statistical indistinguishability and resistance to differential cryptanalysis. Table 4 Confidentiality and Diffusion Metrics Summary Metric Mean Entropy Avalanche Effect Throughput Stability Correlation Coefficient Differential Uniformity

Observed Value

Interpretation

0.9998 bits/byte 50.2% flipped bits 63.2 Mbit/s (steady-state) ≈ 0.002 High

Strong randomness; indistinguishable ciphertexts Ideal diffusion per SAC principle Consistent cipher output with minimal bias No measurable statistical dependence Resistant to differential and linear attacks

Figure 10 and Figure 11 collectively demonstrate that the cipher maintains a mean Shannon entropy of approximately 0.9998 bits/byte and an average avalanche propagation of about 50.2%, indicating optimal diffusion. The Borromean linkage ensures that a single-bit change in any of the triad parameters (K, V, St ) propagates nonlinearly throughout the keystream, producing unpredictable ciphertext transformations. This diffusion behavior satisfies the strict avalanche criterion (SAC) expected of modern stream ciphers. The combination of experiments (1-5) and theoretical analysis confirms that the BEC-Trap cipher achieves full confusion and diffusion in the Shannon sense. Unlike traditional stream ciphers such as ChaCha20 [6] or Trivium [11], where diffusion is primarily time-based, the Borromean entanglement in BEC-Trap enforces structural diffusion embedding dependency within every keystream generation step. As a result, the partial key or IV knowledge cannot yield partial plaintext advantage, thereby maintaining end-to-end confidentiality across all transmission sessions. A summary of the accomplished confidentiality and diffusion metrics are shown in Table 4.

9.2 Forward and Backward Secrecy Forward and backward secrecy in BEC-Trap are enforced through continuous trapdoordriven rekeying and Borromean dependency among the key (K ), initialization vector (V ), and internal state (St ). Each rekeying event regenerates all three parameters simultaneously through a chameleon trapdoor hash, ensuring that the compromise of any session key does not reveal past or future keystreams. This mechanism guarantees temporal isolation between encryption epochs, similar to forward-secure key exchange protocols, but embedded natively within the stream cipher’s operational loop.

32

Table 5 A Summary of Forward and Backward Secrecy Evaluation Property Forward Secrecy Backward Secrecy State Refresh Interval Rekey Latency Leakage Correlation

Mechanism in BEC-Trap

Outcome

Trapdoor-based rekeying (Collide) One-way Borromean state coupling Adaptive per 106 bytes ≈ 8 ms (mean) ≈ 0.0

Future sessions unlinkable from prior ones Past sessions unrecoverable from present state Temporal isolation maintained Minimal synchronization overhead No measurable dependency across sessions

In the forward direction, once a session concludes, the trapdoor hash Collide(m, r, m′ , t) produces a new tuple (K ′ , V ′ , St′ ) that is computationally unlinkable from the previous state. Consequently, backward secrecy prevents retrospective reconstruction: even if an adversary learns the current internal state, recovering previous keys or IVs becomes infeasible due to the one-way property of the trapdoor hash and the nonlinear dependence encoded by the Borromean structure. Experimental validation through dynamic rekeying tests (Experiment 4) demonstrated mean latencies of approximately 8 ms per rotation with negligible synchronization loss, confirming the efficiency of adaptive state evolution without degrading throughput. Through this self-contained rekeying mechanism, BEC-Trap achieves continuous key agility and temporal resilience properties typically reserved for higher-level secure channel protocols. The combination of Borromean entanglement and trapdoor mutability ensures that any compromise remains localized, rendering both past and future ciphertexts cryptographically independent. A summary of the forward and backward properties is shown in Table 5.

9.3 Integrity and Collision Resistance Integrity within BEC-Trap is intrinsically preserved through the Chameleon Trapdoor Hash ( CTH) mechanism, which allows for controlled mutability while maintaining verifiable consistency of encrypted outputs. In standard hash functions, collision generation is computationally infeasible [53], however, the CTH introduces a mathematically governed exception through a secret trapdoor t, which enables authorized entities to compute alternate message–randomness pairs (m′ , r′ ) that yield the same hash output that is shown in Equation 36:

Hash(m, r) = Hash(m′ , r′ ) iff the holder possesses t.

(36)

This feature provides selective flexibility essential for secure rekeying, ciphertext auditing, and ledger synchronization while ensuring that unauthorized modifications remain cryptographically detectable. In the BEC-Trap cipher, the trapdoor hash forms the integrity-preserving backbone of both the key and state evolution processes. Every cipher update, whether triggered by rekeying or session rotation, produces a verifiable digest hi = Hash(Ki , Vi , Sti ), binding the three Borromean components. During verification, recomputation of hi ensures message authenticity and prevents forgery. Unauthorized attempts to manipulate the ciphertext or modify parameters without the trapdoor result in

33

detectable inconsistencies, as the probability of random collision remains negligible (approximately 2−128 for a 256-bit digest). Table 6 Integrity and Collision Resistance Evaluation Property Collision Resistance Controlled Collision Forgery Detection Integrity Enforcement Digest Length

Mechanism in BEC-Trap BLAKE2s-based CTH function Trapdoor parameter t (authorized) Digest verification hi = Hash(Ki , Vi , Sti ) Borromean binding of (K, V, St ) 256 bits (BLAKE2s)

Result / Complexity 128

>2 effort for random collision Deterministic; restricted to valid holders Unauthorized modifications detectable Ensures tamper-evident ciphertexts Strong preimage and collision security

The integration of the CTH ensures that BEC-Trap provides a dual-layer guarantee: immutability to outsiders and controlled mutability for authorized entities. This balance between verifiability and adaptability allows the BEC-Trap cipher to support advanced use cases such as auditable key rotation, secure data revision. A summary of the forward and backward properties is shown in Table 6.

9.4 All-or-Nothing Behavior and Collapse-on-Compromise A defining property of the proposed BEC-Trap construction is its intrinsic All-orNothing behavior, inherited from both Rivest’s AoNT concept [13] and the Borromean structural dependency that links the key (K ), initialization vector (V ), and internal state (St ) [14]. In this proposed model, the BEC-Trap cipher’s security is not distributed additively among its components but interlocked multiplicatively, meaning that compromise of any single element results in a complete cryptographic collapse rather than partial leakage. The Borromean linkage mathematically enforces this property through joint dependency as is shown in Equation 37:

Keystream = F (K, V, St ) (37) where F ′ (K ) or F ′′ (V, St ) yielding valid partial states. Thus, breaking, guessing, or removing one of the components immediately disrupts the cipher’s functional integrity, producing invalid or incoherent ciphertext. The stress-testing results (Figure 13) empirically validate this principle. Even when up to 75% of key material was exposed, the measured entropy loss remained within 10−6 bits/byte, showing an insignificant degradation confirming that no exploitable partial advantage exists. This behavior differs fundamentally from conventional stream ciphers, where leakage in K or St can still yield partial predictability. This experimentally verified AoNT property provides a strong guarantee that BEC-Trap does not degrade gracefully under attack, which is a highly desirable trait for modern lightweight cryptographic systems. A summary of the forward and backward properties is shown in Table 7.

9.5 Trapdoor Rekeying Robustness The trapdoor rekeying mechanism in BEC-Trap introduces an adaptive and verifiable means of key evolution without requiring synchronization resets or session restarts. 34

Table 7 All-or-Nothing Behavior Collapse-on-Compromise Behavior Under Partial Exposure Component Compromised Key (K ) Only IV (V ) Only State (St ) Only Key + IV (Partial) Key + IV + State

Cipher Functionality

Security Outcome

Stream generation fails Desynchronization occurs Invalid keystream propagation Non-deterministic output Functional decryption

No plaintext recovery No valid ciphertext mapping Complete collapse of entropy chain Ciphertext remains un-decodable Security breach (total compromise)

Table 8 Latency and Rekey Overhead Comparison Metric Mean Rekey Latency Latency Variance Synchronization Accuracy Overhead per Cycle Adaptive Rekey Support Rekey Type

BEC-Trap

EChaCha20 [8]

ChaCha20 [6]

Grain [10]

8.1 ms 0.8 ms 99.8% 1.5% Yes (trapdoor-driven) Integrated (trapdoor hash)

10.2 ms (lightweight variant) 1.4 ms 97.5% 2.1% Limited (manual refresh) Key reinitialization via hash-mix

12.4 ms (external reset) 2.3 ms 95.7% 3.8% Manual Full reinitialization

Static (no rekey) N/A 89.4% – None N/A

By leveraging the chameleon trapdoor hash, each rekey event generates a fresh tuple (K ′ , V ′ , St′ ) from the prior state using a controlled collision operation as is shown in Equation 38: (K ′ , V ′ , St′ ) = Collide(K, V, St , t) (38) where t denotes the trapdoor secret known only to authorized entities. This function ensures that while the new parameters remain verifiable through consistent digest generation, they are computationally unlinkable to prior values without knowledge of t. The rekeying process effectively acts as a self-healing mechanism, maintaining operational continuity even in high-throughput environments. Experimental validation (Experiment 4) demonstrated stable rekeying latencies between 7–9 ms, with minimal deviation across 10 rotation cycles. This shows that trapdoor regeneration introduces negligible overhead, while simultaneously restoring entropy and eliminating any risk of state reuse. Moreover, because the rekey operation integrates the Borromean dependency between key, IV, and state, any tampering or unauthorized rekey attempt produces a digest mismatch rendering the new state invalid. In the author’s opinion trapdoor-driven rekeying mechanism thus enhances both the agility and resilience of the cipher. It not only prevents long-term key exposure and state exhaustion but also provides a mathematically verifiable means of adaptive reconfiguration. This dynamic adaptability distinguishes BEC-Trap from traditional stream ciphers, which rely on static or externally triggered reinitialization, and ensures consistent protection in high-variability operational environments.

9.6 Resistance Against Common Attacks To ensure practical robustness, the proposed BEC-Trap was evaluated against several classical and modern cryptanalytic threats, including key recovery, replay injection, ciphertext manipulation, and desynchronization attacks. The cipher’s resistance derives from its Borromean interdependence and trapdoor-controlled mutability, properties that eliminate separable vulnerabilities between the key, initialization vector (IV), and internal state. The resistance against commeon attacks are discussed next. 35

R1: Key Recovery and State Exposure: Because the keystream function F (K, V, St ) has no separable form, exposure of any individual parameter yields no computational advantage in reconstructing plaintext or predicting future keystreams. Entropy degradation remained negligible under partial exposure (Experiment 5), confirming that partial information provides no foothold for cryptanalysis. R2: Replay and Desynchronization: The dynamic rekeying mechanism ensures that each ciphertext stream is uniquely bound to its session index and Borromean digest hi = Hash(Ki , Vi , Sti ). Reuse or replay of captured packets produces digest mismatches, forcing decryption failure and preventing resynchronization attacks. R3: Ciphertext Manipulation and Forgery: The chameleon trapdoor hash restricts valid collisions to entities possessing the trapdoor t. Unauthorized modifications yield digest inconsistencies detectable at verification, while authorized collisions remain auditable and reversible. This controlled mutability provides an additional layer of accountability without weakening the overall integrity model. The results indicate that BEC-Trap achieves comprehensive resilience across all tested attack vectors. Its combination of Borromean structural interdependence and chameleon trapdoor mutability provides both preventative and corrective defense layers. Unlike conventional stream ciphers that degrade incrementally under attack, BEC-Trap exhibits true collapse-on-compromise behavior, where any partial disclosure or tampering immediately disrupts the encryption chain, preserving confidentiality and integrity across all operational states.

10 Performance Analysis This section discuss the performance evaluation of the proposed BEC-Trap Allor-Nothing Stream Cipher (BEC-Trap), focusing on its computational efficiency, latency characteristics, entropy stability, and comparative behavior against established lightweight stream ciphers. The analysis aims to validate that the BEC-Trap cipher’s enhanced structural interdependence and trapdoor-based adaptability do not compromise runtime efficiency or scalability. Empirical results derived from Experiments 1–5 demonstrate that BEC-Trap maintains high throughput, low rekeying latency, and statistically uniform ciphertext diffusion across varying workloads.

10.1 Latency and Rekey Overhead Latency and rekey overhead were analyzed to evaluate the operational responsiveness of BEC-Trap during dynamic rekeying events (Experiment 4). The evaluation simulated continuous encryption of 1 MB data segments, with automatic trapdoorbased rekeying occurring at fixed intervals. Each rekey operation regenerated the tuple (K ′ , V ′ , St′ ) using the controlled-collision function Collide(K, V, St , t), which ensures new keys are verifiable yet unlinkable to prior states. This process executes inline, requiring no external synchronization or session restart. Experimental results indicate that the cipher maintains stable rekey latencies in the 7–9 ms range per cycle, averaging 8.1 ms with a standard deviation below 1 ms. Synchronization accuracy exceeded 99.8% across all test runs, confirming that 36

trapdoor regeneration introduces minimal timing distortion even under fluctuating workloads. Compared with conventional stream ciphers, BEC-Trap demonstrates superior adaptability with negligible throughput penalty (≈ 1.5% total overhead). These findings validate that dynamic security evolution can coexist with real-time encryption throughput. The inclusion of the trapdoor-controlled rekey mechanism provides BEC-Trap with proactive cryptographic agility, ensured fresh entropy and unlinkable session states with minimal delay. When compared to EChaCha20 [8], ChaCha20 [6] and Grain [10] as is shown in Table 8, the proposed BEC-Trap achieves similar speed with stronger verification integrity, eliminating the need for full reinitialization cycles. This enables continuous encryption resilience and efficient key evolution, especially in environments requiring uninterrupted data flow such as IoT gateways, VPN tunnels, and secure streaming protocols.

10.2 Entropy and Randomness Uniformity Entropy and randomness analysis were performed to quantify the statistical unpredictability of ciphertext generated by BEC-Trap. This evaluation followed Shannon’s entropy formulation [54], measuring the uniformity of byte distributions in ciphertext outputs over multiple trials. Each test encrypted 1 MB of randomly generated plaintext using distinct key–IV–state tuples, followed by entropy estimation on the resulting ciphertext. Results demonstrated a mean entropy of 0.9998 bits/byte with negligible variance across trials (Figure 10), confirming near-perfect diffusion and statistical uniformity. The ciphertext byte frequencies approximated a flat distribution, indicating resistance to bias and linear correlation. Compared to baseline stream ciphers, BEC-Trap exhibits stronger randomness preservation, attributed to the Borromean entanglement of (K, V, St ), which enforces nonlinear mixing even when minor perturbations occur in any parameter. Table 11 Entropy and Randomness Uniformity Comparison

Metric

BEC-Trap

EChaCha20 [8] ChaCha20 [6] Grain [10]

Mean Entropy (bits/byte) 0.9998 Entropy Variance 1.4 × 10−5 Byte Distribution Bias 0.0003 Autocorrelation Coefficient ≈ 0.0002 Uniformity Index (U-test) 99.97%

0.9986 3.1 × 10−5 0.0008 ≈ 0.0006 99.81%

0.9973 6.7 × 10−5 0.0016 ≈ 0.0012 99.54%

0.9925 1.2 × 10−4 0.0031 ≈ 0.0027 98.72%

The high entropy and minimal autocorrelation observed validate that ciphertext sequences produced by BEC-Trap are indistinguishable from true random streams as is seen with EChaCha20, ChaCha20 and Grain as is shown in Table 11. The Borromean coupling ensures that every rekeying event or bit variation propagates chaotically across the keystream space, thereby sustaining uniform diffusion without periodic artifacts. This consistent statistical uniformity establishes a strong foundation 37

for cryptanalytic resistance against frequency, correlation, and differential statistical attacks.

10.3 Computational Efficiency The computational efficiency of BEC-Trap as is shown in Table 12 was assessed through throughput and runtime scalability measurements (Experiment 1). The evaluation aimed to determine whether the cipher’s Borromean structure and trapdoor mechanisms introduce significant computational overhead compared to traditional stream ciphers. Encryption speeds were tested using variable message sizes (10 KB–5 MB) under identical system conditions, with performance averaged over multiple trials to account for cache and scheduling variability. The proposed BEC-Trap cipher maintained a steady throughput of approximately 63 Mbit/s after initialization, comparable to high-speed stream ciphers such as EChaCha20 [8] and ChaCha20 [6]. This consistency is achieved through a single-pass Borromean mixing function F (K, V, St ), which operates as a BLAKE2s-based diffusion layer coupled with XOR keystream generation. Because interdependence is structurally embedded in the cipher core rather than added through external layers, computational cost scales linearly with data size, O(n), ensuring constant-time encryption per byte. Profiling revealed that the cipher’s average per-byte processing cost is 15 cycles/byte lower than ChaCha20’s 18 cycles/byte and significantly more efficient than Trivium’s 27 cycles/byte. Additionally, no observable slowdown was detected during continuous trapdoor rekeying cycles, confirming that the integrity verification process does not impose measurable runtime penalties. Table 12 Comparative Computational Efficiency Metrics Metric

BEC-Trap

EChaCha20 [8]

ChaCha20 [7]

Grain [10]

Trivium [11]

Average Throughput (Mbit/s) Per-Byte Cost (cycles/byte) Time Complexity CPU Utilization (5 MB input) Throughput Variance Rekey Overhead (%)

63.2 15 O(n) 59.8% < 0.5% 1.5

61.4 17 O(n) 61.1% 0.7% 2.1

58.7 18 O(n) 63.5% 1.2% 3.8

42.1 23 O(n) 69.2% 2.1% –

44.5 27 O(n · r) 71.2% 2.4% –

The analysis confirms that BEC-Trap achieves computational efficiency equivalent to optimized modern stream ciphers while offering stronger adaptive features. Its Borromean-linked, trapdoor-based design maintains security integrity without compromising execution speed, making it ideal for real-time encryption scenarios such as IoT nodes, VPN tunnels, and blockchain communication layers.

10.4 Comparative Performance with Baseline Ciphers To validate the practicality of the proposed BEC-Trap design, a comparative performance assessment was conducted against representative lightweight stream ciphers: EChaCha20 [8], ChaCha20 [6], Grain [10], and Trivium [11]. The evaluation integrated

38

results from throughput (Experiment 1), rekey latency (Experiment 4), entropy uniformity (Experiment 2), and avalanche diffusion (Experiment 3), establishing a holistic performance profile across computational and statistical domains. It was observed that, BEC-Trap achieves a balanced trade-off between security depth and operational speed. The Borromean interdependence and trapdoor-driven rekeying yield adaptive resilience with marginal computational cost. Compared to EChaCha20 and ChaCha20, the cipher demonstrates superior synchronization efficiency and lower latency, while sustaining comparable throughput and higher entropy uniformity. Grain and Trivium, though lightweight, exhibit lower randomness stability and lack integrated rekeying or trapdoor verification, reducing their adaptability in dynamic environments. Table 13 Comparative Performance Summary with Baseline Ciphers Metric Throughput (Mbit/s) Mean Rekey Latency (ms) Entropy (bits/byte) Avalanche Propagation (%) Synchronization Accuracy (%) Collision Detection All-or-Nothing Property Adaptive Rekey Support Implementation Complexity

BEC-Trap

EChaCha20 [8]

ChaCha20 [7]

Grain [10]

Trivium [11]

63.2 8.1 0.9998 50.2 99.8 Yes (CTH-based) Native (Borromean) Yes Moderate (single-pass)

61.4 10.2 0.9986 49.3 97.5 Partial None Limited Low

58.7 12.4 0.9973 47.8 95.7 None External Manual Low

42.1 Static 0.9925 42.5 89.4 None None None Very Low

44.5 Static 0.9932 43.7 91.2 None None None Very Low

From the results in Table 13, BEC-Trap outperforms other tested ciphers in entropy preservation, diffusion uniformity, and adaptive synchronization, while maintaining comparable computational speed. Its Borromean entanglement provides internal selfconsistency and resistance to partial compromise, a feature absent in traditional stream ciphers. The design therefore achieves a distinctive synthesis of high security and lightweight performance, demonstrating that structural interdependence and trapdoor mutability can coexist efficiently within modern symmetric encryption paradigms.

11 Theoretical Validation This section provides a formal analysis of the theoretical underpinnings of the proposed (BEC-Trap) (AoNT) Stream Cipher. Although the preceding sections empirically demonstrated its performance and resilience, the following subsections establish theoretical justification for its structural integrity and controlled mutability. The analysis focuses on two fundamental aspects: the mathematical soundness of the Borromean dependency that ensures AoNT interlinking among the key (K ), initialization vector (V ), and internal state (St ); and the correctness of the trapdoor hash verification mechanism that enables authorized, collision-controlled rekeying without weakening cryptographic hardness. These formal foundations guarantee that BEC-Trap maintains provable resistance against key recovery, collision forgery, and partial state exposure under standard cryptographic assumptions such as one-wayness and collision resistance of the underlying hash function.

39

11.1 Soundness of Borromean Dependency Table 14 shows the Borromean dependency for the BEC-Trap that formalizes the interlocking relationship among the key (K ), initialization vector (V ), and internal state (St ) such that none of these parameters can be functionally or statistically isolated without invalidating the cipher’s operational integrity. Mathematically, this dependency is modeled as a non-separable mapping as is shown in Equation 39:

F : {0, 1}|K| × {0, 1}|V | × {0, 1}|St | → {0, 1}n

(39)

where F (K, V, St ) defines the keystream generation function. The Borromean property implies as is shown in Equation 40 that:

F (K, V, St ) ̸= F (K ′ , V, St ), F (K, V, St ) ̸= F (K, V ′ , St ), F (K, V, St ) ̸= F (K, V, St′ )

(40)

and further that no partial function FK (K ), FV (V ), or FS (St ) as is shown in Equation 41 exists such that:

∃ F ′ such that F ′ (x) = F (K, V, St ), for any single component x ∈ {K, V, St }.

(41)

This ensures complete non-decomposability, a formal analog of the Borromean rings’ topological property, where the removal of any ring results in total disconnection [55]. Based on the position of this study, we can make assumoptions by saying, if we let ∆i to denote perturbations applied to one component (e.g., bit flips or leaks), then the diffusion of entropy through the Borromean structure as is shown in Equation 42: Let H0 = H (F (K, V, St )), HK = H (F (K ⊕ ∆K , V, St )), HV = H (F (K, V ⊕ ∆V , St )). Then

H0 − HK ≈ H0 − HV ≈ ε.

(42)

where ε ≪ 1 represents negligible entropy variance. Experimental entropy loss (10−6 bits/byte under partial key exposure) empirically supports this bound, confirming that no partial compromise leads to significant information leakage. Table 14 Borromean Dependency Properties and Implications

Property Non-decomposability Entropy Conservation Interdependent Mapping Collapse-on-Compromise Structural Diffusion

Representation

Security Implication

∄ partial F ′ (x) for x ∈ {K, V, St } ∆H < 10−6 bits/byte F (K, V, St ) is bijective only in triad Removal of any x yields Fx → ∅ ∂F ∂x ̸= 0 for all x

Prevents isolation of key material Maintains full unpredictability Guarantees all-or-nothing linkage Cipher becomes non-functional Ensures total diffusion coupling

40

The above-mentioned formulation establishes that BEC-Trap satisfies what herein we refer as cryptographic Borromeanity (CB) : In the CB analogy, each parameter’s contribution to the keystream is both necessary and sufficient, and any attempt to reconstruct the function with a missing element yields zero-entropy output as was seen previously in Figure 1. This theoretical construct, backed by empirical results (Experiment 1-5), demonstrates that the BEC-Trap cipher’s integrity and confidentiality stem directly from its non-separable algebraic topology, embodying the Borromean principle of interdependent stability.

11.2 Chameleon Trapdoor Hash Verification and Controlled Collision Proof The trapdoor hash function used in BEC-Trap serves as the verifiable core of its rekeying and integrity mechanism. It enables the generation of controlled collisions by authorized entities possessing the trapdoor secret t, while maintaining full collision resistance for all others. This construction is derived from the Chameleon Trapdoor Hash ( CTH) family introduced by Krawczyk and Rabin [36], extended here to operate as a dynamic state-binding function within a symmetric stream cipher context. Formally, the hash is defined as a tuple of algorithms as is shown in Table 15: We then check for correctness, security and integration with BEC-Trap and collision controlled proof next. Table 15 Trapdoor Hash Algorithms

Gen(1λ ) → (pk, t) Hash(pk, m, r) → h Collide(·) → r′ Verify(·)

generate public key and trapdoor compute digest of m authorized collision (needs t) check hash consistency

Correctness: For all honestly generated parameters (pk, t) and for all messages m, m′ , and random values r, r′ as is shown in Equation 43: Hash(pk, m, r) = Hash(pk, m′ , r′ ) ⇐⇒ r′ = Collide(m, r, m′ , t).

(43)

This ensures deterministic equivalence under authorized rekeying while maintaining one-wayness and unpredictability to any adversary without t. Security: The security of the CTH relies on the following assumptions: 1. The underlying hash family H (x) is collision-resistant (e.g., BLAKE2s). 2. The trapdoor t remains computationally infeasible to derive from pk . 3. No probabilistic polynomialtime adversary A can produce a valid collision pair (m, r), (m′ , r′ ) without knowledge of t. Thus, for any such adversary is shown based on Equation 44:

  Pr Hash(pk, m, r) = Hash(pk, m′ , r′ ) ∧ (m, r) ̸= (m′ , r′ ) ≤ 2−λ .

41

(44)

In the context of BEC-Trap, this property ensures that unauthorized mutation of key, IV, or state components results in digest mismatch, invalidating the cipher state. Integration within BEC-Trap: Each rekey or state update operation computes as is shown in Equation 45:

 hi = Hash pk, Ki ∥ Vi ∥ Sti , ri .

(45)

This binds all Borromean parameters into a single verifiable digest. During authorized rekeying, the holder of t can compute a controlled collision as is shown in Equation 46: such that:  hi+1 = Hash pk, Ki+1 ∥Vi+1 ∥Sti+1 , ri+1 = hi .

(46)

This allows continuity of authentication without reinitialization. For unauthorized entities lacking t, the probability of constructing a valid ri+1 that maintains hi is negligible. Table 16 Trapdoor Hash Security Properties and Implications

Property Collision Resistance Controlled Collision Digest Binding Trapdoor Secrecy Verification Consistency

Formal Definition

Security Guarantee

Pr[Collide without t] < 2−λ ∃ r′ = Collide(m, r, m′ , t) hi = Hash(Ki , Vi , Sti , ri ) t ̸⇐ pk Verify(pk, m, r, h) → True

Unauthorized forgery infeasible Authorized updates verifiable Ensures state integrity No public reconstruction of secret Guarantees tamper evidence

Controlled Collision Proof: Let H (x) be modeled as a random oracle. For any valid pair (m, r), a collision pair (m′ , r′ ) satisfying H (m, r) = H (m′ , r′ ) can only be generated by computing r′ = r + ft (m, m′ ), where ft is a trapdoor-dependent function. Without t, ft behaves as a pseudorandom mapping, reducing the problem to inverting H (x), which is infeasible under the random oracle model. Hence, the trapdoor mechanism preserves the collision resistance of H while enabling authorized equivalence transformations, a property that underpins both rekey verification and integrity preservation in BEC-Trap as is shown in the summary in Table 16. In view of the foregoings, formal validation confirms that the core security properties of BEC-Trap, non-decomposability, controlled mutability, and verifiable state evolution, are mathematically sound under standard cryptographic assumptions. As a result, the Borromean dependency ensures functional collapse on partial compromise, while the Chameleon Trapdoor Hash mechanism provides authorized, reversible state transitions without violating collision resistance. Together, these proofs establish a strong theoretical foundation for the cipher’s empirical resilience, confirming that its observed entropy stability, diffusion uniformity, and adaptive rekeying behaviors stem from rigorously defined mathematical constructs.

42

12 Conclusions and Future Work This aim of this paper was to test the cryptographic Borromeanity, and as such this paper has introduced the Borromean-Entangled Chameleon Trapdoor Hash All-orNothing Stream Cipher (BEC-Trap), a novel symmetric encryption framework that unifies Borromean structural interdependence, chameleon trapdoor hashing, and AoNT diffusion into a single lightweight design. The proposed BEC-Trap model ensures that the key (K ), initialization vector (V ), and internal state (St ) form an inseparable cryptographic triad, mirroring the Borromean principle of interdependent stability. The theoretical validation and empirical evaluation collectively have confirmed that this interlocking dependency yields strong confidentiality, diffusion, and integrity guarantees, while maintaining computational efficiency comparable to state-of-the-art stream ciphers such as EChaCha20 and ChaCha20. Through the conducted experiments, it was observed that the BEC-Trap demonstrated high throughput (≈ 63 Mbit/s), near-perfect entropy (0.9998 bits/byte), and robust resistance to key exposure, replay, and desynchronization attacks. The trapdoor-based rekeying mechanism achieved adaptive, verifiable key evolution with sub-10 ms latency, ensuring real-time operational continuity without reinitialization overhead. These properties collectively validate that the cipher exhibits a true collapseon-compromise behavior, whereby partial disclosure of any component invalidates the entire encryption state, thereby preserving complete confidentiality. Future work will focus on three primary directions. First, the development of a formal security proof under the random oracle and ideal permutation models to quantify resistance bounds against key recovery and collision forgery. Second, hardware-level and FPGA-based implementations will be explored to evaluate energy efficiency and suitability for embedded systems, IoT devices, and real-time communication frameworks. Finally, the principles of Borromean entanglement and trapdoor mutability will be extended to other cryptographic primitives, including authenticated encryption and post-quantum key encapsulation mechanisms, to further enhance the scope and resilience of adaptive symmetric cryptography.

Acknowledgment The author acknowledges Borromean frontiers by Debra Parcheta @ University of Colorado Denver, USA. The author also would like to thank the Department of Computer Sience, University of Colorado Denver, USA for their support while coming up with this research. The author also acknowledges that the opinions, findings, and conclusions expressed in this paper are purely of the author.

Funding No funding was received for this work

References [1] Jiao, L., Hao, Y., Feng, D.: Stream cipher designs: a review. Science China 43

Information Sciences 63(3), 131101 (2020) [2] Manifavas, C., Hatzivasilis, G., Fysarakis, K., Papaefstathiou, Y.: A survey of lightweight stream ciphers for embedded systems. Security and Communication Networks 9(10), 1226–1246 (2016) [3] Klapper, A.: Pseudorandom sequences and stream ciphers. In: Algorithms and Theory of Computation Handbook: Special Topics and Techniques, pp. 17–17 (2010) [4] Kuznetsov, O., Frontoni, E., Kryvinska, N., Mormul, M., Poplavskiy, O.: 9 highspeed stream ciphers. Computational Modeling and Simulation of Advanced Wireless Communication Systems, 195 (2024) [5] Kuznetsov, O., Frontoni, E., Kryvinska, N., Mormul, M., Poplavskiy, O.: Highspeed stream ciphers for wireless communication systems: Design and simulation. In: Computational Modeling and Simulation of Advanced Wireless Communication Systems, pp. 195–228. CRC Press, ??? (2024) [6] Bernstein, D.J., et al.: Chacha, a variant of salsa20. In: Workshop Record of SASC, vol. 8, pp. 3–5 (2008). Lausanne, Switzerland [7] De Santis, F., Schauer, A., Sigl, G.: Chacha20-poly1305 authenticated encryption for high-speed embedded iot applications. In: Design, Automation & Test in Europe Conference & Exhibition (DATE), 2017, pp. 692–697 (2017). IEEE [8] Kebande, V.R.: Extended-chacha20 stream cipher with enhanced quarter round function. IEEE Access 11, 114220–114237 (2023) [9] Bernstein, D.J.: The salsa20 family of stream ciphers. In: New Stream Cipher Designs: the eSTREAM Finalists, pp. 84–97. Springer, ??? (2008) [10] Hell, M., Johansson, T., Meier, W.: Grain: a stream cipher for constrained environments. International journal of wireless and mobile computing 2(1), 86–93 (2007) [11] De Cannière, C.: Trivium: A stream cipher construction inspired by block cipher design principles. In: International Conference on Information Security, pp. 171– 186 (2006). Springer [12] Cromwell, P., Beltrami, E., Rampichini, M.: The borromean rings. Mathematical Intelligencer 20(1), 53–62 (1998) [13] Rivest, R.L.: All-or-nothing encryption and the package transform. In: International Workshop on Fast Software Encryption, pp. 210–218 (1997). Springer [14] Erhardt, E.B.: The Borromean Rings. Franklin Pierce College (1997)

44

[15] Penney, D.E.: Generalized brunnian links (1969) [16] Jablan, S.V.: Are borromean links so rare? FORMA-TOKYO- 14(4), 269–277 (1999) [17] Guan, H., Zuccher, S., Liu, X.: Topological cascade of quantum borromean rings. Physics of Fluids 37(2) (2025) [18] Wielenberg, N.J.: Three dimensional hyperbolic spaces. The Rocky Mountain Journal of Mathematics 11(4), 659–671 (1981) [19] Hilden, H.M., Lozano, M.T., Montesinos-Amilibia, J.M.: On the borromean orbifolds: geometry and arithmetic. Topology 90, 133–167 (1992) [20] Catalano, D., Fiore, D., Gennaro, R., Vamvourellis, K.: Algebraic (trapdoor) oneway functions: Constructions and applications. Theor. Comput. Sci. 592, 143–165 (2015) [21] Chandrasekhar, S., Chakrabarti, S., Singhal, M.: A trapdoor hash-based mechanism for stream authentication. IEEE Transactions on Dependable and Secure Computing 9(5), 699–713 (2012) [22] Bhowmik, A.: An unorthodox trapdoor function. International Journal of Mathematical Sciences and Computing 10(1), 31–38 (2024) [23] Catalano, D., Nguyen, P.Q., Stern, J.: The hardness of hensel lifting: The case of rsa and discrete logarithm. In: International Conference on the Theory and Application of Cryptology and Information Security, pp. 299–310 (2002). Springer [24] Håstad, J., Nåslund, M.: The security of all rsa and discrete log bits. Journal of the ACM (JACM) 51(2), 187–230 (2004) [25] Li, S., Hu, X., Liu, Y., Bai, S.: A dynamic trapdoor redactable blockchain schemes. Journal of Data Science and Intelligent Systems (2024) [26] Camenisch, J., Derler, D., Krenn, S., Pöhls, H.C., Samelin, K., Slamanig, D.: Chameleon-hashes with ephemeral trapdoors: And applications to invisible sanitizable signatures. In: IACR International Workshop on Public Key Cryptography, pp. 152–182 (2017). Springer [27] Garg, S., Gay, R., Hajiabadi, M.: New techniques for efficient trapdoor functions and applications. In: Annual International Conference on the Theory and Applications of Cryptographic Techniques, pp. 33–63 (2019). Springer [28] Rivest, R.L., Schuldt, J.C.: Spritz—a spongy rc4-like stream cipher and hash function. Cryptology ePrint Archive (2016)

45

[29] Biryukov, A., Shamir, A., Wagner, D.: Real time cryptanalysis of a5/1 on a pc. In: International Workshop on Fast Software Encryption, pp. 1–18 (2000). Springer [30] Dolejš, J., Jureček, M.: Algebraic cryptanalysis of small-scale variants of stream cipher e0. Cryptology ePrint Archive (2025) [31] Ott, D., Peikert, C., et al.: Identifying research challenges in post quantum cryptography migration and cryptographic agility. arXiv preprint arXiv:1909.07353 (2019) [32] Jose, J., Das, S., Chowdhury, D.R.: Prevention of fault attacks in cellular automata based stream ciphers. Journal of Cellular Automata 12 (2016) [33] Hu, X., Liu, L., Wang, Y., Li, M., Zhang, T.: A fast adaptive stream cipher algorithm and expanded search. In: 2011 6th International Conference on Computer Science & Education (ICCSE), pp. 297–304 (2011). IEEE [34] Canetti, R., Dodis, Y., Halevi, S., Kushilevitz, E., Sahai, A.: Exposure-resilient functions and all-or-nothing transforms. In: International Conference on the Theory and Applications of Cryptographic Techniques, pp. 453–469 (2000). Springer [35] McEvoy, R.P., Tunstall, M., Whelan, C., Murphy, C.C., Marnane, W.P.: Allor-nothing transforms as a countermeasure to differential side-channel analysis. International journal of information security 13(3), 291–304 (2014) [36] Krawczyk, H., Rabin, T.: Chameleon hashing and signatures. Cryptology ePrint Archive (1998) [37] Ateniese, G., Chou, D.H., De Medeiros, B., Tsudik, G.: Sanitizable signatures. In: European Symposium on Research in Computer Security, pp. 159–177 (2005). Springer [38] Ateniese, G., De Medeiros, B.: Identity-based chameleon hash and applications. In: International Conference on Financial Cryptography, pp. 164–180 (2004). Springer [39] Derler, D., Samelin, K., Slamanig, D.: Bringing order to chaos: The case of collision-resistant chameleon-hashes. In: IACR International Conference on Public-Key Cryptography, pp. 462–492 (2020). Springer [40] Li, Y., Liu, S.: Tagged chameleon hash from lattices and application to redactable blockchain. In: IACR International Conference on Public-Key Cryptography, pp. 288–320 (2024). Springer [41] Wu, C., Ke, L., Du, Y.: Quantum resistant key-exposure free chameleon hash and applications in redactable blockchain. Information Sciences 548, 438–449 (2021)

46

[42] Xu, J., Chen, H., Yang, X., Wu, W., Song, Y.: Verifiable image revision from chameleon hashes. Cybersecurity 4(1), 34 (2021) [43] Wu, X., Du, X., Wang, S., Yang, Q., Liu, A., Wang, W.: Prbc: A practical redactable blockchain incorporating chameleon hash functions with attribute control. Journal of Information Security and Applications 90, 104045 (2025) [44] Maxwell, G., Poelstra, A.: Borromean ring signatures. Accessed: Jun 8, 2019 (2015) [45] Ren, Y., Guan, H., Zhao, Q.: An efficient lattice-based linkable ring signature scheme with scalability to multiple layer. Journal of Ambient Intelligence and Humanized Computing 13(3), 1547–1556 (2022) [46] Kasimatis, D., Grierson, S., Buchanan, W.J., Eckl, C., Papadopoulos, P., Pitropakis, N., Thomson, C., Ghaleb, B.: Did: Ring: Ring signatures using decentralised identifiers for privacy-aware identity. arXiv preprint arXiv:2403.05271 (2024) [47] Brzuska, C., Busch, H., Dagdelen, O., Fischlin, M., Franz, M., Katzenbeisser, S., Manulis, M., Onete, C., Peter, A., Poettering, B., et al.: Redactable signatures for tree-structured data: Definitions and constructions. In: International Conference on Applied Cryptography and Network Security, pp. 87–104 (2010). Springer [48] Wang, Y., Ismail, E.S.: Tightly-secure two-tier signatures on code-based digital signatures with chameleon hash functions. Mathematics (2227-7390) 12(15) (2024) [49] Fathalla, E., Wang, C., Li, X., Gazda, R., Wu, H.: Redactable distributed ledgers: A survey. Distributed Ledger Technologies: Research and Practice 2(3), 1–26 (2023) [50] Ashritha, K., Sindhu, M., Lakshmy, K.: Redactable blockchain using enhanced chameleon hash function. In: 2019 5th International Conference on Advanced Computing & Communication Systems (ICACCS), pp. 323–328 (2019). IEEE [51] Ene, C., Lakhnech, Y., Ngo, V.C.: Formal indistinguishability extended to the random oracle model. In: European Symposium on Research in Computer Security, pp. 555–570 (2009). Springer [52] Saarinen, M.-J.O.: Nist sp 800-22 and gm/t 0005-2012 tests: Clearly obsolete, possibly harmful. IACR Cryptol. ePrint Arch. 2022, 169 (2022) [53] Damgård, I.B.: Collision free hash functions and public key signature schemes. In: Workshop on the Theory and Application of of Cryptographic Techniques, pp. 203–216 (1987). Springer

47

[54] Lin, J.: Divergence measures based on the shannon entropy. IEEE Transactions on Information theory 37(1), 145–151 (2002) [55] Zwick, M.: A systems theoretic view of speculative realism (2024)

48

Related documents

Record · ID 467087 · SHA-256 5b2ac4aac6c61456
Retrieved via Conceptio: every document is proof-bundled with source, license, and retrieval metadata.
Bring this data into your agent: Connect via MCP or API · 20 free credits to start · no card required
Read the Docs → · View CLI source on GitHub · Conceptio Open Knowledge Archive