International Association for Cryptologic Research

International Association
for Cryptologic Research

CryptoDB

Neon NTT: Faster Dilithium, Kyber, and Saber on Cortex-A72 and Apple M1

Authors:
Hanno Becker , Arm Research, Cambridge, UK
Vincent Hwang , National Taiwan University, Taipei, Taiwan; Academia Sinica, Taipei, Taiwan
Matthias J. Kannwischer , Academia Sinica, Taipei, Taiwan
Bo-Yin Yang , Academia Sinica, Taipei, Taiwan
Shang-Yi Yang , Chelpis Co. Ltd., Taipei, Taiwan
Download:
DOI: 10.46586/tches.v2022.i1.221-244
URL: https://tches.iacr.org/index.php/TCHES/article/view/9295
Search ePrint
Search Google
Presentation: Slides
Abstract: We present new speed records on the Armv8-A architecture for the latticebased schemes Dilithium, Kyber, and Saber. The core novelty in this paper is the combination of Montgomery multiplication and Barrett reduction resulting in “Barrett multiplication” which allows particularly efficient modular one-known-factor multiplication using the Armv8-A Neon vector instructions. These novel techniques combined with fast two-unknown-factor Montgomery multiplication, Barrett reduction sequences, and interleaved multi-stage butterflies result in significantly faster code. We also introduce “asymmetric multiplication” which is an improved technique for caching the results of the incomplete NTT, used e.g. for matrix-to-vector polynomial multiplication. Our implementations target the Arm Cortex-A72 CPU, on which our speed is 1.7× that of the state-of-the-art matrix-to-vector polynomial multiplication in kyber768 [Nguyen–Gaj 2021]. For Saber, NTTs are far superior to Toom–Cook multiplication on the Armv8-A architecture, outrunning the matrix-to-vector polynomial multiplication by 2.0×. On the Apple M1, our matrix-vector products run 2.1× and 1.9× faster for Kyber and Saber respectively.
BibTeX
@article{tches-2022-31648,
  title={Neon NTT: Faster Dilithium, Kyber, and Saber on Cortex-A72 and Apple M1},
  journal={IACR Transactions on Cryptographic Hardware and Embedded Systems},
  publisher={Ruhr-Universität Bochum},
  volume={2022, Issue 1},
  pages={221-244},
  url={https://tches.iacr.org/index.php/TCHES/article/view/9295},
  doi={10.46586/tches.v2022.i1.221-244},
  author={Hanno Becker and Vincent Hwang and Matthias J. Kannwischer and Bo-Yin Yang and Shang-Yi Yang},
  year=2022
}