{
  "id": "2015/410",
  "url": "https://opencryptology.org/2015/410",
  "original_url": "https://eprint.iacr.org/2015/410",
  "title": "Efficient Ring-LWE Encryption on 8-bit AVR Processors",
  "authors": [
    "Zhe Liu",
    "Hwajeong Seo",
    "Sujoy Sinha Roy",
    "Johann Großschädl",
    "Howon Kim",
    "Ingrid Verbauwhede"
  ],
  "affiliations": null,
  "abstract": "Public-key cryptography based on the ``ring-variant'' of the Learning with Errors (ring-LWE) problem is both efficient and believed to remain secure in a post-quantum world. In this paper, we introduce a carefully-optimized implementation of a ring-LWE encryption scheme for 8-bit AVR processors like the ATxmega128. Our research contributions include several optimizations for the Number Theoretic Transform (NTT) used for polynomial multiplication. More concretely, we describe the Move-and-Add (MA) and the Shift-Add-Multiply-Subtract-Subtract (SAMS2) technique to speed up the performance-critical multiplication and modular reduction of coefficients, respectively. We take advantage of incompletely-reduced intermediate results to minimize the total number of reduction operations and use a special coefficient-storage method to decrease the RAM footprint of NTT multiplications. In addition, we propose a byte-wise scanning strategy to improve the performance of a discrete Gaussian sampler based on the Knuth-Yao random walk algorithm. For medium-term security, our ring-LWE implementation needs 590k, 672k, and 276k clock cycles for key-generation, encryption, and decryption, respectively. On the other hand, for long-term security, the execution time of key-generation, encryption, and decryption amount to 2.2M, 2.6M, and 686k cycles, respectively. These results set new speed records for ring-LWE encryption on an 8-bit processor and outperform related RSA and ECC implementations by an order of magnitude.",
  "category": null,
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Efficient Ring-LWE Encryption on 8-bit AVR Processors” by Zhe Liu, Hwajeong Seo, Sujoy Sinha Roy, Johann Großschädl, Howon Kim, Ingrid Verbauwhede, Cryptology ePrint Archive, Paper 2015/410, https://eprint.iacr.org/2015/410. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": true,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2015-05-01T12:19:55Z",
    "updated": "2015-09-20T16:41:35Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2015/410.pdf",
    "sha256": "a1376c3ec399148353a8353d76e6937458b4c042c7afbe24e3246c294d5d8795",
    "size": 387010,
    "source": "github-mirror",
    "source_date": "2019-02-25T17:07:53Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2015/410/versions/20190225T170753Z.pdf",
      "captured_at": "2019-02-25T17:07:53Z",
      "label": "copy captured 2019-02-25",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2015/410.pdf",
      "size": 387010,
      "sha256": "a1376c3ec399148353a8353d76e6937458b4c042c7afbe24e3246c294d5d8795",
      "is_default_pdf": true
    },
    {
      "url": "https://opencryptology.org/2015/410/versions/20150908T074554Z.pdf",
      "captured_at": "2015-09-08T07:45:54Z",
      "label": "copy captured 2015-09-08",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20150908074554id_/http://eprint.iacr.org/2015/410.pdf",
      "size": 472692,
      "sha256": "b895f85c747b72da6667b079d1764cf62a6faab412054e7bdbc49d9242473d25",
      "is_default_pdf": false
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260105171104id_/https://eprint.iacr.org/2015/410.pdf",
      "captured_at": "2026-01-05T17:11:04Z",
      "size": 372585
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2015/410.pdf",
      "captured_at": "2019-02-25T17:07:53Z",
      "size": 387010
    }
  ],
  "bibtex": "@misc{cryptoeprint:2015/410,\n      author = {Zhe Liu and Hwajeong Seo and Sujoy Sinha Roy and Johann Großschädl and Howon Kim and Ingrid Verbauwhede},\n      title = {Efficient Ring-LWE Encryption on 8-bit AVR Processors},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2015/410},\n      year = {2015},\n      url = {https://eprint.iacr.org/2015/410}\n}"
}
