Stream cipher family

HC-256

Hongjun Wu's table-driven software stream cipher with a 256-bit key and IV

unverified 1 variant

Overview

HC-256 is a software-oriented stream cipher designed by Hongjun Wu in 2004. Its 128-bit-key sibling HC-128 was selected for the eSTREAM software portfolio, while HC-256 offers a 256-bit key and IV.

HC-256 maintains two secret tables P and Q, each of 1024 32-bit words. At each step one entry of a table is updated with a non-linear function of other entries using rotations, XORs and additions, and an output word is produced by combining the updated entry with a function of the other table. The key and IV initialise the tables through a long setup that runs the cipher 4096 steps without output.

The large state makes HC-256 fast once initialised but costly to set up, so it suits long messages. NextSSL includes HC-256 from source without verification. HC-128, its shorter-key sibling, is in the eSTREAM software portfolio and is the better-studied of the two. Its design avoids S-boxes. It targets long messages on general-purpose processors.

History

2004–2008
  1. HC-256 published by Hongjun Wu

  2. ECRYPT launches eSTREAM to find new stream ciphers

    eSTREAM project
  3. 34 designs submitted

    eSTREAM project
  4. Final eSTREAM portfolio published

    eSTREAM project

Security notes

No practical attacks on HC-256 are known. Its long initialisation and 8 KiB state make it unsuitable for short messages or constrained devices. NextSSL's implementation is unverified.

Typical uses

Bulk software encryption researcheSTREAM-era cipher comparisons

Variants in NextSSL

1
AlgorithmTierSizes (bytes)StandardsAPI
HC256
hc256
unverified key 32 · nonce 32 — root

Frequently asked questions

Which HC-256 variants does NextSSL include?

NextSSL registers 1 HC-256 variant: hc256.