Hash functions

JH

Hongjun Wu's SHA-3 finalist, built on a large bit-sliced SPN permutation

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 JH

JH is a cryptographic hash function. It produces a 28–64-byte output. It takes the parameter out_len (default 32). Its registry entry cites JH (SHA-3 finalist), round-3/final version. 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

JH is a hash function designed by Hongjun Wu that was one of the five SHA-3 finalists. It is based on a single 1024-bit permutation designed for efficient bit-slice implementation.

JH absorbs 512-bit message blocks by XORing each block into the first half of a 1024-bit state, applying the permutation E8, and XORing the same block into the second half. E8 uses a generalised AES design methodology on 4-bit elements: two 4-bit S-boxes selected by round constants, a linear transformation, and a bit permutation, giving an SPN that vectorises well. The final state is truncated to 224, 256, 384 or 512 bits.

During round three the number of rounds was increased from 35.5 to 42 to increase the security margin. NextSSL includes the round-3 JH, JH-224 through JH-512 entries, and round3jh256 and round3jh512 entries, all from different source collections; only the main JH entry is classed as legacy rather than unverified. Output lengths are obtained by truncation.

History

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

    NIST SHA-3 competition
  2. JH published by Hongjun Wu

  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 JH are known; the best results reach reduced rounds. It was not chosen as SHA-3 in 2012 and has little deployment.

Typical uses

SHA-3 competition researchBit-sliced permutation design study

Sizes

FieldBytesMeaning
out28 – 64Output

Parameters

NameTypeRangeDefaultRequired
out_len u64 28 – 64 32 no

Parameters are passed as a string, for example nextssl_mac("hmac", "hash=sha512", …). Omitted parameters take their declared default.

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", "jh", 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 JH?

JH is a hash in the JH family. JH is a hash function designed by Hongjun Wu that was one of the five SHA-3 finalists.

What are the JH sizes?

In NextSSL, JH uses: output 28 to 64 bytes.

Who designed JH and when?

JH belongs to the JH family, first published in 2008 by Hongjun Wu. Its origin: NIST SHA-3 competition finalist.

Which standards define JH?

JH is referenced by JH (SHA-3 finalist), round-3/final version.

Is JH safe to use?

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