Hash family

Skein

A SHA-3 finalist built from the Threefish tweakable block cipher in the UBI chaining mode

legacy 3 variants NIST SHA-3 competition finalist

Overview

Skein is a hash function family designed by a team including Bruce Schneier and Niels Ferguson that was one of the five SHA-3 finalists. It is built from Threefish, a tweakable ARX block cipher, and supports native keying, personalisation and tree hashing.

Skein uses Unique Block Iteration (UBI), a chaining mode in which each block is encrypted with Threefish under the chaining value as key and a tweak encoding the position and type of the block. The block is then XORed with the ciphertext. A configuration block, optional key block and final output block are processed through the same mode, giving domain separation between uses. Threefish uses only 64-bit additions, rotations and XORs.

Skein comes in three internal state sizes. NextSSL includes Skein-256-256, Skein-512-512 and Skein-1024-1024 from version 1.3 of the specification, the final round-3 tweak that changed the rotation constants and key schedule constant. Skein-512 was the primary recommended instance, and all three internal sizes can produce any output length. Skein's specification also defines a tree mode and a MAC mode, though these are not exposed separately here.

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

Security notes

No practical attacks on full Skein are known; the best published attacks reach reduced rounds of Threefish. It was not selected as SHA-3 in 2012 and has little deployment, so NextSSL classes it as legacy.

Typical uses

SHA-3 competition researchHashing with native keyed or personalised modesReference for Threefish

Variants in NextSSL

3
AlgorithmTierSizes (bytes)StandardsAPI
Skein1024
skein1024
legacy out 128 Skein v1.3 (Skein-1024-1024) root
Skein256
skein256
legacy out 32 Skein v1.3 (Skein-256-256) root
Skein512
skein512
legacy out 64 Skein v1.3 (Skein-512-512) root

Frequently asked questions

Which Skein variants does NextSSL include?

NextSSL registers 3 Skein variants: skein1024, skein256, skein512.