{
  "id": "2020/1507",
  "url": "https://opencryptology.org/2020/1507",
  "original_url": "https://eprint.iacr.org/2020/1507",
  "title": "Improvements to RSA key generation and CRT on embedded devices",
  "authors": [
    "Mike Hamburg",
    "Mike Tunstall",
    "Qinglai Xiao"
  ],
  "affiliations": null,
  "abstract": "RSA key generation requires devices to generate large prime numbers.  The naïve approach is to generate candidates at random, and then test each one for (probable) primality.  However, it is faster to use a sieve method, where the candidates are chosen so as not to be divisible by a list of small prime numbers $\\{p_i\\}$.\n\nSieve methods can be somewhat complex and time-consuming, at least by the standards of embedded and hardware implementations, and they can be tricky to defend against side-channel analysis.  Here we describe an improvement on Joye et al.'s sieve based on the Chinese Remainder Theorem (CRT).  We also describe a new sieve method using quadratic residuosity which is simpler and faster than previously known methods, and which can produce values in desired RSA parameter ranges such as $(2^{n-1/2}, 2^n)$ with minimal additional work.  The same methods can be used to generate strong primes and DSA moduli.\n\nWe also demonstrate a technique for RSA private key operations using the Chinese Remainder Theorem (RSA-CRT) without $q^{-1}$ mod $p$.  This technique also leads to inversion-free batch RSA and inversion-free RSA mod $p^k q$.\n\nWe demonstrate how an embedded device can use our key generation and RSA-CRT techniques to perform RSA efficiently without storing the private key itself: only a symmetric seed and one or two short hints are required.",
  "category": "Public-key cryptography",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Improvements to RSA key generation and CRT on embedded devices” by Mike Hamburg, Mike Tunstall, Qinglai Xiao, Cryptology ePrint Archive, Paper 2020/1507, https://eprint.iacr.org/2020/1507. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": true,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2020-12-02T10:06:56Z",
    "updated": "2021-03-30T20:12:02Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2020/1507.pdf",
    "sha256": "0410ae49a53e4d44655386e8f2160db9b1c35bcfebb7eb1bc36c684f2b9889bd",
    "size": 492537,
    "source": "github-mirror",
    "source_date": "2024-01-14T06:13:14Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2020/1507/versions/20240114T061314Z.pdf",
      "captured_at": "2024-01-14T06:13:14Z",
      "label": "copy captured 2024-01-14",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2020/1507.pdf",
      "size": 492537,
      "sha256": "0410ae49a53e4d44655386e8f2160db9b1c35bcfebb7eb1bc36c684f2b9889bd",
      "is_default_pdf": true
    },
    {
      "url": "https://opencryptology.org/2020/1507/versions/20210116T050604Z.pdf",
      "captured_at": "2021-01-16T05:06:04Z",
      "label": "copy captured 2021-01-16",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20210116050604id_/https://eprint.iacr.org/2020/1507.pdf",
      "size": 480365,
      "sha256": "8ea1ea6191dfe585b22b082a082a3b59c2e3374a4b5aaa0534f2c10c6ffbd445",
      "is_default_pdf": false
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260825183203id_/https://eprint.iacr.org/2020/1507.pdf",
      "captured_at": "2026-08-25T18:32:03Z",
      "size": 493480
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2020/1507.pdf",
      "captured_at": "2024-01-14T06:13:14Z",
      "size": 492537
    }
  ],
  "bibtex": "@misc{cryptoeprint:2020/1507,\n      author = {Mike Hamburg and Mike Tunstall and Qinglai Xiao},\n      title = {Improvements to RSA key generation and CRT on embedded devices},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2020/1507},\n      year = {2020},\n      url = {https://eprint.iacr.org/2020/1507}\n}"
}
