AES-based CCR Hash with High Security and Its Application to Zero-Knowledge Proofs

Hongrui Cui, Chun Guo, Xiao Wang, Chenkai Weng, Kang Yang, Yu Yu

TL;DR

This paper introduces a novel method to construct high-security correlation robust hash functions (CRHFs) using standard 128-bit AES. By cleverly composing multiple AES calls, the authors achieve security levels up to 256 bits, providing a massive 7–30× speedup over SHA-3 in applications like post-quantum signatures and zero-knowledge proofs.

The Challenge: High-Security Hashing with 128-bit Primitives

In modern cryptography, Correlation Robust Hash Functions (CRHFs) are essential components for protocols like zero-knowledge proofs, garbled circuits, and oblivious linear evaluation. Ideally, these hashes should be as fast as possible. The industry standard for speed is AES, thanks to the ubiquitous AES-NI instruction set found in most modern CPUs.

However, AES has a fixed block size of 128 bits. While this was sufficient for years, many modern applications—especially those aiming for quantum resistance—require 192-bit or 256-bit security. Until now, developers had to choose between using fast AES-based hashes (limited to 128-bit security) or slow, heavy-duty cryptographic hashes like SHA-3. This paper fills that gap by building a high-security "tweakable" CRHF using only standard AES.

The miTCCR Construction

The authors propose a new construction called miTCCR (multi-instance tweakable circular correlation robust hash). The design leverages standard 128-bit AES to reach higher security bounds through a multi-block approach.

Legends and an example of the orthomorphism σ used in the construction.

Key Components:

  • Multi-Block Architecture: Since a single AES block is too small for 256-bit security, the construction uses two AES invocations. It splits the input into two halves ($x_L$ and $x_R$). One half serves as the plaintext input, while the other half (combined with a "tweak" $t$ and public constants $C_0, C_1$) serves as the AES key.
  • Orthomorphism ($\sigma$): To ensure the mathematical properties required for correlation robustness, the authors use an "orthomorphism"—a specific type of linear permutation—on the input blocks, as illustrated in the figure above.
  • Ideal Cipher Model: The security of the scheme is rigorously proven in the Ideal Cipher Model using the H-coefficient technique, a standard tool for proving the indistinguishability of cryptographic constructions.
The miTCCR construction architecture showing the flow from input to output.

Key Insights and Ideas

  • Key as Input: A major innovation is treating the AES key as a flexible input. By distributing the secret correlation key across both the AES plaintext and the AES key schedule, the authors bypass the 128-bit "birthday bound" of standard AES-based hashes.
  • Standardization Matters: While one could use the original 256-bit Rijndael cipher to get higher security, it lacks the same level of hardware optimization and side-channel protection as the "official" 128-bit AES. This paper demonstrates that high security can be achieved using only the standard, trusted primitive.
  • Extractability: The paper formalizes a new "extractability" property. This ensures that if an adversary produces a valid hash output, a simulator can "extract" the original input, which is a critical requirement for certain types of vector commitments used in post-quantum signature schemes like FAEST.

Performance and Results

The authors evaluated their work using micro-benchmarks on an Intel i7-7700 CPU, comparing the AES-based construction against SHA-3 and the non-standardized 256-bit Rijndael cipher.

  • Performance Leap: For leaf commitments in vector commitment schemes, the AES-based miTCCR is 7× to 30× faster than SHA-3.
  • Security Boost: The construction allows GGM trees to scale from 128-bit to 256-bit security without switching to slower hash functions. In "half-gates" garbling schemes, it achieves 246-bit concrete security.
  • Cycle Counts: At the 256-bit security level, the scheme takes roughly 361 CPU cycles per invocation, compared to nearly 2,900 cycles for a SHA-3 based approach.

Limitations and Future Work

While highly efficient, the 192-bit and 256-bit versions of the hash are slightly slower than a hypothetical version using a non-standardized 256-bit block cipher because they require performing an AES key schedule for every invocation. Furthermore, performance gains are heavily dependent on the presence of AES-NI instructions. Future directions include optimizing the "pile" construction used in security proofs to achieve even tighter security bounds or more efficient multi-block designs.

Summary updated

BibTeX
@article{cui2024aes,
  author = {Hongrui Cui and Chun Guo and Xiao Wang and Chenkai Weng and Kang Yang and Yu Yu},
  title = {{AES-based CCR Hash with High Security and Its Application to Zero-Knowledge Proofs}},
  journal = {IACR Cryptol. ePrint Arch.},
  year = {2024},
  url = {https://openreview.net/forum?id=9YSy2cGdzn},
}
Figure