Hash functions

Shavite3256

Biham and Dunkelman's HAIFA hash built on AES rounds, a SHA-3 second-round candidate

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 Shavite3256

Shavite3256 is a cryptographic hash function from the SHAvite-3 family. It produces a 32-byte (256-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

SHAvite-3 is a hash function designed by Eli Biham and Orr Dunkelman for the NIST SHA-3 competition, where it reached the second round. It uses the HAIFA mode with a block cipher built from AES rounds.

SHAvite-3's compression function is a Davies–Meyer construction around a Feistel block cipher whose round function consists of AES rounds. SHAvite-3-256 uses a 256-bit chaining value with a 3-round AES-based Feistel function over 12 rounds; SHAvite-3-512 uses a 512-bit chaining value in a generalised Feistel network over 14 rounds. A salt and bit counter are mixed into the key schedule, following HAIFA.

The 512-bit version was tweaked during round two after cryptanalysis of its key schedule. NextSSL includes SHAvite-3-256 and SHAvite-3-512 entries wired from benchmarking sources. The design is a direct descendant of earlier HAIFA work by the same authors, which proposed adding a salt and counter to every compression call. Like the other non-selected candidates, its main value today is as a reference point for understanding the designs NIST evaluated and the cryptanalysis the competition produced.

History

2007–2015
  1. NIST announces a public competition for a new hash standard, SHA-3

    NIST SHA-3 competition
  2. SHAvite-3 published by Eli Biham, Orr Dunkelman

  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

Attacks on the compression function of the original 512-bit version prompted a tweak; no practical attack on the full tweaked hash is known. It was not selected as a finalist.

Typical uses

SHA-3 competition researchStudy of AES-round-based Feistel designs

Sizes

FieldBytesMeaning
out32Output

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", "shavite3256", None, b"abc")[0]

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

Frequently asked questions

What is Shavite3256?

Shavite3256 is a hash in the SHAvite-3 family. SHAvite-3 is a hash function designed by Eli Biham and Orr Dunkelman for the NIST SHA-3 competition, where it reached the second round.

What are the Shavite3256 sizes?

In NextSSL, Shavite3256 uses: output 32 bytes.

Who designed Shavite3256 and when?

Shavite3256 belongs to the SHAvite-3 family, first published in 2008 by Eli Biham, Orr Dunkelman. Its origin: NIST SHA-3 competition (round 2).

Is Shavite3256 safe to use?

Shavite3256 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).