Труды Института системного программирования РАН (Jun 2019)

Efficient Number Comparison in the Residue Number System based on Positional Characteristics

  • Mikhail Grigorievitch Babenko,
  • Andrei Tchernykh,
  • Nikolay Ivanovitch Chervyakov,
  • Viktor Andreevich Kuchukov,
  • Vanessa Miranda-Lopes,
  • Raúl Rivera Rodriguez,
  • Zhihui Du

DOI
https://doi.org/10.15514/ISPRAS-2019-31(2)-13
Journal volume & issue
Vol. 31, no. 2
pp. 187 – 201

Abstract

Read online

An important operation for data processing is a number comparison. In Residue Number System (RNS), it consists of two steps: the computation of the positional characteristic of the number in RNS representation and comparison of its positional characteristics in the positional number system. In this paper, we propose a new efficient method to compute the positional characteristic based on the approximate method. The approximate method as a tool to compare numbers does not require resource-consuming non-modular operations that are replaced by fast bit right shift operations and taking the least significant bits. We prove that in case when the dynamic range of RNS is an odd number, the size of the operands is reduced by the size of the module. If one of the RNS moduli is a power of two, then the size of the operands is less than the dynamic range. It makes our method efficient for hardware implementation of cryptographic primitives and digital signal processing.

Keywords