Hash family

Skein (SHA-3 round 2)

Skein round 2: the Threefish-based SHA-3 candidate tweak with 224 to 512-bit digests

unverified 4 variants NIST SHA-3 competition, round 2

Overview

Skein round 2 is the tweak of the Skein hash submitted to the second round of NIST's SHA-3 competition. It uses the Threefish block cipher and UBI chaining, and NextSSL archives it as unverified research code.

Skein chains the Unique Block Iteration (UBI) mode over the Threefish tweakable block cipher. Threefish uses only addition, rotation and XOR, so it runs quickly in software without table lookups. The five SHA-3 finalists were studied publicly for several years, and that analysis is recorded in the published literature rather than in NextSSL's data. NextSSL keeps this archived version as its own entry so that test vectors can match a specific round or parameter set.

This is the round 2 tweak, between the round 1 submission and the round 3 finalist. NextSSL lists output sizes of 224, 256, 384 and 512-bit, and the entries are skein-224-sha3r2, skein-256-sha3r2, skein-384-sha3r2, skein-512-sha3r2. Keccak was selected in 2012 as SHA-3 and standardised in FIPS 202, so the other finalists are historical comparisons. For production hashing, SHA-2 and the standardised SHA-3 functions remain the recommended choices.

Skein also has a tree-hashing and key-derivation mode from the same design. The archived variants here are the plain hash outputs, and each size is a separate entry. The five SHA-3 finalists were studied publicly for several years, and that analysis is recorded in the published literature rather than in NextSSL's data. NextSSL keeps this archived version as its own entry so that test vectors can match a specific round or parameter set.

History

2007–2015
  1. NIST announces a public competition for a new hash standard, SHA-3

    NIST SHA-3 competition
  2. Skein published

  3. 64 designs submitted; 51 accepted into round 1

    NIST SHA-3 competition
  4. 14 designs advance to round 2

    NIST SHA-3 competition
  5. Five finalists named: BLAKE, Grøstl, JH, Keccak and Skein

    NIST SHA-3 competition
  6. Keccak selected as SHA-3

    NIST SHA-3 competition
  7. SHA-3 published as FIPS 202

    NIST SHA-3 competition

How it works

  1. The message is split into blocks and each block is processed by UBI with a tweak that encodes the block type.
  2. Threefish encrypts the chaining value under the message block as key.
  3. A final output block is generated from the last state and truncated to the requested size.

Security notes

Skein was a SHA-3 finalist and has no practical attack on the full hash in NextSSL's data. Its tier is unverified, so use it for research and comparison.

Typical uses

Historical comparison of SHA-3 finalistsResearch on tweakable block ciphers in hashingNot recommended for production hashing

Variants in NextSSL

4
AlgorithmTierSizes (bytes)StandardsAPI
Skein-224-Sha3r2
skein-224-sha3r2
unverified out 28 — root
Skein-256-Sha3r2
skein-256-sha3r2
unverified out 32 — root
Skein-384-Sha3r2
skein-384-sha3r2
unverified out 48 — root
Skein-512-Sha3r2
skein-512-sha3r2
unverified out 64 — root

Frequently asked questions

What is Skein?

Skein round 2 is the tweak of the Skein hash submitted to the second round of NIST's SHA-3 competition.

Is Skein secure?

Skein was a SHA-3 finalist and has no practical attack on the full hash in NextSSL's data.

What digest sizes does Skein produce?

The archived Skein variants are: skein-224-sha3r2 gives 224-bit (28 bytes); skein-256-sha3r2 gives 256-bit (32 bytes); skein-384-sha3r2 gives 384-bit (48 bytes); skein-512-sha3r2 gives 512-bit (64 bytes).

Which Skein (SHA-3 round 2) variants does NextSSL include?

NextSSL registers 4 Skein (SHA-3 round 2) variants: skein-224-sha3r2, skein-256-sha3r2, skein-384-sha3r2, skein-512-sha3r2.