{
  "id": "2022/112",
  "url": "https://opencryptology.org/2022/112",
  "original_url": "https://eprint.iacr.org/2022/112",
  "title": "Faster Kyber and Dilithium on the Cortex-M4",
  "authors": [
    "Amin Abdulrahman",
    "Vincent Hwang",
    "Matthias J. Kannwischer",
    "Amber Sprenkels"
  ],
  "affiliations": null,
  "abstract": "This paper presents faster implementations of the lattice-based schemes Dilithium and Kyber on the Cortex-M4. Dilithium is one of the three signature ﬁnalists in the NIST post-quantum project (NIST PQC), while Kyber is one of the four key-encapsulation mechanism (KEM) ﬁnalists.\n\nOur optimizations aﬀect the core polynomial arithmetic using the number-theoretic transform (NTT) of both schemes. Our main contributions are threefold: We present a faster signed Barrett reduction for Kyber, propose to switch to a smaller prime modulus for the polynomial multiplications \\(c\\mathbf{s}_1\\) and \\(c\\mathbf{s}_2\\) in the signing procedure of Dilithium, and apply various known optimizations to the polynomial arithmetic in both schemes. Using a smaller prime modulus is particularly interesting as it allows using the Fermat number transform resulting in especially fast code.\n\nWe outperform the state-of-the-art for both Dilithium and Kyber. For Dilithium, our NTT and iNTT are faster by 5.2% and 5.7%. Switching to a smaller modulus results in speed-up of 33.1%-37.6% for the relevant operations (sum of basemul and iNTT) in the signing procedure. For Kyber, the optimizations results in 15.9%-17.8% faster matrix-vector product which presents the core arithmetic operation in Kyber.",
  "category": "Implementation",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Faster Kyber and Dilithium on the Cortex-M4” by Amin Abdulrahman, Vincent Hwang, Matthias J. Kannwischer, Amber Sprenkels, Cryptology ePrint Archive, Paper 2022/112, https://eprint.iacr.org/2022/112. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": false,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2022-01-31T07:54:37Z",
    "updated": "2022-11-04T00:53:52Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2022/112.pdf",
    "sha256": "0e4a52275472f6339117c8cb78871e557bd19cf64d292543409043d8dae6c54c",
    "size": 445673,
    "source": "github-mirror",
    "source_date": "2024-01-14T06:13:34Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2022/112/versions/20240114T061334Z.pdf",
      "captured_at": "2024-01-14T06:13:34Z",
      "label": "copy captured 2024-01-14",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2022/112.pdf",
      "size": 445673,
      "sha256": "0e4a52275472f6339117c8cb78871e557bd19cf64d292543409043d8dae6c54c",
      "is_default_pdf": true
    },
    {
      "url": "https://opencryptology.org/2022/112/versions/20220522T021703Z.pdf",
      "captured_at": "2022-05-22T02:17:03Z",
      "label": "copy captured 2022-05-22",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20220522021703id_/https://eprint.iacr.org/2022/112.pdf",
      "size": 420370,
      "sha256": "8604ab8a3b8826c94c4f5fae1475b56fc3807cb147839de9267b4c8c3275b6c6",
      "is_default_pdf": false
    },
    {
      "url": "https://opencryptology.org/2022/112/versions/20220131T081507Z.pdf",
      "captured_at": "2022-01-31T08:15:07Z",
      "label": "copy captured 2022-01-31",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20220131081507id_/https://eprint.iacr.org/2022/112.pdf",
      "size": 424422,
      "sha256": "245c46344deef147c30d63661051d603a6f2c8f54d577f720478cdd6e74ccc04",
      "is_default_pdf": false
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20250614223129id_/https://eprint.iacr.org/2022/112.pdf",
      "captured_at": "2025-06-14T22:31:29Z",
      "size": 437449
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2022/112.pdf",
      "captured_at": "2024-01-14T06:13:34Z",
      "size": 445673
    }
  ],
  "bibtex": "@misc{cryptoeprint:2022/112,\n      author = {Amin Abdulrahman and Vincent Hwang and Matthias J. Kannwischer and Amber Sprenkels},\n      title = {Faster Kyber and Dilithium on the Cortex-M4},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2022/112},\n      year = {2022},\n      url = {https://eprint.iacr.org/2022/112}\n}"
}
