Paper 2025/1846 Original: eprint.iacr.org/2025/1846 ↗

The Order of Hashing in Fiat-Shamir Schemes

Barbara Jiabao Benedikt
Marc Fischlin
Abstract

Fiat-Shamir signatures replace the challenge in interactive identification schemes by a hash value over the commitment, the message, and possibly the signer's public key. This construction paradigm is well known and widely used in cryptography, for example, for Schnorr signatures and CRYSTALS-Dilithium. 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. In practice, however, the hash function is based on the Merkle-Damgård or the sponge design. Our work investigates whether there are advisable or imprudent input orders for hashing in Fiat-Shamir signatures. We examine Fiat-Shamir signatures with plain and nested hashing using Merkle-Damgård or sponge-based hash functions. We analyze these constructions in both classical and quantum settings. As part of our investigations, 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. These properties ensure that an adversary against the hash function cannot gain a significant advantage when attempting to extend a successful attack on a single signature forgery to multiple users or to multiple forgeries of a single user. Instead, the adversary must create extra forgeries from scratch. 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.

Metadata
Available format(s)
PDF
Category
Attacks and cryptanalysis
Publication info
Preprint.
History
2025-10-06: last updated
2025-10-06: published
Short URL
https://ia.cr/2025/1846
License
https://creativecommons.org/licenses/by/4.0/

BibTeX

@misc{cryptoeprint:2025/1846,
      author = {Barbara Jiabao Benedikt and Marc Fischlin},
      title = {The Order of Hashing in Fiat-Shamir Schemes},
      howpublished = {Cryptology {ePrint} Archive, Paper 2025/1846},
      year = {2025},
      url = {https://eprint.iacr.org/2025/1846}
}
Note: In order to protect the privacy of readers, this archive does not use cookies or embedded third party content.