The Order of Hashing in Fiat-Shamir Schemes
Analyzes whether input order matters when hashing Fiat-Shamir signature challenges under Merkle-Damgard and sponge hashes, classical and quantum, and proposes annoyance security notions.
Schemes: Schnorr signatures, CRYSTALS-Dilithium, Merkle-Damgard, sponge hash
Findings (quotes checked against the source text)
-
For Fiat-Shamir signatures, the commitment should be hashed before the message; all other inputs may be ordered arbitrarily.
Based on our analysis, we derive a simple rule: When using Fiat-Shamir signatures, one should hash the commitment before the message; all other inputs may be ordered arbitrarily.
-
Hashing order is not covered by a general recipe because the random oracle model treats the hash as monolithic, while real hashes use Merkle-Damgard or sponge designs.
There is no ``general recipe'' for constructing Fiat-Shamir signatures regarding the inputs and their order for the hash computation, though, since the hash function is usually modeled as a monolithic random oracle.
-
The paper introduces annoyance security properties, extending quantum-annoyance, for user exposure and signature forgeries.
we introduce new security properties following the idea of quantum-annoyance of Eaton and Stebila (PQCrypto 2021), called annoyance for user exposure and signature forgeries.
For builders
When implementing a Dilithium-style or other Fiat-Shamir signature over a Merkle-Damgard or sponge hash, hash the commitment first, then the message.
Limits
Based on the ePrint abstract only; full text was not read, so the formal conditions and proofs are unverified here.