Concrete primitive / hc-128

HC-128

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.

Security status
intact
HC-128 · Stream Ciphers & Keyed PRFs
Best known complexity
2^152.537 time
1/1 rounds · Data 2^152.537
Latest breakthrough
2^152.537 block zero-counting keystream distinguisher on HC-128 Stankovski et al. · DOI

Cryptanalysis results

2 matching claims

Best Known Cryptanalysis Results

2^152.537 block zero-counting keystream distinguisher on HC-128

Goal: DistinguisherMethod: Keystream biasEstimate
Complexity:
2^152.537 time
1/1 rounds · Data 2^152.537
Stankovski et al.
DOI
Evidence, notes & sources for 2^152.537 block zero-counting keystream distinguisher on HC-128

Paul Stankovski, Sushmita Ruj, Martin Hell, Thomas Johansson · · mathematical · Keystream bias

Goal: Distinguisher

Keystream distinguisher counting zeros of a biased combination of 32-bit HC-128 keystream blocks

1/1 rounds · Time 2^152.537 32-bit HC-128 keystream blocks (exceeds 2^128 key size and 2^64-bit IV limit) · Data 2^152.537 · Memory unreported · Success probability unreported

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.

Sources
Evidence breakdown
Source
peer reviewed
Citation
Unchecked
Artifact
Unverified
Peer reproduction
Not reproduced
Formal verification
Unverified

Full-word linear approximation and state-leakage analysis of HC-128

Goal: State recoveryMethod: LinearEstimate
Complexity:
2^42 time
1/1 rounds
Maitra et al.
ePrint 2008/499
Evidence, notes & sources for Full-word linear approximation and state-leakage analysis of HC-128

Subhamoy Maitra, Goutam Paul, Shashwat Raizada · · mathematical · Linear

Goal: State recovery

Partial state recovery: given one of the two secret tables, recover the other from 2,048 keystream words

1/1 rounds · Time 2^42 known-one-table recovery of second table (2,048 keystream words) · Data unreported · Memory unreported · Success probability unreported

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.

Sources
Evidence breakdown
Source
peer reviewed
Citation
Unchecked
Artifact
Unverified
Peer reproduction
Not reproduced
Formal verification
Unverified

Parameter specification

key bits
128
iv bits
128
state bits
32768
tables
two 512x32-bit tables (P, Q)
Specification sources
The Stream Cipher HC-128Hongjun WuNew Stream Cipher Designs (LNCS 4986, 2008)

Open frontiers

Distinguishers on HC-128 below the 2^128 key size

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.

Improved Distinguishers for HC-128Paul Stankovski, Sushmita Ruj, Martin Hell, Thomas JohanssonDesigns, Codes and Cryptography 2012
Some Observations on HC-128Subhamoy Maitra, Goutam Paul, Shashwat Raizada

Specification JSON & API

/api/v1/primitives/hc-128.json
curl -fsSL https://cryptarena.ai/api/v1/primitives/hc-128.json

No executable verifier is registered for this variant.

API contract & interpretation guide

Loading catalog…

↑ ↓ navigate · Enter open · Esc close · 0 results (up to 40)