A Way Reduce Signed Bitwise Differences that Transformed Into Same Modular Differences

ZiJie Xu, Ke XuIACR ePrint 2012

Abstract

In cryptographic analysis, the relationship between different measures of "difference"—modular, arithmetic, and signed bitwise—is often complex and non-unique. This paper proposes a mathematical framework to bridge these gaps. By employing specific bitwise operations, such as right-shifts and masks, the authors establish a one-to-one relationship between modular differences and signed bitwise differences. This approach effectively closes loopholes exploited in differential cryptanalysis by ensuring that internal states do not collapse into ambiguous modular differences.

Introduction

Differential cryptanalysis is a fundamental tool for evaluating the security of cryptographic primitives. It examines how differences in input pairs result in specific differences in output pairs. However, "difference" is not a monolithic concept. Cryptanalysts typically deal with:

  1. Modular Difference: Difference based on addition/subtraction modulo $2^n$.
  2. Arithmetic Difference: Standard integer subtraction.
  3. Signed Bitwise Difference: A bit-by-bit comparison where each bit difference is represented as -1, 0, or 1.

A significant challenge arises because these measures often exhibit a "one-to-many" relationship; multiple signed bitwise differences can result in the same modular difference. This ambiguity allows attackers to find multiple internal paths that lead to the same observable output, potentially weakening the cipher. The authors aim to constrain these differences to create a bijective (one-to-one) mapping, enhancing system robustness.

Methods and Construction

The proposed framework forces a unique relationship between difference types through two primary mechanisms:

The Shift Trick (SHR)

The authors demonstrate that the sign of an arithmetic difference, which is often lost in modular addition, can be recovered. By observing both the modular difference of a variable $x$ and the modular difference of its right-shifted version ($x \gg 1$), the original arithmetic difference can be uniquely determined. This effectively "signs" the difference.

The Masking Trick

To further refine the mapping, a bitwise AND operation with a specific mask (e.g., $\sum_{i=0}^{n/2} 2^i$) is used. This ensures that pairs of signed bitwise differences map uniquely to pairs of arithmetic differences, eliminating overlapping paths.

Construction I

The paper culminates in "Construction I," a structural design that wires an internal function ($F1$) with these shift and mask operations.

Schematic of Construction I, integrating shift and mask operations to ensure unique difference mapping.

In this construction, if the modular differences of the outputs are known, the signed bitwise difference of the input is mathematically "locked" and uniquely determined. This structural integrity prevents the "collapsing" of differences that attackers exploit.

Key Insights and Results

The core contribution of this work is the elimination of ambiguity in differential paths. Key results include:

  • Sign Recovery: Proving that a simple bitwise shift reveals enough information about carry bits to recover the sign of a modular difference.
  • Theorem 2.2: Formally proves that given a variable and its shifted counterpart, their modular differences are sufficient to uniquely determine the arithmetic difference $\Delta x$.
  • Corollary 3.3: Establishes the one-to-one relationship between signed bitwise difference pairs and arithmetic difference pairs using specific bitwise masks.
  • Uniqueness in Construction I: The authors successfully demonstrate that their proposed structure ensures the input signed bitwise difference is uniquely determined by surrounding modular differences.

Discussion and Future Work

While the mathematical proofs provide a rigorous foundation for uniqueness, several practical considerations remain. The implementation overhead, specifically the "gate count" and computational cost of adding these shifts and masks to high-speed ciphers, has not been fully explored. Furthermore, while the construction assumes an internal function $F1$, the optimal choice of $F1$ (e.g., components from AES or SHA-3) requires further investigation.

Future research should focus on applying this "wrapper" construction to existing block ciphers or hash functions to empirically measure the increase in security against practical differential attacks compared to the added computational complexity.

Summary updated

BibTeX
@article{xu2012way,
  author = {ZiJie Xu and Ke Xu},
  title = {{A Way Reduce Signed Bitwise Differences that Transformed Into Same Modular Differences}},
  journal = {IACR Cryptol. ePrint Arch.},
  year = {2012},
}
Figure