Skein512
A SHA-3 finalist built from the Threefish tweakable block cipher in the UBI chaining mode
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 Skein512
Skein512 is one of 3 Skein variants in the NextSSL registry, a cryptographic hash function. It produces a 64-byte (512-bit) output. Its registry entry cites Skein v1.3 (Skein-512-512). 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–2015NIST announces a public competition for a new hash standard, SHA-3
NIST SHA-3 competitionSkein published
64 designs submitted; 51 accepted into round 1
NIST SHA-3 competition14 designs advance to round 2
NIST SHA-3 competitionFive finalists named: BLAKE, Grøstl, JH, Keccak and Skein
NIST SHA-3 competitionKeccak selected as SHA-3
NIST SHA-3 competitionSHA-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
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| out | 64 | Output |
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", "skein512", None, b"abc")[0]
nextssl_root_hash_with("skein512", NULL, data, out);
use nextssl_core::Params;
use nextssl_registry::{self as reg, Policy};
let digest = reg::hash_in(reg::all(), Policy::Any, "skein512", &Params::new(), b"abc")?;
Calls follow the NextSSL C ABI and its language bindings. Buffer sizes are validated against the sizes above.
Other Skein variants
2Similar names
Looking for something else?More hash functions
All 424Frequently asked questions
What is Skein512?
Skein512 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 Skein512 sizes?
In NextSSL, Skein512 uses: output 64 bytes.
Who designed Skein512 and when?
Skein512 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 Skein512?
Skein512 is referenced by Skein v1.3 (Skein-512-512).
Is Skein512 safe to use?
Skein512 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, skein256 in the Skein family.
Related families
The large-block tweakable ARX cipher underlying the Skein hash
BLAKE (SHA-3 finalist)The original BLAKE hash, a SHA-3 finalist and ancestor of BLAKE2 and BLAKE3
SHA-3 and KeccakThe Keccak sponge, standardised by NIST in FIPS 202 as a structural alternative to SHA-2
SHA-3 and KeccakThe Keccak sponge, standardised by NIST in FIPS 202 as a structural alternative to SHA-2