{
  "id": "2018/335",
  "url": "https://opencryptology.org/2018/335",
  "original_url": "https://eprint.iacr.org/2018/335",
  "title": "Fast modular squaring with AVX512IFMA",
  "authors": [
    "Nir Drucker",
    "Shay Gueron"
  ],
  "affiliations": null,
  "abstract": "Modular exponentiation represents a signicant workload for public key cryptosystems. Examples include not only the classical RSA, DSA, and DH algorithms, but also the partially homomorphic Paillier encryption. As a result, efficient software implementations of modular exponentiation are an important target for optimization. This paper studies methods for using Intel's forthcoming AVX512 Integer Fused Multiply Accumulate (AVX512IFMA) instructions in order to speed up modular (Montgomery) squaring, which dominates the cost of the exponentiation. We further show how a minor tweak in the architectural definition of AVX512IFMA has the potential to further speed up modular squaring.",
  "category": "Implementation",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Fast modular squaring with AVX512IFMA” by Nir Drucker, Shay Gueron, Cryptology ePrint Archive, Paper 2018/335, https://eprint.iacr.org/2018/335. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": true,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2018-04-11T20:16:35Z",
    "updated": "2018-04-11T20:16:35Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2018/335.pdf",
    "sha256": "7965fd9ebb54273d86587f935a1a2ccf3a1c99c1cb37904647f986a9a5782cce",
    "size": 1781979,
    "source": "github-mirror",
    "source_date": "2019-02-25T18:03:07Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2018/335/versions/20190225T180307Z.pdf",
      "captured_at": "2019-02-25T18:03:07Z",
      "label": "copy captured 2019-02-25",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2018/335.pdf",
      "size": 1781979,
      "sha256": "7965fd9ebb54273d86587f935a1a2ccf3a1c99c1cb37904647f986a9a5782cce",
      "is_default_pdf": true
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260309104747id_/https://eprint.iacr.org/2018/335.pdf",
      "captured_at": "2026-03-09T10:47:47Z",
      "size": 986877
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2018/335.pdf",
      "captured_at": "2019-02-25T18:03:07Z",
      "size": 1781979
    }
  ],
  "bibtex": "@misc{cryptoeprint:2018/335,\n      author = {Nir Drucker and Shay Gueron},\n      title = {Fast modular squaring with AVX512IFMA},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2018/335},\n      year = {2018},\n      url = {https://eprint.iacr.org/2018/335}\n}"
}
