Hash functions

Skein-384-Sha3r2

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

unverified Root API only
Unverified tier.

Source found and wired, correctness not fully proven. Root API only. Reach it with NextSSL(root=True) in Python or the nextssl_root_* functions in C.

About Skein-384-Sha3r2

Skein-384-Sha3r2 is one of 4 Skein (SHA-3 round 2) variants in the NextSSL registry, a cryptographic hash function. It produces a 48-byte (384-bit) output. NextSSL lists it in the unverified tier and exposes it through the root API only (NextSSL(root=True) in Python, nextssl_root_* in C).

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

Sizes

FieldBytesMeaning
out48Output

Use it

from nextssl_demo import NextSSL

root = NextSSL(root=True)   # tier 'unverified' is reachable from the root API only
digest = root.call("hash_with", "skein-384-sha3r2", None, b"abc")[0]

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

Other Skein (SHA-3 round 2) variants

3

Frequently asked questions

What is Skein-384-Sha3r2?

Skein-384-Sha3r2 is a hash in the Skein (SHA-3 round 2) family. Skein round 2 is the tweak of the Skein hash submitted to the second round of NIST's SHA-3 competition.

What are the Skein-384-Sha3r2 sizes?

In NextSSL, Skein-384-Sha3r2 uses: output 48 bytes.

Who designed Skein-384-Sha3r2 and when?

Skein-384-Sha3r2 belongs to the Skein (SHA-3 round 2) 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, round 2.

Is Skein-384-Sha3r2 safe to use?

Skein-384-Sha3r2 is in the unverified tier. Source found and wired, correctness not fully proven. Root API only. It is only reachable through the root API (NextSSL(root=True) in Python, nextssl_root_* in C).

What other Skein (SHA-3 round 2) variants are there?

NextSSL also registers skein-224-sha3r2, skein-256-sha3r2, skein-512-sha3r2 in the Skein (SHA-3 round 2) family.