Computation (Jan 2022)

An Efficient Method for Comparing Numbers and Determining the Sign of a Number in RNS for Even Ranges

  • Andrei Tchernykh,
  • Mikhail Babenko,
  • Egor Shiriaev,
  • Bernardo Pulido-Gaytan,
  • Jorge M. Cortés-Mendoza,
  • Arutyun Avetisyan,
  • Alexander Yu Drozdov,
  • Viktor Kuchukov

DOI
https://doi.org/10.3390/computation10020017
Journal volume & issue
Vol. 10, no. 2
p. 17

Abstract

Read online

Fully Homomorphic Encryption (FHE) permits processing information in the form of ciphertexts without decryption. It can ensure the security of information in common technologies used today, such as cloud computing, the Internet of Things, and machine learning, among others. A primary disadvantage for its practical application is the low efficiency of sign and comparison operations. Several FHE schemes use the Residue Number System (RNS) to decrease the time complexity of these operations. Converting from the RNS to the positional number system and calculating the positional characteristic of a number are standard approaches for both operations in the RNS domain. In this paper, we propose a new method for comparing numbers and determining the sign of a number in RNS. We focus on the even ranges that are computationally simple due to their peculiarities. We compare the performance of several state-of-art algorithms based on an implementation in C++ and relatively simple moduli with a bit depth from 24 to 64 bits. The experimental analysis shows a better performance of our approach for all the test cases; it improves the sign detection between 1.93 and 15.3 times and the number comparison within 1.55–11.35 times with respect to all the methods and configurations.

Keywords