{
  "id": "hc-128",
  "name": "HC-128",
  "family_id": "hc-128",
  "description": "HC-128 with a 128-bit key, 128-bit IV, and a 32768-bit state in two 512x32-bit tables (P, Q). Best known attack: a zero-counting keystream distinguisher needing 2^152.537 keystream blocks, above the 2^128 key size.",
  "status": "intact",
  "parameters": {
    "key_bits": 128,
    "iv_bits": 128,
    "state_bits": 32768,
    "tables": "two 512x32-bit tables (P, Q)"
  },
  "references": [
    {
      "title": "The Stream Cipher HC-128",
      "url": "https://doi.org/10.1007/978-3-540-68351-3_4",
      "authors": [
        "Hongjun Wu"
      ],
      "doi": "10.1007/978-3-540-68351-3_4",
      "quote_location": "New Stream Cipher Designs (LNCS 4986, 2008)"
    }
  ],
  "kats": [],
  "attacks": [
    {
      "id": "hc-128-stankovski-2012-dist",
      "target_id": "hc-128",
      "title": "2^152.537 block zero-counting keystream distinguisher on HC-128",
      "goal": "distinguisher",
      "attack_family": "keystream-bias",
      "setting": "Keystream distinguisher counting zeros of a biased combination of 32-bit HC-128 keystream blocks",
      "claim_kind": "estimate",
      "track": "mathematical",
      "date": "2012-05-01",
      "authors": [
        "Paul Stankovski",
        "Sushmita Ruj",
        "Martin Hell",
        "Thomas Johansson"
      ],
      "references": [
        {
          "title": "Improved Distinguishers for HC-128",
          "url": "https://doi.org/10.1007/s10623-011-9549-8",
          "authors": [
            "Paul Stankovski",
            "Sushmita Ruj",
            "Martin Hell",
            "Thomas Johansson"
          ],
          "doi": "10.1007/s10623-011-9549-8",
          "quote_location": "Designs, Codes and Cryptography 2012"
        }
      ],
      "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": 1,
        "total_rounds": 1,
        "log2_data": 152.537,
        "log2_time": 152.537,
        "time_unit": "32-bit HC-128 keystream blocks (exceeds 2^128 key size and 2^64-bit IV limit)"
      },
      "notes": "HC-128 has no round structure; rounds_attacked and total_rounds are set to 1/1 to denote the full cipher. The cost exceeds the 2^128 key size and the per-key keystream limit, so the result does not affect the security claim."
    },
    {
      "id": "hc-128-maitra-2008-obs",
      "target_id": "hc-128",
      "title": "Full-word linear approximation and state-leakage analysis of HC-128",
      "goal": "state-recovery",
      "attack_family": "linear",
      "setting": "Partial state recovery: given one of the two secret tables, recover the other from 2,048 keystream words",
      "claim_kind": "estimate",
      "track": "mathematical",
      "date": "2008-11-24",
      "authors": [
        "Subhamoy Maitra",
        "Goutam Paul",
        "Shashwat Raizada"
      ],
      "references": [
        {
          "title": "Some Observations on HC-128",
          "url": "https://eprint.iacr.org/2008/499",
          "authors": [
            "Subhamoy Maitra",
            "Goutam Paul",
            "Shashwat Raizada"
          ],
          "eprint_id": "2008/499"
        }
      ],
      "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": 1,
        "total_rounds": 1,
        "log2_time": 42,
        "time_unit": "known-one-table recovery of second table (2,048 keystream words)"
      },
      "notes": "Conditional result: it assumes one 512-word table is already known, so it is not a standalone attack on HC-128. rounds_attacked and total_rounds are set to 1/1 because HC-128 has no round structure."
    }
  ],
  "frontiers": [
    {
      "id": "hc-128-distinguisher-below-key-size",
      "target_id": "hc-128",
      "title": "Distinguishers on HC-128 below the 2^128 key size",
      "description": "The best keystream distinguisher on HC-128 needs 2^152.537 keystream blocks, above both the 2^128 key size and the per-key keystream limit, and the known state-leakage results assume one table is already known. Whether any distinguishing or state-recovery attack can be brought below exhaustive key search remains open.",
      "references": [
        {
          "title": "Improved Distinguishers for HC-128",
          "url": "https://doi.org/10.1007/s10623-011-9549-8",
          "authors": [
            "Paul Stankovski",
            "Sushmita Ruj",
            "Martin Hell",
            "Thomas Johansson"
          ],
          "doi": "10.1007/s10623-011-9549-8",
          "quote_location": "Designs, Codes and Cryptography 2012"
        },
        {
          "title": "Some Observations on HC-128",
          "url": "https://eprint.iacr.org/2008/499",
          "authors": [
            "Subhamoy Maitra",
            "Goutam Paul",
            "Shashwat Raizada"
          ],
          "eprint_id": "2008/499"
        }
      ]
    }
  ],
  "dead_ends": []
}
