{
  "id": "2026/2340",
  "url": "https://opencryptology.org/2026/2340",
  "original_url": "https://eprint.iacr.org/2026/2340",
  "title": "Optimizing Montgomery Arithmetic for RSA on Cortex-M0+ and Cortex-M3",
  "authors": [
    "Minoo Sim",
    "Minwoo Lee",
    "Seungwon Lee",
    "SuBeen Cho",
    "Jiwon Bang",
    "Hwajeong Seo"
  ],
  "affiliations": null,
  "abstract": "Cryptographic tokens that retain RSA credentials for compatibility with existing authentication systems require efficient private-key operations on small processors. Cortex-M0+ (M0+) lacks native widening multiplication, whereas Cortex-M3 (M3) provides it with operand-dependent latency. We optimize Montgomery multiplication and squaring using 15-bit limbs and integrate the kernels into RSA-2048 and RSA-3072 private operations based on the Chinese remainder theorem (CRT). On M0+, a wrapped sum and accumulated block quotients enable exact carry recovery. The squaring schedule integrates square and reduction columns without storing the complete square. On M3, we retain the established half-diagonal representation and double each buffer limb when it is first incorporated into Montgomery reduction, eliminating a separate buffer traversal. We establish accumulator bounds for exact Montgomery digit and carry recovery in both schedules. At operand widths of 1024 and 1536 bits, the M0+ representation and register mapping reduce Montgomery multiplication and squaring cycles by 12.60% to 13.11% against blocked two-word controls. The M3 schedule reduces Montgomery squaring cycles by 2.12% to 3.08% with half-diagonal initialization and triangular accumulation held fixed. Kernel replacement in otherwise unchanged RSA implementations reduces warm CRT cycles by 12.59% to 12.80% on M0+ and by 1.69% to 2.39% on M3. Our M3 Montgomery multiplication also uses 31.47% fewer cycles than a reproduced number-theoretic transform (NTT) implementation for 2048-bit operands with matched integers and canonical outputs.",
  "category": "Implementation",
  "license": {
    "code": "CC0",
    "url": "https://creativecommons.org/publicdomain/zero/1.0/",
    "label": "CC0 1.0",
    "attribution": "“Optimizing Montgomery Arithmetic for RSA on Cortex-M0+ and Cortex-M3” by Minoo Sim, Minwoo Lee, Seungwon Lee, SuBeen Cho, Jiwon Bang, Hwajeong Seo, Cryptology ePrint Archive, Paper 2026/2340, https://eprint.iacr.org/2026/2340. Licensed under CC0 1.0 (https://creativecommons.org/publicdomain/zero/1.0/).",
    "retroactive": false,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2026-10-05T01:52:00Z",
    "updated": "2026-10-05T01:52:00Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2026/2340.pdf",
    "sha256": "4fe3497abdedd409630725970aeca258cfb4b8c3e0a528e102bd841e97dae710",
    "size": 415286,
    "source": "upload",
    "source_date": "2026-11-12T01:09:59.835Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "eprint_size": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2026/2340/versions/20261112T010959Z.pdf",
      "captured_at": "2026-11-12T01:09:59.835Z",
      "label": "copy captured 2026-11-12",
      "source": "upload",
      "source_url": null,
      "size": 415286,
      "sha256": "4fe3497abdedd409630725970aeca258cfb4b8c3e0a528e102bd841e97dae710",
      "is_default_pdf": true
    }
  ],
  "other_sources": [],
  "bibtex": "@misc{cryptoeprint:2026/2340,\n      author = {Minoo Sim and Minwoo Lee and Seungwon Lee and SuBeen Cho and Jiwon Bang and Hwajeong Seo},\n      title = {Optimizing Montgomery Arithmetic for RSA on Cortex-M0+ and Cortex-M3},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2026/2340},\n      year = {2026},\n      url = {https://eprint.iacr.org/2026/2340}\n}"
}
