SequenceHash: multihashing for the rest of us
Trail of Bits introduced SequenceHash and SequenceMAC, hash constructions that bring secure multihashing to developers using hash functions other than Keccak.
Overview
Trail of Bits1 binary digit, a 1 or a 0 (a switch that is on or off) introduced two new cryptographic tools called SequenceHash and SequenceMAC to help developers securely combine multiple values into a single hash. These tools are designed to prevent security attacks that exploit ambiguous input encodingsRewrite data in another form so it can be carried; no key, anyone can reverse it, a common problem when using standard hash functionsThe fixed set of steps that makes a hash. The new methods work with many secure hash functions, including SHA256, BLAKE, and RIPEMD, without requiring complex byteA group of 8 bits, enough to store 1 character-aligned calculations. The specification is open sourceSoftware whose source code is publicly available for anyone to inspect, use, modify, and share and has been added to the Community Cryptography Specification Project. Trail of Bits also released implementations in Rust, Go, and Python, along with test vectors to help developers verify their code. Developers using these tools must choose a secure underlying hash function, as the new methods cannot make broken algorithms like MD4 or SHA0 secure.
Terms in this story
- Bits
- 1 binary digit, a 1 or a 0 (a switch that is on or off). Every file, network packet, and cryptographic key in a computer is stored as a long sequence of bits, and key strength is measured by how many bits the key contains. From the CYBR 101 room CYBR 101: Ciphers and encryption (part 1)
- encodings
- Rewrite data in another form so it can be carried; no key, anyone can reverse it. Students often confuse encoding with encryption at first, but systems encode data only so it travels safely through text protocols, not to keep it secret from anyone. From the CYBR 101 room CYBR 101: Ciphers and encryption (part 1)
- hash functions
- The fixed set of steps that makes a hash. Every digital signature, password database, and malware fingerprint relies on a hash algorithm to turn an input of any size into a short, predictable digest. From the CYBR 101 room CYBR 101: What is a hash?
- byte
- A group of 8 bits, enough to store 1 character. Memory sizes, network payloads, and buffer lengths are measured in bytes, and memory corruption bugs happen when a program writes even a single byte past the end of its buffer. From the CYBR 101 room CYBR 101: Ciphers and encryption (part 1)
- open source
- Software whose source code is publicly available for anyone to inspect, use, modify, and share. Most websites and apps rely on hundreds of open-source code libraries, so a single security flaw or malicious update in a popular library can affect thousands of companies at once.
- hashes
- A short, fixed-length fingerprint of data, made by a hash algorithm with no key. Security reports list file hashes so defenders can check whether a suspicious program on their network matches known malware, and servers store password hashes instead of plain passwords. From the CYBR 101 room CYBR 101: Ciphers and encryption (part 2); Security+ objective 1.4 lists the term
- keys
- The secret value that locks or opens a message. Many breach and ransomware stories come down to who holds the cryptographic key, since strong encryption protects data only as long as the key stays secret. From the CYBR 101 room CYBR 101: Ciphers and encryption (part 1)
This page is a short description made for this site. The article itself, with its author's name and its own link, is on the Trail of Bits website. Cite the article, not this page.
Read the full article on Trail of Bits (opens in a new tab)
Course connections
Each line below connects this story to a Security+ objective (a skill on CompTIA's Security+ exam, a common first cybersecurity certification), a CYBR 101 week, or a cybersecurity job, and quotes the words that made the connection.
- Kind of story: Research and reports
"Trail of Bits is introducing SequenceHash..." Found by reading the article; these exact words are in it - Security+ 1.4 Explain the importance of using appropriate cryptographic solutions.
"Multihashing is one of those cryptographic tasks that's easy not to think about..." Found in the opening sentences - Security+ 2.3 Explain various types of vulnerabilities.
"Multihashing is one of those cryptographic tasks that's easy not to think about..." Found in the opening sentences - CYBR 101 week 4: encoding, ciphers, symmetric and asymmetric encryption
"Multihashing is one of those cryptographic tasks that's easy not to think about..." Found in the opening sentences - CYBR 101 week 5: hashes, how passwords are stored and cracked, Linux basics
"......stumbling point when cryptographers try to use hashes." Found in the opening sentences
How a story is connected to the course, and every objective, week and job role