arXiv:2610.25346cs.CROct 2026

Manuscript Offprint

arXiv:2610.25346

Equivalent Non-linear Shift Register Transformations and Espresso

Anirban Ghatak, Kaushik Sarkar, Anupam Chattopadhyay, Ambrish Awasthi, Indivar Gupta

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Anirban Ghatak 1^{1}[0000-0002-8654-2411], Kaushik Sarkar 2^{2}, Anupam Chattopadhyay 3^{3}, Ambrish Awasthi 4^{4}[0009-0000-9066-5708], and Indivar Gupta 4^{4}

1^{1} Indian Statistical Institute, Kolkata, India

ghatak.anirban@gmail.com

2^{2} Narula Institute of Technology, Kolkata

kaushik.srkr@gmail.com

3^{3} CCDS, Nanyang Technological University, Singapore

anupam@ntu.edu.sg

4^{4} Scientific Analysis Group, DRDO, Metcalfe House, Delhi, India, 110054 ambrishawasthi.sag@gov.in

Abstract. The stream cipher Espresso was designed by E. Dubrova and M. Hell as a hardware-efficient candidate for 5G security. It has two components - a 256-bit binary non-linear feedback shift register (NFSR), with 14 feedback taps, and a 20-variable non-linear output function. However, the security of Espresso with regard to several standard cryptanalytic attacks are estimated using an alternate NFSR, which has only two feedback taps. The above analysis is based on the claim that this alternate NFSR is obtained using a transformation algorithm which preserves the output sequence of the original NFSR. This issue has become all the more significant in the light of recent results on hardware performance evaluations, which assume that the stated equivalence holds.

This article presents the first successful attempt in settling the above question of Espresso NFSR equivalence. We arrive at our main result by a careful analysis of existing transformation methods relevant to the question. In doing so, we first identify and correct a critical flaw in the proof of a foundational result of E. Dubrova. Next, in the context of Espresso equivalence, we analyze and unify the transformation framework of Dubrova and the one proposed by Yao and Parampalli. Based on our analysis, we have succeeded in transforming the LFSR in an Espresso-equivalent design reported by Yao and Parampalli to the Espresso alternate NFSR. Further, we have obtained a corresponding non-linear output function which achieves output-equivalence with the LFSR design, and hence, with Espresso.

Keywords: Non-linear shift registers· Galois and Fibonacci implementation · Espresso security

1 Introduction

Linear and non-linear feedback shift registers (LFSRs and NFSRs/NLFSRs) are key design components of several families of stream ciphers. The properties of

LFSRs have been well-studied since the seminal work of S. Golomb [9], and a recent work [1] rigorously showcases both new analyses/construction and a survey of key contributions pertaining to LFSR-based designs. In comparison, the analysis of NFSRs is still a work in progress. But recent advances indicate that it may be possible to provide the same level of cryptographic security as LFSR-based designs using NFSRs but with a noticeably reduced hardware footprint. Efforts in this direction have resulted in the design of NFSR-based stream ciphers like LIZARD [10], TRIVIUM [2], Grain [11] and, more recently, Espresso [7]. However, providing security guarantees for NFSR-based stream ciphers is more of a challenge than LFSR-based designs owing to the comparative difficulty in NFSR analysis. A possible way out may be to formulate an equivalent design involving an LFSR, or a simpler NFSR, whose analysis is more tractable.

Another aspect of significance in the design of shift-register based stream ciphers is the choice between Galois and Fibonacci configurations of shift registers. In a Fibonacci NFSR there is only a single feedback update function from the intermediate stages to the terminal stage, all the other stages accept a single input from just the preceding stage. Hence, the Fibonacci configuration is a restricted case of the general Galois configuration, which potentially allows feedback between any pair of stages in the shift register. In [12], it is claimed that a stream cipher based on a Galois-configuration shift register can achieve higher clock frequency on application-specific integrated circuit (ASIC). Again, the security analysis of a stream cipher using the Fibonacci configuration is comparatively easier and well-studied in literature.

The stream cipher Espresso was proposed by E. Dubrova and M. Hell [7] as a hardware-efficient candidate for providing security in 5G communication. This cipher offers an excellent case study for the aforementioned competing design choices - Galois vs. Fibonacci and LFSR vs. NFSR. As a contender for 5G security, Espresso claims better performance than Grain-128 and Trivium in the under-1500 Gate Equivalence (GE) chip-size regime with the stated parameters: 1497 GE area, 2.22 Gbits/sec throughput and 232 nanosecond latency.

Espresso is based on a 256-bit Galois NFSR, having 14 non-linear feedback update functions at different stages, and a non-linear output function, involving the outputs of 20 different stages. However, the security of Espresso against standard cryptanalysis strategies like linear approximation attacks and TMDTO attacks is actually discussed in [7] with respect to an “equivalent” NFSR (cf. p. 277 of [7]), having only two non-linear update functions. Hence, Espresso is clearly an instance of the “analysis-on-equivalent-design” strategy mentioned earlier.

The motivation for the present work arose from an examination of the claimed equivalence of the two NFSRs presented in the Espresso proposal paper in the context of cryptanalysis of Espresso. An immediate issue had already been reported in [16]: no “equivalent” non-linear output function is provided in [7] corresponding to the alternative Galois NFSR. This precludes any comparison between the actual keystreams generated by Espresso and an “equivalent” cipher based on the alternative NFSR. Further unsubstantiated claims made in [7] in this context were reported in [8].

A series of papers by Yao and Parampalli ([16], [15], [17]) culminated in defining the so-termed ‘compensation method’ for transformations of several types of Fibonacci and Galois NFSRs. Their method applied to Espresso is claimed to yield (cf. [16], Section 6.1):

“… a Fibonacci LFSR with a nonlinear output function. Specifically, the output function consists of 2289 monomials. There are 104 variables in the output function and the algebraic degree is 12.”

But the question of whether or not the two NFSRs presented in [7] are actually equivalent was still not resolved. Notwithstanding the existence of this gap, some recent works have already attempted improved implementation of Espresso configurations (e.g. [14]), assuming the validity of the equivalence as claimed in [7].

In this article, we expand on the results reported in [8] and attempt to conclude a proposed resolution to the Espresso equivalence problem reported therein. We begin with a careful analysis of a sequence of transformation techniques which are outlined in E. Dubrova's works [3], [4], [6], and those of G. Yao and U. Parampalli [16], [17] in the context of the equivalence problem. We then proceed to define a unified framework of the Dubrova and Yao-Parampalli algorithms, the Dubrova-Yao-Parampalli (D-Y-P) framework, to gain new insights as to the claimed equivalence. Finally, we present experimental results and theoretical analysis to achieve this claimed equivalence using the D-Y-P framework. Specifically, our contributions, collated with those reported in [8], are as follows.

  1. We identify a critical mis-step in the proof of the foundational theorem of Dubrova's first algorithm (cf. Theorem 1, Section IV, [3]) and provide a correct proof (Section 3).

  2. We show that Dubrova's first algorithm [3], is essentially subsumed into the framework of the second algorithm [6] (cf. [8]) (Subsection 4.1).

  3. We establish that the Yao-Parampalli algorithm ([16], [17]) is equivalent to Dubrova's second algorithm in the case of Fibonacci-to-uniform Galois NFSR transformation (cf. [8]) for computing the feedback functions and matching initial states (Subsection 4).

  4. Using the D-Y-P framework, we obtain a NFSR/non-linear function ensemble from the Yao-Parampalli LFSR-based design, featuring the Espresso alternate NFSR F (cf. Subsection 5.1). Specifically, we have obtained a non-linear output function corresponding to the NFSR F, thereby closing the gap in the equivalence claims made in [7].

  5. We have supported our experimental results 5^{5} using the obtained ‘cipher’ featuring the Espresso alternate NFSR F, with theoretical analysis (cf. Section 5). Our results allow us to conclusively state that:

Using the D-Y-P transformation framework, we have positively settled the Espresso Equivalence Problem by proving the equivalence of the Espresso designs in the sense of matched outputs of the two NFSR/non-linear function ensembles.

5^{5} The Sagemath code for our reference implementation is available at: https://github.com/kaushiksrkr/YPFibonacci2EspressoFGalois.git