On Tight Quantum Security of HMAC and NMAC in the Quantum Random Oracle Model
Akinori Hosoyamada, Tetsu Iwata
Abstract
HMAC and NMAC are the most basic and important constructions to convert Merkle-Damgård hash functions into message authentication codes (MACs) or pseudorandom functions (PRFs). In the quantum setting, at CRYPTO 2017, Song and Yun showed that HMAC and NMAC are quantum pseudorandom functions (qPRFs) under the standard assumption that the underlying compression function is a qPRF. Their proof guarantees security up to or quantum queries when the output length of HMAC and NMAC is bits. However, there is a gap between the provable security bound and a simple distinguishing attack that uses quantum queries. This paper settles the problem of closing the gap. We show that the tight bound of the number of quantum queries to distinguish HMAC or NMAC from a random function is in the quantum random oracle model, where compression functions are modeled as quantum random oracles. To give the tight quantum bound, based on an alternative formalization of Zhandry's compressed oracle technique, we introduce a new proof technique focusing on the symmetry of quantum query records.
Ask about this paper
Ask your agent about it.
Lune has read the top-tier papers around this one, so every answer names the papers it rests on.
Your agent calls
Lunesearch_papers
Free to start. No credit card required.
Terminal
Install the CLIlune papers get fedca68f-c698-4537-b2b3-9e34789329f8Related papers
- The NISQ Complexity of Collision FindingYassine Hamoudi, Qipeng Liu, Makrand SinhaEUROCRYPT 2024 · 2 citations
- The Impossibility of Post-quantum Public Indifferentiability for Merkle-DamgårdAkinori HosoyamadaCRYPTO 2026
- Quantum-Access-Secure Message Authentication via Blind-UnforgeabilityGorjan Alagic, Christian Majenz, Alexander Russell, Fang SongEUROCRYPT 2020 · 55 citations
- Random Oracle Combiners: Merkle-Damgård StyleYevgeniy Dodis, Eli Goldin, Peter HallEUROCRYPT 2025
- The Gap Is Sensitive to Size of Preimages: Collapsing Property Doesn't Go Beyond Quantum Collision-Resistance for Preimages Bounded Hash FunctionsShujiao Cao, Rui XueCRYPTO 2022 · 4 citations
