Secure and efficient random functions with variable-length output

Yan Zhu, Di Ma, Changjun Hu, Gail-Joon Ahn, Hongxin HuJ. Netw. Comput. Appl 2014

TL;DR

This paper introduces a new family of cryptographic primitives (SqHash, SqMAC, SqPRG) designed for efficiency on resource-constrained devices like mobile phones. By leveraging a novel "circular convolution with carry bit" operation and focusing on the "hidden number problem" and "hard-core predicate" for provable security, these schemes offer a compelling balance of performance and cryptographic assurance, outperforming existing methods like SHA-2 in certain aspects.

What Problem Does This Paper Address?

The paper tackles a critical challenge in modern computing: the need for secure cryptographic functions that can operate efficiently on devices with limited processing power and memory, such as smartphones and PDAs. Existing cryptographic primitives, like hash functions, MACs, and pseudorandom generators (PRGs), often fall into two camps: those that are fast but lack provable security (and are thus vulnerable to attacks), and those that are cryptographically secure but too slow for practical use on these devices. This creates a gap where systems are either insecure or unusable. The authors aim to bridge this gap by developing a new family of primitives that are both provably secure and performant enough for mobile environments.

Methods

The core of the proposed solution lies in a novel approach that combines several key techniques:

  • Modular Squaring and Truncation: The foundation of their schemes (SqHash, SqMAC, SqPRG) is based on modular squaring operations (e.g., m² mod N). To achieve variable-length output and improve efficiency, they employ truncation, specifically taking the most significant bits (MSB) of the result.
  • Circular Convolution with Carry Bit: To further enhance performance, especially on hardware with limited arithmetic capabilities, the authors replace the computationally expensive modular multiplication with a "circular convolution with carry bit" operation. This operation is designed to be more efficient for ALU processing.
  • Provable Security: The security of their constructions is grounded in established cryptographic assumptions:
  • Hidden Number Problem (HNP): For SqHash and SqMAC, security is based on the difficulty of the HNP, which relates to finding hidden numbers in a specific algebraic structure.
  • Hard-Core Predicate: For SqPRG, security relies on the concept of a hard-core predicate of a one-way function, meaning that a small, predictable part of the output is as hard to guess as inverting the entire function.
  • Unified Framework: The authors emphasize designing these primitives within a unified framework to simplify implementation and understanding for developers.

Datasets

Not discussed in the paper. The paper focuses on theoretical constructions and experimental evaluation of their algorithms, rather than training on specific datasets.

Key Insights and Ideas

  • Circular Convolution as a Performance Booster: The most significant insight is the successful application of "circular convolution with carry bit" to replace traditional modular multiplication. This technique dramatically improves performance, especially on hardware with limited arithmetic capabilities, by leveraging bitwise operations more effectively.
  • MSB Truncation for Variable Output: Using the most significant bits (MSB) of the squared output provides a straightforward way to achieve variable-length outputs, a crucial feature for many applications, while maintaining a good level of randomness.
  • HNP and Hard-Core Predicates as Security Foundations: The paper demonstrates that established cryptographic hardness assumptions like the Hidden Number Problem and hard-core predicates can be effectively used to build provably secure primitives that are also efficient.
  • Trade-off between Output Length and Security: The authors highlight that for a given security parameter, a longer output length generally leads to higher security, but also impacts performance. Their work aims to find an optimal balance.

Key Results

  • Performance Improvements: The proposed SqHash, SqMAC, and SqPRG schemes demonstrate significantly better performance compared to traditional square-based algorithms, with computational overheads reduced from O(n²) to O(nk) (where k is the output length). This is particularly evident in their experimental results, showing faster execution times.
  • Provable Security: The schemes are proven secure under the Hidden Number Problem and hard-core predicate assumptions, providing a strong theoretical guarantee against attacks.
  • Good Average-Case Randomness: Statistical tests (entropy, Chi-Squared, significance, Monte-Carlo) indicate that the output of SqHash exhibits good average-case randomness, comparable to or better than SHA-2 and the original Square algorithm.
  • Efficiency on Mobile Devices: The algorithms are designed to be easily implemented and take advantage of ALU capabilities, making them suitable for resource-constrained mobile devices.

Limitations and Future Work

  • Computational Overhead: While improved, the schemes still involve computational overhead. The paper suggests further optimization through techniques like "Convol-MSB-IMP" and leveraging bit-parallel processors.
  • Security Proofs: The security proofs are based on specific assumptions (HNP, hard-core predicates). While these are standard, the practical security in real-world scenarios always depends on the strength of these assumptions.
  • Further Optimization: The authors mention that their "Convol-MSB-IMP" algorithm can be further improved by using bit-parallel processors and cyclic left shift operations.
  • Application-Specific Tuning: The paper suggests that the output length k can be tuned based on specific application security requirements, implying that further research could explore optimal k values for different use cases.
  • Exploration of Other Primitives: The unified framework suggests that this approach could be extended to other cryptographic primitives.

Summary updated

BibTeX
@article{zhu2014secure,
  author = {Yan Zhu and Di Ma and Changjun Hu and Gail-Joon Ahn and Hongxin Hu},
  title = {{Secure and efficient random functions with variable-length output}},
  journal = {J. Netw. Comput. Appl.},
  year = {2014},
  doi = {10.1016/j.jnca.2014.07.033},
}
Figure