JH512
Hongjun Wu's SHA-3 finalist, built on a large bit-sliced SPN permutation
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 JH512
JH512 is a cryptographic hash function from the JH family. It produces a 64-byte (512-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
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–2015NIST announces a public competition for a new hash standard, SHA-3
NIST SHA-3 competitionJH published by Hongjun Wu
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 JH are known; the best results reach reduced rounds. It was not chosen as SHA-3 in 2012 and has little deployment.
Typical uses
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| out | 64 | Output |
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", "jh512", None, b"abc")[0]
nextssl_root_hash_with("jh512", NULL, data, out);
use nextssl_core::Params;
use nextssl_registry::{self as reg, Policy};
let digest = reg::hash_in(reg::all(), Policy::Any, "jh512", &Params::new(), b"abc")?;
Calls follow the NextSSL C ABI and its language bindings. Buffer sizes are validated against the sizes above.
Similar names
Looking for something else?More hash functions
All 424Frequently asked questions
What is JH512?
JH512 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 JH512 sizes?
In NextSSL, JH512 uses: output 64 bytes.
Who designed JH512 and when?
JH512 belongs to the JH family, first published in 2008 by Hongjun Wu. Its origin: NIST SHA-3 competition finalist.
Is JH512 safe to use?
JH512 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).
Related families
A SHA-3 finalist built from two AES-like permutations in a wide-pipe construction
SHA-3 and KeccakThe Keccak sponge, standardised by NIST in FIPS 202 as a structural alternative to SHA-2
SkeinA SHA-3 finalist built from the Threefish tweakable block cipher in the UBI chaining mode
HC-256Hongjun Wu's table-driven software stream cipher with a 256-bit key and IV
SHA-3 and KeccakThe Keccak sponge, standardised by NIST in FIPS 202 as a structural alternative to SHA-2