Paper 2025/2038

Breaking and Fixing MacaKey

Ritam Bhaumik, Technology Innovation Institute
Bishwajit Chakraborty, Nanyang Technological University, Singapore
Chandranan Dhar, Cryptography Research Center, Technology Innovation Institute, Abu Dhabi, UAE
Abstract

The sponge construction underpins many modern symmetric primitives, enabling efficient hashing and authenticated encryption. While full-state absorption is known to be secure in keyed sponges, the security of full-state squeezing has remained unclear. Recently, Lefevre and Marhuenda-Beltrán introduced MacaKey, which applies ideas from the summation-truncation hybrid technique of constructing PRFs to the full-state sponge. The authors claimed that MacaKey is provably secure up to the birthday bound in capacity, even when the adversary is allowed to request variable-length outputs. In this work, we revisit this claim and show that MacaKey is insecure as a PRF. We demonstrate a simple four-query distinguishing attack that violates its claimed bound, exploiting the exposure of the full internal state and the resulting loss of secrecy in the capacity portion during squeezing. We then propose a simple modification that restores security with negligible overhead. The modified construction, KeyMacaKey, re-randomizes the internal state after absorption by incorporating a keyed finalization step without requiring an extra permutation call. Further, we show that KeyMacaKey achieves the stronger security of birthday-bound in the full state size than what was claimed for MacaKey.

Note: Updated to published version at ToSC and updated author list.

Metadata
Available format(s)
PDF
Category
Secret-key cryptography
Publication info
Published by the IACR in TOSC 2026
DOI
10.46586/tosc.v2026.i1.76-94
Keywords
Keyed spongeFull state squeezingPRF security
Contact author(s)
bhaumik ritam @ gmail com
bishu math ynwa @ gmail com
chandranandhar @ gmail com
History
2026-03-25: last of 2 revisions
2025-11-03: received
See all versions
Short URL
https://ia.cr/2025/2038
License
Creative Commons Attribution
CC BY

BibTeX

@misc{cryptoeprint:2025/2038,
      author = {Ritam Bhaumik and Bishwajit Chakraborty and Chandranan Dhar},
      title = {Breaking and Fixing {MacaKey}},
      howpublished = {Cryptology {ePrint} Archive, Paper 2025/2038},
      year = {2025},
      doi = {10.46586/tosc.v2026.i1.76-94},
      url = {https://eprint.iacr.org/2025/2038}
}
Note: In order to protect the privacy of readers, eprint.iacr.org does not use cookies or embedded third party content.