A software comparison of RNS and PMNS - Archive ouverte HAL Access content directly
Conference Papers Year : 2022

A software comparison of RNS and PMNS

(1) , (1) , (2) , (2)
1
2

Abstract

The Polynomial Modular Number System (PMNS) and the Residue Number System (RNS) are integer number systems which aim to speed up modular arithmetic. Their parallel properties make them suitable for the implementation of cryptographic applications on modern processors with SIMD instructions. In this work, we will show the implementation choices made for the modular multiplication in both systems and compare their implementation performances for several sizes of moduli. We target the Intel 64-bit sequential instruction set and the Intel AVX-512 vector instruction set. This instruction set allows significant speed-ups up to 1 621 bit size moduli, while the vectorized PMNS implementation is up to 2.5 times faster than the vectorized RNS, though the vectorized RNS becomes slightly better for 3 251 bits, due to the difficulty to find a PMNS with a suitable parameter n. The vectorized RNS implementations reach performance levels close the state-of-the-art GMP library, while the retired instruction counts are lower for sizes between 401 and 3 251 bits.
Fichier principal
Vignette du fichier
782700a086.pdf (189.51 Ko) Télécharger le fichier
Origin : Files produced by the author(s)

Dates and versions

hal-03916493 , version 1 (30-12-2022)

Identifiers

Cite

Laurent-Stephane Didier, Jean-Marc Robert, Fangan Yssouf Dosso, Nadia El Mrabet. A software comparison of RNS and PMNS. ARITH29, Sep 2022, Virtual Conference, France. ⟨10.1109/arith54963.2022.00025⟩. ⟨hal-03916493⟩
0 View
0 Download

Altmetric

Share

Gmail Facebook Twitter LinkedIn More