{
  "id": "xsalsa20-poly1305",
  "name": "XSalsa20-Poly1305",
  "family_id": "salsa20",
  "description": "NaCl / libsodium crypto_secretbox: XSalsa20 with a 256-bit key and 192-bit nonce (HSalsa20 derives a subkey that keys Salsa20/20), authenticated with Poly1305. Reduced-round Salsa20 key recovery reaches 8 rounds; the full 20-round core is not broken.",
  "status": "intact",
  "parameters": {
    "key_bits": 256,
    "nonce_bits": 192,
    "tag_bits": 128,
    "rounds": 20,
    "construction": "HSalsa20 subkey + Salsa20/20 + Poly1305",
    "standard": "NaCl crypto_secretbox"
  },
  "references": [
    {
      "title": "NaCl: Networking and Cryptography library",
      "url": "https://nacl.cr.yp.to/",
      "authors": [
        "Daniel J. Bernstein"
      ]
    },
    {
      "title": "Salsa20 specification",
      "url": "https://cr.yp.to/snuffle/spec.pdf",
      "authors": [
        "Daniel J. Bernstein"
      ]
    }
  ],
  "kats": [],
  "attacks": [
    {
      "id": "xsalsa20-poly1305-dey-etal-2025-8r-pnb",
      "target_id": "xsalsa20-poly1305",
      "title": "Probabilistic-neutral-bit key recovery on the 8-round Salsa20 core underlying XSalsa20",
      "goal": "key_recovery",
      "attack_family": "differential-pnb",
      "setting": "Single-key probabilistic-neutral-bit key recovery on the 8-round Salsa20 core; full 20-round XSalsa20 is untouched",
      "claim_kind": "record",
      "track": "mathematical",
      "date": "2025-01-01",
      "authors": [
        "Dey et al.",
        "Chakrabarti et al."
      ],
      "references": [
        {
          "title": "Dey et al., probabilistic-neutral-bit analysis of reduced-round Salsa20 (ePrint 2025/256)",
          "url": "https://eprint.iacr.org/2025/256",
          "authors": [
            "Dey et al."
          ],
          "eprint_id": "2025/256",
          "quote_location": "ePrint 2025/256 (8-round Salsa20 PNB key recovery)"
        },
        {
          "title": "Chakrabarti et al., reduced-round Salsa20 key recovery (ePrint 2025/1574)",
          "url": "https://eprint.iacr.org/2025/1574",
          "authors": [
            "Chakrabarti et al."
          ],
          "eprint_id": "2025/1574",
          "quote_location": "ePrint 2025/1574 (cross-check of 8-round Salsa20 PNB cost)"
        }
      ],
      "supersedes": [],
      "disputed_by": [],
      "evidence": {
        "source_status": "preprint",
        "citation_verified": false,
        "artifact_verified": {
          "verified": false
        },
        "peer_reproduced": {
          "reproduced": false
        },
        "formal_verified": {
          "verified": false
        }
      },
      "metrics": {
        "type": "symmetric_rounds",
        "rounds_attacked": 8,
        "total_rounds": 20,
        "log2_time": 183,
        "time_unit": "8-round Salsa20 core evaluations"
      },
      "notes": "Reported range 2^183 to 2^186 in the brief; the lower end is recorded and not yet verified against the papers. The attack targets the Salsa20/20 core that XSalsa20 uses after HSalsa20 key derivation, so it is a core round-reduction result, not a break of the AEAD. Year-level date approximation."
    }
  ],
  "frontiers": [],
  "dead_ends": [],
  "lifecycle_stage": "candidate"
}
