ParallelHash
An SP 800-185 hash that splits input into blocks so cSHAKE can process them in parallel
Overview
ParallelHash is a hash function defined by NIST in SP 800-185. It divides long inputs into fixed-size blocks, hashes each block independently with cSHAKE, and combines the results, so multi-core or SIMD hardware can hash large messages faster.
The caller chooses a block size B. Each B-byte block is hashed with cSHAKE128 or cSHAKE256 to an intermediate value of 256 or 512 bits, and these intermediate values are concatenated with length encodings and hashed again with cSHAKE under the function name "ParallelHash". A customisation string allows domain separation, and an XOF variant gives arbitrary-length output.
NextSSL provides ParallelHash128 and ParallelHash256, offering 128-bit and 256-bit security respectively. Because the block size is an input to the computation, the same data hashed with different block sizes gives different results. For short messages ParallelHash offers no speed advantage and is slower than plain cSHAKE because of the extra layer. It is best suited to inputs of many kilobytes or more, where independent blocks can be dispatched to separate cores or SIMD lanes.
History
2016–2016Specified in NIST SP 800-185
Security notes
ParallelHash inherits its security from cSHAKE and Keccak, with no known weaknesses. Users must fix the block size and customisation string as part of the protocol to get reproducible outputs.
Typical uses
Variants in NextSSL
2| Algorithm | Tier | Sizes (bytes) | Standards | API |
|---|---|---|---|---|
| Parallelhash128 parallelhash128 |
standard FIPS | out 1–1024 | NIST SP 800-185 | safe |
| Parallelhash256 parallelhash256 |
standard FIPS | out 1–1024 | NIST SP 800-185 | safe |
Frequently asked questions
Which ParallelHash variants does NextSSL include?
NextSSL registers 2 ParallelHash variants: parallelhash128, parallelhash256.
Families with similar names
Other hash functions
All 424Related
The Keccak sponge, standardised by NIST in FIPS 202 as a structural alternative to SHA-2
KMACNIST's Keccak-based MAC from SP 800-185, with optional arbitrary-length output
cSHAKECustomisable SHAKE from SP 800-185, adding function-name and customisation strings
KangarooTwelveA fast tree-hashing XOF over 12-round Keccak, standardised in RFC 9861
SHA-3 and KeccakThe Keccak sponge, standardised by NIST in FIPS 202 as a structural alternative to SHA-2