Paper 2026/055

RotorCipher: A Modern Approach to Rotor Ciphers Using Sponge Functions and Modular Arithmetic

Edimar Veríssimo da Silva, Federal University of São Paulo
Abstract

The revival of classical cryptography paradigms from the perspective of modern primitives offers promising avenues for the design of resilient stream ciphers. This work presents RotorCipher V2, an algorithm that reimagines the structural complexity of virtual rotor machines, integrating it with the proven security of the SHA-3 family of sponge functions. The system architecture begins with a robust key derivation process, employing the memory-hard Argon2id algorithm (with a memory cost of 64 MB) to convert user credentials into a 512-bit seed, mitigating brute-force attack vectors. The central innovation of the proposal lies in the deterministic “bootstrapping” of the internal components: using SHAKE256 as an Extendable Output Function (XOF), the system dynamically selects sizes for five virtual rotors from a permuted list of prime numbers (between 300 and 10,000). Unlike historical mechanical machines, the combined output of the rotors is not used directly; it undergoes non-linear mixing via modular multiplication 2^16 + 1 (a technique remaining from the IDEA cipher) to compose a temporary entropy table. This table feeds back into an independent instance of SHAKE256, which in turn generates 1024-byte keystream blocks, ensuring that the internal state of the rotors remains cryptographically isolated from the final output. From a software engineering perspective, the paper details a secure implementation in the Rust language, prioritizing memory security and mitigation of side-channel attacks. The code employs constant-time comparisons for integrity verification and automatic zeroing of critical secrets from memory. Simultaneously, performance is optimized through the explicit use of SIMD instructions (AVX2 and SSE2) for in-place XOR operations. The resulting protocol offers a complete solution for file encryption, guaranteeing authenticity and integrity through HMAC-SHA3-512 tags, establishing itself as a high-performance hybrid tool.

Metadata
Available format(s)
PDF
Category
Implementation
Publication info
Preprint.
Keywords
pseudorandom generatorscryptographic diffusionnonlinear layersstream cipher
Contact author(s)
edimar verissimo @ unifesp br
History
2026-01-14: approved
2026-01-13: received
See all versions
Short URL
https://ia.cr/2026/055
License
Creative Commons Attribution-NonCommercial
CC BY-NC

BibTeX

@misc{cryptoeprint:2026/055,
      author = {Edimar Veríssimo da Silva},
      title = {{RotorCipher}: A Modern Approach to Rotor Ciphers Using Sponge Functions and Modular Arithmetic},
      howpublished = {Cryptology {ePrint} Archive, Paper 2026/055},
      year = {2026},
      url = {https://eprint.iacr.org/2026/055}
}
Note: In order to protect the privacy of readers, eprint.iacr.org does not use cookies or embedded third party content.