Skein Explained: 6 Facts About the SHA-3 Finalist

Skein explained in plain terms means understanding the hash function that almost became the world’s standard, a design from Bruce Schneier’s team that turns the Threefish block cipher into a fast, flexible hash with outputs of any size. The central question is how a hash built from a cipher can be trusted at all, and the answer is that Skein was built to be simple, fast, and secure in software, and it reached the final round of the contest that chose SHA-3.

Skein is a cryptographic hash function designed by Bruce Schneier, Niels Ferguson, Stefan Lucks, Doug Whiting, Mihir Bellare, Tadayoshi Kohno, Jon Callas and Jesse Walker, and submitted to the NIST SHA-3 competition in 2008. It is built on the Threefish tweakable block cipher, offers digests of any size, and it was one of the five finalists in the competition that Keccak eventually won in 2012.

This article gives you six facts about Skein, explains what it is, how it works, and why it still matters.

Key takeaways

  • Skein is a hash function built on the Threefish block cipher.
  • It was a finalist in the NIST SHA-3 competition.
  • It produces digests of any size, not just fixed lengths.
  • It uses a tweak to bind each block to its position.
  • It is fast in software and simple to implement.

What Skein is

The first fact is that Skein is a hash built from a cipher. Most hash functions are designed from scratch, but Skein takes the Threefish tweakable block cipher and runs it in a chaining mode called UBI, which means the security of the hash rests on the security of the cipher, and that reuse is what makes the design so simple to analyse.

The second fact is that Skein produces any output size. Most hashes produce a fixed digest, but Skein can produce a digest of any length the caller asks for, from a few bits to many kilobytes, which means one design serves every application, and that flexibility is what makes it attractive for protocols that need unusual digest sizes.

The third fact is that the tweak does the bookkeeping. Each block hashed by Skein carries a tweak that records its position, the total length, and the type of data being hashed, which means the hash knows where every block belongs, and that bookkeeping stops the length-extension tricks that weaken older hashes.

The fourth fact is that Skein is fast in software. A hash built from additions, rotations and XORs runs quickly on ordinary processors, and that speed is real, measured in published benchmarks and confirmed by the designers’ own analysis of the Threefish round function.

The fifth fact is that Skein reached the SHA-3 final. When NIST narrowed its hash competition to five finalists in 2010, Skein was among them, which means the design survived years of public analysis, and that survival is a mark of quality even though Keccak eventually won the competition in 2012.

The sixth fact is that Skein still matters. The Threefish cipher and the UBI mode it introduced have influenced later designs, and the scheme remains a respected choice for applications that want a fast, flexible hash, which means the finalist that lost the standard still won a place in the history of the field.

Our guide to Tiger explains the fast hash built for 64-bit machines, and our guide to SHA-3 explains the standard that won the contest Skein entered.

How Skein works

Everything starts with the message, which is split into blocks that the UBI chaining mode processes one at a time. Each block is combined with the chaining value from the previous block and a tweak that records the block’s position, which means every block is hashed in context, and the context is what stops an attacker from reordering or extending the message.

Each block begins with the Threefish cipher, which takes the chaining value as its key and the message block as its plaintext. Threefish works on 256, 512 or 1024 bits, runs for 72 or 80 rounds depending on the size, and mixes the data with additions, rotations and XORs, which means the cipher is simple to implement and fast in software.

The tweak is what makes the design work as a whole. The tweak carries the block position, the total message length, and flags for the type of data, which means the hash function knows whether it is hashing a message, a key, or a configuration block, and because the tweak changes for every block, the cipher’s behaviour evolves as the hashing progresses.

The feed-forward step spreads the effect further. After Threefish encrypts the block, the result is XORed with the original chaining value and the message block, which means the output depends on all three inputs at once, and because the feed-forward is applied to every block, a single changed bit spreads through the whole digest.

The output stage produces a digest of any size. Once all blocks are processed, Skein runs the final chaining value through an output transformation that can produce as many bits as the caller asks for, which means the same hash can produce a short fingerprint or a long key stream, and that flexibility is unique among the SHA-3 finalists.

The keyed mode turns Skein into a MAC. A key can be hashed as the first block, which means the digest then proves that the holder of the key produced it, and that keyed mode is what makes Skein useful for authentication as well as for fingerprinting.

A dark office desk with a laptop showing a glowing green cipher diagram, a brass key and a notebook beside it
A dark office desk with a laptop showing a glowing green cipher diagram, a brass key and a notebook beside it, shows how Skein works: blocks take turns through Threefish rounds, tweak after tweak, until a digest emerges.

Comparing Skein with other hash functions

Skein is one of several hash functions built for flexibility, and each was built with a different emphasis. SHA-3 is the standard built on the Keccak sponge, BLAKE2 is the fast hash built on the ChaCha core, and Skein is the one that produces any output size from a tweakable cipher, while each approach trades something for something else.

The table below sets out the main contrasts between the leading approaches.

Aspect Skein SHA-3 BLAKE2
Based on Threefish Keccak ChaCha
Output Any size Any size Any size
Tweak Yes No No
Speed Fast in software Fast in hardware Fast in software
Best for Flexible hashing Standard use Fast hashing

The practical result is that Skein is the right choice for flexible hashing, SHA-3 suits standard use everywhere else, and BLAKE2 fits fast hashing instead.

Where Skein is used

Research uses it as a case study in hash design. Cryptographers still cite Skein when they discuss building hashes from ciphers, because it is the clearest example of the UBI chaining mode in a practical scheme, and that lesson shapes how new hash functions are judged today.

Teaching uses it to show how hashes work. Skein is clean enough to explain in a lecture and well documented enough to implement in an afternoon, which makes it a favourite example in cryptography courses that cover the SHA-3 competition and the ideas that shaped it.

Benchmarks use it to measure hash speed. When someone builds a new library or a new piece of hardware, Skein is one of the designs they test, because its simple rounds exercise different parts of a processor than other hashes do, and a platform that runs Skein well is likely to run most hashes well.

Software uses it where flexibility matters. A small number of libraries and products include Skein support because it produces digests of any size, and those implementations keep running in the background of systems that were built around that choice, even though most new designs choose SHA-3 today.

Standards history uses it to mark the SHA-3 contest. Skein was part of the competition that chose the world’s hash standard, and it represents the cipher-based path that contest explored, which means historians of the field return to it whenever they ask what hashing might have looked like.

Strengths and limits

The greatest strength of Skein is its flexibility. A hash that produces digests of any size gives its users a tool that fixed-size hashes cannot match, and that flexibility is real, measured in the applications that use it and confirmed by the designers’ own reasoning about the output stage.

It is also a strength that the design is simple to understand. A hash built from a block cipher and a chaining mode is easy to implement, easy to analyse, and easy to test, and that simplicity is worth more than cleverness in a field where hidden complexity usually means hidden flaws.

The limits are real, though, and the biggest is adoption. Skein was not selected as the SHA-3 standard, which means smaller communities of implementers, fewer independent reviews in recent years, and less tooling than Keccak enjoys, and a system that must interoperate will usually choose SHA-3 instead.

Skein checklist

  • Use Skein for study and flexible hashing, not for new systems.
  • Remember it produces digests of any size.
  • Study its UBI mode to understand cipher-based hashing.
  • Compare it with SHA-3 to see the flexibility trade-off.
  • Note its tweak binds each block to its position.
  • Test against published test vectors before trusting any implementation.
  • Keep keys random and protect them as carefully as with any key.
  • Use a proper output length, never a truncated digest.
  • Choose SHA-3 for any system that needs a standard today.

Frequently asked questions

What is Skein in simple terms?

It is a hash function built from the Threefish block cipher, producing digests of any size, that reached the final round of the contest that chose SHA-3.

Why is it called Skein?

After a skein of yarn, a length of thread wound into a coil, which fits a hash that winds a message through rounds of a cipher.

How is Skein different from SHA-3?

Both are flexible hashes, but Skein is built on the Threefish cipher with a tweak, while SHA-3 is built on the Keccak sponge with no tweak.

Is Skein still secure?

Yes, no practical attack against it has been published, and its design survived years of public analysis as a SHA-3 finalist.

Where is Skein used?

In software libraries and research implementations, wherever a fast, flexible hash is needed with outputs of any size.

When should I use Skein?

When you study hash design, when you research the SHA-3 competition, or when you want a hash that shows how a cipher can fingerprint data.

The bottom line

Skein explained in one line is this: the finalist that almost won, a cipher-based hash from 2008 that proved flexibility and speed can share one design.

It is proof that a hash can be a cipher, and the reason it still matters is that every hash function designed since has been judged partly by the lesson Skein taught.

This article is general information about how Skein works, not advice about choosing encryption for a particular device or system.

Latest articles

Scroll to Top