A software comparison of RNS and PMNS - CNRS - Centre national de la recherche scientifique
Communication Dans Un Congrès Année : 2022

A software comparison of RNS and PMNS

Résumé

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
Origine Fichiers produits par l'(les) auteur(s)

Dates et versions

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

Identifiants

Citer

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⟩
47 Consultations
160 Téléchargements

Altmetric

Partager

More