Hash family

ParallelHash

An SP 800-185 hash that splits input into blocks so cSHAKE can process them in parallel

standard 2 variants NIST SP 800-185

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–2016
  1. Specified 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

Hashing very large files on multi-core systemsProtocols already using SP 800-185 functions

Variants in NextSSL

2
AlgorithmTierSizes (bytes)StandardsAPI
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.