Low-Complexity Integer Divider Architecture for Homomorphic Encryption

Sajjad Akherati,Jiaxuan Cai,Xinmiao Zhang
2024-01-20
Abstract:Homomorphic encryption (HE) allows computations to be directly carried out on ciphertexts and enables privacy-preserving cloud computing. The computations on the coefficients of the polynomials involved in HE are always followed by modular reduction, and the overall complexity of ciphertext multiplication can be reduced by utilizing the quotient. Our previous design considers the cases that the dividend is an integer multiple of the modulus and the modulus is in the format of $2^w-2^u\pm1$, where $u<w/2$. In this paper, the division is generalized for larger $u$ and dividend not an integer multiple of the modulus. An algorithm is proposed to compute the quotient and vigorous mathematical proofs are provided. Moreover, efficient hardware architecture is developed for implementing the proposed algorithm. Compared to alternative division approaches that utilize the inverse of the divisor, for $w=32$, the proposed design achieves at least 9% shorter latency and 79\% area reduction for 75% possible values of $u$.
Cryptography and Security,Hardware Architecture
What problem does this paper attempt to address?
### What problem does this paper attempt to solve? This paper aims to solve the problem of low - complexity hardware implementation of integer division in Homomorphic Encryption (HE). Specifically, the paper proposes a general low - complexity integer division algorithm and its hardware architecture to address the following challenges: 1. **The case where the modulus has more non - zero bits**: - Previous designs were only applicable to the form of modulus \( q \) as \( 2^w - 2^u\pm1 \), and required \( u < w/2 \). This paper extends the design to the case where \( u\geq w/2 \). 2. **The case where the dividend is not an integer multiple of the modulus**: - Previous designs assumed that the dividend was an integer multiple of the modulus, which required an additional remainder calculation step. This paper proposes a method that does not require this assumption and directly deals with the case where the dividend is not an integer multiple of the modulus. 3. **Reducing hardware complexity and latency**: - The algorithm proposed in the paper is more efficient in hardware implementation than the existing division methods based on multiplicative inverses, reducing the area occupation and shortening the latency. #### Specific problem description - **Modulus reduction in homomorphic encryption**: Homomorphic encryption involves calculating the coefficients of polynomials, and these calculations usually require modulus reduction. The efficiency of modulus reduction directly affects the overall performance of homomorphic encryption. - **Limitations of existing methods**: - Existing methods such as [5] assume that the modulus \( q = 2^w - 2^u\pm1 \), and \( u < w/2 \), and the dividend is an integer multiple of the modulus. These assumptions limit their application range. - Other methods such as [9] and [10] use multiplicative inverses to implement division, resulting in high hardware implementation complexity and long latency. #### Solution - **General low - complexity integer division algorithm**: - An iterative algorithm is proposed to calculate the quotient through simple addition and shift operations, which is applicable to the case where \( u\geq w/2 \). - For the case where the dividend is not an integer multiple of the modulus, the influence of the remainder is considered by adjusting the quotient obtained during the iterative process. - **Efficient hardware architecture**: - An efficient hardware architecture is developed to implement the above algorithm, reducing the area occupation and shortening the latency. - Compared with existing methods, in the case of \( w = 32 \), for 75% of the possible \( u \) values, the latency of the new design is reduced by at least 9% and the area is reduced by at least 79%. ### Summary By proposing a general low - complexity integer division algorithm and its hardware architecture, this paper solves the efficiency problem of modulus reduction in homomorphic encryption, especially for the cases where the modulus has more non - zero bits and the dividend is not an integer multiple of the modulus. This not only expands the application range of existing designs but also significantly improves the efficiency of hardware implementation.