{
  "id": "2021/1552",
  "url": "https://opencryptology.org/2021/1552",
  "original_url": "https://eprint.iacr.org/2021/1552",
  "title": "Time-memory Trade-offs for Saber+ on Memory-constrained RISC-V",
  "authors": [
    "Jipeng Zhang",
    "Junhao Huang",
    "Zhe Liu",
    "Sujoy Sinha Roy"
  ],
  "affiliations": null,
  "abstract": "Saber is a module-lattice-based key encapsulation scheme that has been selected as a finalist in the NIST Post-Quantum Cryptography Standardization Project. As Saber computes on considerably large matrices and vectors of polynomials, its efficient implementation on memory-constrained IoT devices is very challenging. In this paper, we present an implementation of Saber with a minor tweak to the original Saber protocol for achieving reduced memory consumption and better performance. We call this tweaked implementation `Saber+', and the difference compared to Saber is that we use different generation methods of public matrix \\(\\boldsymbol{A}\\) and secret vector \\(\\boldsymbol{s}\\) for memory optimization. Our highly optimized software implementation of Saber+ on a memory-constrained RISC-V platform achieves 48\\% performance improvement compared with the best state-of-the-art memory-optimized implementation of original Saber.\nSpecifically, we present various memory and performance optimizations for Saber+ on a memory-constrained RISC-V microcontroller, with merely 16KB of memory available. We utilize the Number Theoretic Transform (NTT) to speed up the polynomial multiplication in Saber+. For optimizing cycle counts and memory consumption during NTT, we carefully compare the efficiency of the complete and incomplete-NTTs, with platform-specific optimization. We implement 4-layers merging in the complete-NTT and 3-layers merging in the 6-layer incomplete-NTT. An improved on-the-fly generation strategy of the public matrix and secret vector in Saber+ results in low memory footprint. Furthermore, by combining different optimization strategies, various time-memory trade-offs are explored. Our software implementation for Saber+ on selected RISC-V core takes just 3,809K, 3,594K, and 3,193K clock cycles for key generation, encapsulation, and decapsulation, respectively, while consuming only 4.8KB of stack at most.",
  "category": "Public-key cryptography",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Time-memory Trade-offs for Saber+ on Memory-constrained RISC-V” by Jipeng Zhang, Junhao Huang, Zhe Liu, Sujoy Sinha Roy, Cryptology ePrint Archive, Paper 2021/1552, https://eprint.iacr.org/2021/1552. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": true,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2021-11-29T12:20:57Z",
    "updated": "2021-11-29T12:20:57Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2021/1552.pdf",
    "sha256": "e8bc3ade7e35b5cae7581330c31cf59a1793bda6c8ebef69ea7f401fd86ca2d3",
    "size": 1444987,
    "source": "github-mirror",
    "source_date": "2024-01-14T06:13:28Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2021/1552/versions/20240114T061328Z.pdf",
      "captured_at": "2024-01-14T06:13:28Z",
      "label": "copy captured 2024-01-14",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2021/1552.pdf",
      "size": 1444987,
      "sha256": "e8bc3ade7e35b5cae7581330c31cf59a1793bda6c8ebef69ea7f401fd86ca2d3",
      "is_default_pdf": true
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20240422002434id_/https://eprint.iacr.org/2021/1552.pdf",
      "captured_at": "2024-04-22T00:24:34Z",
      "size": 1397946
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2021/1552.pdf",
      "captured_at": "2024-01-14T06:13:28Z",
      "size": 1444987
    }
  ],
  "bibtex": "@misc{cryptoeprint:2021/1552,\n      author = {Jipeng Zhang and Junhao Huang and Zhe Liu and Sujoy Sinha Roy},\n      title = {Time-memory Trade-offs for Saber+ on Memory-constrained RISC-V},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2021/1552},\n      year = {2021},\n      url = {https://eprint.iacr.org/2021/1552}\n}"
}
