SequenceHash: multihashing for the rest of us
SequenceHash and SequenceMAC are hash-agnostic constructions for securely hashing multiple values together, an alternative to NIST's Keccak-only TupleHash that works with SHA-2, BLAKE, RIPEMD and other hashes. Each input gets a fixed 128-bit byte-length suffix, which makes the encoding unambiguous and allows streaming. An HMAC-like double-hash structure blocks length-extension attacks, and optional customization strings apply only to the outer hash, so the inner hash can be reused across contexts. The keyed SequenceMAC puts key and customizer lengths in a header to avoid HMAC's key pseudocollisions. The C2SP specification ships with Rust, Go and Python implementations and test vectors.
Related posts
- Open sourcing Winterfell: A STARK prover and verifier
Meta Engineering easyNoviceWinterfell is a general-purpose STARK prover and verifier written in Rust and published as v0.1 on crates.io, aimed at making computational-integrity and zero-knowledge proofs usable without deep cryptographic expertise. STARKs need only a collision-resistant hash function, so they require no trusted setup and are plausibly post-quantum secure, and proof generation parallelizes well across CPU cores. Users describe their computation as an algebraic intermediate representation (AIR): a Fibonacci example takes under 100 lines, and hash-based signature aggregation about 600. The library ships as modular crates, including a reusable FRI low-degree-testing implementation, and Meta plans to distribute proof generation across multiple machines.
- ClickHouse Newsletter January 2023: Better Safe Than Sorry
ClickHouse mediumAdept
ClickHouse's January 2023 newsletter lists upcoming webinars and recaps the 22.12 release. That release added grace hash join, which joins tables bucket by bucket to cut memory use at some cost in speed. It also brought async insert deduplication, password complexity rules, GROUP BY ALL, underscores in numeric literals, and parallel async reads from MergeTree on object storage. The featured query shows built-in column encryption with encrypt, decrypt and tryDecrypt using AES-128-CBC; tryDecrypt returns NULL for values the user's key cannot decrypt. It is pitched as a cheap security improvement that is weaker than an external KMS.
- Common annotated security keys
Engineering@Microsoft easyNoviceMicrosoft's Common Annotated Security Standard (CASK) extends GitHub's identifiable-token approach of fixed signatures plus checksums, so leaked secrets can be detected with near-zero false positives. Every CASK key carries a shared `JQQJ` signature, which lets one scanner rule find any conforming key, plus a provider signature such as `AZDO` for Azure DevOps. Keys use only Base62 characters, carry about 310 bits of entropy across 52 random characters, and embed a month/year creation timestamp to support rotation policies. The format also reserves test keys and platform-specific metadata bits, and Microsoft plans to open-source the spec for other providers to adopt.
- Signal Protocol and Post-Quantum Ratchets
Signal hardMaster
Signal adds the Sparse Post Quantum Ratchet (SPQR), a continuously advancing ML-KEM-based ratchet whose output is mixed with the existing Double Ratchet to form a "Triple Ratchet". It extends quantum resistance beyond PQXDH's session handshake to forward secrecy and post-compromise security. KEM key exchange needs ordered, asymmetric messages, and ML-KEM 768 keys and ciphertexts each exceed 1000 bytes versus 32 for ECDH. SPQR handles this with a state machine that coordinates encapsulation-key and ciphertext exchange, and with erasure-coded chunks spread across messages. The chunking keeps message sizes small and uniform and tolerates loss, reordering and offline peers. It also forces an attacker who wants to block key agreement into an obvious denial of service. Rollout requires no user action.
- More Than 2x Faster Hashing in ClickHouse Using Rust
ClickHouse mediumAdept
ClickHouse added optional Rust library support to its C++/CMake build using Corrosion-rs, with BLAKE3 as the first library, exposed to C++ through a Rust shim function using C-compatible FFI types and a header file. BLAKE3 hashes more than 2x faster than SHA224/SHA256 and slightly faster than MD5, while staying secure and resistant to length extension. Perf flamegraphs show the shim's type conversion costs about 1.15% of query time. Integration hurdles included MemorySanitizer false positives on Rust memory, fixed with __msan_unpoison and explicit byte conversion, plus cross-platform linking, with aarch64-darwin still unsupported. The integration also had to stay optional, statically linked, cross-compilable and compatible with sanitizers.