Hash functions

Skein256

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

legacy Root API only
Legacy tier.

Old but not broken. Kept for interoperability; root API only. Reach it with NextSSL(root=True) in Python or the nextssl_root_* functions in C.

About Skein256

Skein256 is one of 3 Skein variants in the NextSSL registry, a cryptographic hash function. It produces a 32-byte (256-bit) output. Its registry entry cites Skein v1.3 (Skein-256-256). NextSSL lists it in the legacy tier and exposes it through the root API only (NextSSL(root=True) in Python, nextssl_root_* in C).

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

Sizes

FieldBytesMeaning
out32Output

Use it

from nextssl_demo import NextSSL

root = NextSSL(root=True)   # tier 'legacy' is reachable from the root API only
digest = root.call("hash_with", "skein256", None, b"abc")[0]

Calls follow the NextSSL C ABI and its language bindings. Buffer sizes are validated against the sizes above.

Other Skein variants

2

Frequently asked questions

What is Skein256?

Skein256 is a hash in the Skein family. 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.

What are the Skein256 sizes?

In NextSSL, Skein256 uses: output 32 bytes.

Who designed Skein256 and when?

Skein256 belongs to the Skein family, first published in 2008 by Niels Ferguson, Stefan Lucks, Bruce Schneier, Doug Whiting, Mihir Bellare, Tadayoshi Kohno, Jon Callas, Jesse Walker. Its origin: NIST SHA-3 competition finalist.

Which standards define Skein256?

Skein256 is referenced by Skein v1.3 (Skein-256-256).

Is Skein256 safe to use?

Skein256 is in the legacy tier. Old but not broken. Kept for interoperability; root API only. It is only reachable through the root API (NextSSL(root=True) in Python, nextssl_root_* in C).

What other Skein variants are there?

NextSSL also registers skein1024, skein512 in the Skein family.