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.

What Problem Does This Paper Address?

In modern cryptography, Correlation Robust Hash Functions (CRHFs) are essential "glue" for protocols like zero-knowledge proofs, garbled circuits, and oblivious linear evaluation. Ideally, we want these hashes to 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, there is a catch: 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 (stuck at 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.

Methods

The authors propose a new construction called miTCCR (multi-instance tweakable circular correlation robust hash).

  • Multi-Block Construction: 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" and public constants) 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.
  • 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.
  • 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.

Datasets

As a theoretical and systems-oriented cryptography paper, it does not use traditional "datasets." Instead, the authors evaluate their work using:

  • Micro-benchmarks: Measuring CPU cycles per hash invocation on an Intel i7-7700 CPU.
  • Comparative Baselines: They compare their AES-based construction against the non-standardized 256-bit Rijndael cipher and the standardized SHA-3 hash function.

Key Insights and Ideas

  • Key as Input: A major "aha" moment 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 (the precursor to AES) to get higher security, it isn't standardized and lacks the same level of hardware optimization and side-channel protection as the "official" 128-bit AES. This paper shows you can get the best of both worlds: high security using only the standard, trusted primitive.
  • The "Extractability" Bridge: By proving their hash is "extractable," they demonstrate it can safely replace SHA-3 in "all-but-one" vector commitments, which are a bottleneck in recent post-quantum signature schemes like FAEST.

Key Results

  • 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 (a way to generate many pseudorandom values) to scale from 128-bit to 256-bit security without switching to slower hash functions.
  • Garbling Efficiency: When applied to "half-gates" garbling schemes, the construction achieves 246-bit concrete security, providing a robust defense even against adversaries with significant quantum computing power.
  • Cycle Counts: At the 256-bit security level, their scheme takes roughly 361 CPU cycles per invocation, compared to nearly 2,900 cycles for a SHA-3 based approach.

Limitations and Future Work

  • Key Scheduling Overhead: 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.
  • Hardware Specifics: The performance gains are heavily dependent on the presence of AES-NI instructions. On hardware without these instructions, the advantage over SHA-3 would likely diminish.
  • Future Directions: The authors suggest that further optimizations in the "pile" construction used in their security proofs could lead to even tighter security bounds or more efficient multi-block constructions.

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