{
  "id": "2023/1683",
  "url": "https://opencryptology.org/2023/1683",
  "original_url": "https://eprint.iacr.org/2023/1683",
  "title": "Nibbling MAYO: Optimized Implementations for AVX2 and Cortex-M4",
  "authors": [
    "Ward Beullens",
    "Fabio Campos",
    "Sofía Celi",
    "Basil Hess",
    "Matthias J. Kannwischer"
  ],
  "affiliations": null,
  "abstract": "MAYO is a popular high-calorie condiment as well as an auspicious candidate in the ongoing NIST competition for additional post-quantum signature schemes achieving competitive signature and public key sizes.\nIn this work, we present high-speed implementations of MAYO using the AVX2 and Armv7E-M instruction sets targeting recent x86 platforms and the Arm Cortex-M4.\nMoreover, the main contribution of our work is showing that MAYO can be even faster when switching from a bitsliced representation of keys to a nibble-sliced representation.\nWhile the bitsliced representation was primarily motivated by faster arithmetic on microcontrollers, we show that it is not necessary for achieving high performance on Cortex-M4.\nOn Cortex-M4, we instead propose to implement the large matrix multiplications of MAYO using the Method of the Four Russians (M4R), which allows us to achieve better performance than when using the bitsliced approach.\nThis results in up to 21% faster signing.\nFor AVX2, the change in representation allows us to implement the arithmetic much faster using shuffle instructions.\nSigning takes up to  3.2x fewer cycles and key generation and verification enjoy similar speedups.\nThis shows that MAYO is competitive with lattice-based signature schemes on x86 CPUs, and a factor of 2-6 slower than lattice-based signature schemes on Cortex-M4 (which can still be considered competitive).",
  "category": "Implementation",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Nibbling MAYO: Optimized Implementations for AVX2 and Cortex-M4” by Ward Beullens, Fabio Campos, Sofía Celi, Basil Hess, Matthias J. Kannwischer, Cryptology ePrint Archive, Paper 2023/1683, https://eprint.iacr.org/2023/1683. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": false,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2023-10-30T15:09:31Z",
    "updated": "2024-01-15T12:30:13Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2023/1683.pdf",
    "sha256": "ec294243ec9d902f806ad6bbf7b92c09824251f4c771107c246d10422b2781c8",
    "size": 643754,
    "source": "github-mirror",
    "source_date": "2026-04-28T17:20:00Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2023/1683/versions/20260428T172000Z.pdf",
      "captured_at": "2026-04-28T17:20:00Z",
      "label": "copy captured 2026-04-28",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2023/1683.pdf",
      "size": 643754,
      "sha256": "ec294243ec9d902f806ad6bbf7b92c09824251f4c771107c246d10422b2781c8",
      "is_default_pdf": true
    },
    {
      "url": "https://opencryptology.org/2023/1683/versions/20231105T135613Z.pdf",
      "captured_at": "2023-11-05T13:56:13Z",
      "label": "copy captured 2023-11-05",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20231105135613id_/https://eprint.iacr.org/2023/1683.pdf",
      "size": 638427,
      "sha256": "838ab3e5ea7a890f0aacb6a61957f3c6e95bb7570ae88e0148a412c19658735a",
      "is_default_pdf": false
    }
  ],
  "other_sources": [
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2023/1683.pdf",
      "captured_at": "2026-04-28T17:20:00Z",
      "size": 643754
    },
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260223194437id_/https://eprint.iacr.org/2023/1683.pdf",
      "captured_at": "2026-02-23T19:44:37Z",
      "size": 639373
    }
  ],
  "bibtex": "@misc{cryptoeprint:2023/1683,\n      author = {Ward Beullens and Fabio Campos and Sofía Celi and Basil Hess and Matthias J. Kannwischer},\n      title = {Nibbling MAYO: Optimized Implementations for AVX2 and Cortex-M4},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2023/1683},\n      year = {2023},\n      url = {https://eprint.iacr.org/2023/1683}\n}"
}
