{
  "id": "twofish-128",
  "name": "Twofish-128",
  "family_id": "twofish",
  "description": "Twofish with a 128-bit block and 128-bit key: 16 Feistel rounds with key-dependent S-boxes. Saturation attacks reach 7 of 16 rounds with full whitening.",
  "status": "intact",
  "parameters": {
    "block_bits": 128,
    "key_bits": 128,
    "rounds": 16,
    "structure": "Feistel_key_dependent_Sboxes"
  },
  "references": [
    {
      "title": "Twofish: A 128-Bit Block Cipher",
      "url": "https://www.schneier.com/academic/twofish/",
      "authors": [
        "Bruce Schneier",
        "John Kelsey",
        "Doug Whiting",
        "David Wagner",
        "Chris Hall",
        "Niels Ferguson"
      ]
    },
    {
      "title": "The Saturation Attack — a Bait for Twofish",
      "url": "https://eprint.iacr.org/2000/046",
      "authors": [
        "Stefan Lucks"
      ],
      "eprint_id": "2000/046",
      "quote_location": "FSE 2000 / ePrint 2000/046"
    }
  ],
  "kats": [],
  "attacks": [
    {
      "id": "twofish-128-lucks-2000-7r-saturation",
      "target_id": "twofish-128",
      "title": "7-round saturation key-recovery attack on Twofish-128 (with full whitening)",
      "goal": "key-recovery",
      "attack_family": "saturation",
      "setting": "Single-key chosen-plaintext saturation (integral) attack on 7 of 16 rounds with full pre- and post-whitening",
      "claim_kind": "estimate",
      "track": "mathematical",
      "date": "2000-04-10",
      "authors": [
        "Stefan Lucks"
      ],
      "references": [
        {
          "title": "The Saturation Attack — a Bait for Twofish",
          "url": "https://eprint.iacr.org/2000/046",
          "authors": [
            "Stefan Lucks"
          ],
          "eprint_id": "2000/046",
          "quote_location": "FSE 2000 / ePrint 2000/046"
        }
      ],
      "supersedes": [],
      "disputed_by": [],
      "evidence": {
        "source_status": "peer_reviewed",
        "citation_verified": false,
        "artifact_verified": {
          "verified": false
        },
        "peer_reproduced": {
          "reproduced": false
        },
        "formal_verified": {
          "verified": false
        }
      },
      "metrics": {
        "type": "symmetric_rounds",
        "rounds_attacked": 7,
        "total_rounds": 16,
        "log2_data": 127,
        "log2_time": 126,
        "time_unit": "7-round Twofish-128 encryptions"
      },
      "notes": "Lucks achieves 7 rounds with full whitening and 8 rounds without post-whitening, at 2–4x faster than exhaustive search with up to 2^127 chosen plaintexts."
    }
  ],
  "frontiers": [
    {
      "id": "twofish-128-beyond-7-rounds",
      "target_id": "twofish-128",
      "title": "Key recovery beyond 7 rounds with full whitening",
      "description": "Lucks' saturation attack (FSE 2000) reaches 7 rounds with full whitening and 8 rounds without post-whitening, only marginally faster than exhaustive search; extending key recovery further into the 16-round cipher remains open.",
      "references": [
        {
          "title": "The Saturation Attack — a Bait for Twofish",
          "url": "https://eprint.iacr.org/2000/046",
          "authors": [
            "Stefan Lucks"
          ],
          "eprint_id": "2000/046",
          "quote_location": "FSE 2000 / ePrint 2000/046"
        },
        {
          "title": "Twofish: A 128-Bit Block Cipher",
          "url": "https://www.schneier.com/academic/twofish/",
          "authors": [
            "Bruce Schneier",
            "John Kelsey",
            "Doug Whiting",
            "David Wagner",
            "Chris Hall",
            "Niels Ferguson"
          ]
        }
      ]
    }
  ],
  "dead_ends": []
}
