Threefish
The large-block tweakable ARX cipher underlying the Skein hash
Overview
Threefish is a tweakable block cipher with 256-, 512- and 1024-bit blocks, designed as the core of the Skein hash function. It uses only 64-bit additions, rotations and XORs and accepts a 128-bit tweak alongside the key.
Threefish's MIX function adds two 64-bit words, rotates one by a constant and XORs it with the sum. Each round applies MIX to word pairs and then permutes the words; a subkey derived from the key and tweak is added every four rounds. Threefish-256 and -512 use 72 rounds, Threefish-1024 uses 80. The tweak makes each encryption a separate permutation, which Skein uses to encode block position and type.
NextSSL includes Threefish-256, Threefish-512 and Threefish-1024 as specified in Skein version 1.3. Its large block sizes and tweak input make it suitable for wide-block and tweakable constructions beyond hashing, though few have been standardised. The tweak is not a key, but it changes the permutation, and Skein uses it to encode position and block type.
History
2008–2008Threefish published
Security notes
No practical attacks on full Threefish are known; the best published results reach well under its full round count. It is rarely used outside Skein.
Typical uses
Variants in NextSSL
3| Algorithm | Tier | Sizes (bytes) | Standards | API |
|---|---|---|---|---|
| Threefish-1024 threefish-1024 |
standard | key 128 · block 128 | Skein 1.3 (Threefish) | safe |
| Threefish-256 threefish-256 |
standard | key 32 · block 32 | Skein 1.3 (Threefish) | safe |
| Threefish-512 threefish-512 |
standard | key 64 · block 64 | Skein 1.3 (Threefish) | safe |
Frequently asked questions
Which Threefish variants does NextSSL include?
NextSSL registers 3 Threefish variants: threefish-1024, threefish-256, threefish-512.