tuplehash-utils-0.1.0.0: Left Encode and friends from SHA-3's TupleHash
Copyright(c) 2024 Auth Global
LicenseApache2
Safe HaskellSafe-Inferred
LanguageHaskell2010

Crypto.Encoding.SHA3.TupleHash

Description

See NIST Special Publication 800-185: SHA-3 Derived Functions: cSHAKE, KMAC, TupleHash and ParallelHash. https://www.nist.gov/publications/sha-3-derived-functions-cshake-kmac-tuplehash-and-parallelhash Note that this module does not implement TupleHash itself, though it could be used to implement TupleHash given an implementation of Keccak/SHA-3. This only implements the data-encoding portions of TupleHash, and does not implement any kind of cryptographic state machine.

Documentation

leftEncode :: forall b. (Integral b, FiniteBits b) => b -> ByteString Source #