{
  "id": "2022/1499",
  "url": "https://opencryptology.org/2022/1499",
  "original_url": "https://eprint.iacr.org/2022/1499",
  "title": "WrapQ: Side-Channel Secure Key Management for Post-Quantum Cryptography",
  "authors": [
    "Markku-Juhani O. Saarinen"
  ],
  "affiliations": null,
  "abstract": "Transition to PQC brings complex challenges to builders of secure cryptographic hardware. PQC keys usually need to be stored off-module and protected via symmetric encryption and message authentication codes. Only a short, symmetric Key-Encrypting Key (KEK) can be managed on-chip with trusted non-volatile key storage. For secure use, PQC key material is handled in masked format; as randomized shares. Due to the masked encoding of the key material, algorithm-specific techniques are needed to protect the side-channel security of the PQC key import and export processes.\n\nIn this work, we study key handling techniques used in real-life secure Kyber and Dilithium hardware. We describe WrapQ, a masking-friendly key-wrapping mechanism designed for lattice cryptography. On a high level, WrapQ protects the integrity and confidentiality of key material and allows keys to be stored outside the main security boundary of the module. Significantly, its wrapping and unwrapping processes minimize side-channel leakage from the KEK integrity/authentication keys as well as the masked Kyber or Dilithium key material payload.\n\nWe demonstrate that masked Kyber or Dilithium private keys can be managed in a leakage-free fashion from a compact WrapQ format without updating its encoding in non-volatile (or read-only) memory. WrapQ has been implemented in a side-channel secure hardware module. Kyber and Dilithium wrapping and unwrapping functions were validated with 100K traces of ISO 17825 / TVLA-type leakage assessment.",
  "category": "Implementation",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“WrapQ: Side-Channel Secure Key Management for Post-Quantum Cryptography” by Markku-Juhani O. Saarinen, Cryptology ePrint Archive, Paper 2022/1499, https://eprint.iacr.org/2022/1499. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": false,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2022-10-31T22:45:37Z",
    "updated": "2023-06-15T09:44:55Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2022/1499.pdf",
    "sha256": "d2deeb46818ea0367c3f96294c3f5198e4e932889b2fceb08b6e8a461df49f80",
    "size": 1475581,
    "source": "github-mirror",
    "source_date": "2024-01-14T06:13:34Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "eprint_size": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2022/1499/versions/20240114T061334Z.pdf",
      "captured_at": "2024-01-14T06:13:34Z",
      "label": "copy captured 2024-01-14",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2022/1499.pdf",
      "size": 1475581,
      "sha256": "d2deeb46818ea0367c3f96294c3f5198e4e932889b2fceb08b6e8a461df49f80",
      "is_default_pdf": true
    },
    {
      "url": "https://opencryptology.org/2022/1499/versions/20230128T010415Z.pdf",
      "captured_at": "2023-01-28T01:04:15Z",
      "label": "copy captured 2023-01-28",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20230128010415id_/https://eprint.iacr.org/2022/1499.pdf",
      "size": 1449653,
      "sha256": "a3e87f1e5deeb27b95004c9b4375593441745b2bf032dbea1037dc52c306890f",
      "is_default_pdf": false
    },
    {
      "url": "https://opencryptology.org/2022/1499/versions/20221231T235719Z.pdf",
      "captured_at": "2022-12-31T23:57:19Z",
      "label": "copy captured 2022-12-31",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20221231235719id_/https://eprint.iacr.org/2022/1499.pdf",
      "size": 1527983,
      "sha256": "b554b315927f27cc28a651e5514b1dc26fe90cf12bc9d91e0cb7ceb4704540ee",
      "is_default_pdf": false
    },
    {
      "url": "https://opencryptology.org/2022/1499/versions/20221101T040153Z.pdf",
      "captured_at": "2022-11-01T04:01:53Z",
      "label": "copy captured 2022-11-01",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20221101040153id_/https://eprint.iacr.org/2022/1499.pdf",
      "size": 1527646,
      "sha256": "f27f214f8f9036166e2242c0589b1185419ef6a548657b226f2ce165f6031a3d",
      "is_default_pdf": false
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260924174702id_/https://eprint.iacr.org/2022/1499.pdf",
      "captured_at": "2026-09-24T17:47:02Z",
      "size": 1468160
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2022/1499.pdf",
      "captured_at": "2024-01-14T06:13:34Z",
      "size": 1475581
    }
  ],
  "bibtex": "@misc{cryptoeprint:2022/1499,\n      author = {Markku-Juhani O. Saarinen},\n      title = {WrapQ: Side-Channel Secure Key Management for Post-Quantum Cryptography},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2022/1499},\n      year = {2022},\n      url = {https://eprint.iacr.org/2022/1499}\n}"
}
