Skip to main content
QUICK REVIEW

[Paper Review] Egalitarian computing

Alex Biryukov, Dmitry Khovratovich|arXiv (Cornell University)|Jun 11, 2016
Cryptography and Data SecurityComputer Science18 references9 citations
TL;DR

This paper introduces egalitarian computing, a paradigm that equalizes the cost-performance ratio between defenders and attackers by integrating memory-hard functions into cryptographic schemes. Using Argon2 as a foundation, it proposes MTP (memory-hard Proof-of-Work) and MHE (memory-hard encryption), which resist GPU, FPGA, and ASIC acceleration by demanding high memory bandwidth and capacity, thereby making offline attacks prohibitively expensive for adversaries while remaining efficient for legitimate users.

ABSTRACT

In this paper we explore several contexts where an adversary has an upper hand over the defender by using special hardware in an attack. These include password processing, hard-drive protection, cryptocurrency mining, resource sharing, code obfuscation, etc. We suggest memory-hard computing as a generic paradigm, where every task is amalgamated with a certain procedure requiring intensive access to RAM both in terms of size and (very importantly) bandwidth, so that transferring the computation to GPU, FPGA, and even ASIC brings little or no cost reduction. Cryptographic schemes that run in this framework become egalitarian in the sense that both users and attackers are equal in the price-performance ratio conditions. Based on existing schemes like {Argon2} and the recent generalized-birthday proof-of-work, we suggest a generic framework and two new schemes: MTP, a memory-hard Proof-of-Work based on the memory-hard function with fast verification and short proofs. It can be also used for memory-hard time-lock puzzles. {MHE}, the concept of memory-hard encryption, which utilizes available RAM to strengthen the encryption for the low-entropy keys (allowing to bring back 6 letter passwords).

Motivation & Objective

  • Address the growing disparity between defenders and attackers who leverage specialized hardware (e.g., GPUs, ASICs) to break password hashing, encryption, and proof-of-work schemes.
  • Counter the trend where attackers achieve massive speedups through custom hardware, especially in password cracking and cryptocurrency mining.
  • Develop a unified framework—egalitarian computing—where all parties, including adversaries, face equivalent computational costs by making memory bandwidth and capacity the dominant cost factor.
  • Design practical, secure, and efficient schemes that are resistant to hardware acceleration while remaining feasible for standard users.
  • Revive the use of short passwords and lightweight encryption by enhancing their security through memory-hard primitives, reducing reliance on long keys or complex protocols.

Proposed method

  • Use memory-hard functions (MHPFs), particularly Argon2, as a core component to force high memory bandwidth and capacity usage, making GPU, FPGA, and ASIC acceleration ineffective.
  • Design MTP (Memory-hard Time-lock Puzzle) as a progress-free Proof-of-Work scheme that allows fast verification and short proofs, with 2 GB RAM required to generate a proof.
  • Implement MHE (Memory-hard Encryption) by integrating the MHPF into a symmetric encryption scheme, where both header and body memory blocks are computed using Argon2, ensuring that decryption requires full memory access.
  • Structure the scheme so that header blocks depend on a salt and message, while body blocks depend on ciphertext and header, preventing precomputation or delegation of decryption.
  • Tune parameters such as the number of lanes (l=4) in Argon2 to optimize performance, achieving ~0.7 cpb for header and ~4 cpb for body processing.
  • Ensure security through collision resistance of the compression function F and pseudorandomness of the block cipher E, with security bounds up to the birthday limit of the underlying primitives.

Experimental results

Research questions

  • RQ1Can a cryptographic scheme be designed such that the cost of performing a single computation is equivalent across all hardware platforms, including consumer CPUs and specialized hardware?
  • RQ2To what extent can memory bandwidth and capacity be used as a dominant cost factor to neutralize the advantage of GPUs, FPGAs, and ASICs in password cracking and proof-of-work attacks?
  • RQ3Is it feasible to build a memory-hard encryption scheme that strengthens weak keys (e.g., 6-character passwords) without sacrificing performance for legitimate users?
  • RQ4Can a memory-hard Proof-of-Work scheme be both progress-free and efficiently verifiable, enabling practical deployment in spam countermeasures and time-lock puzzles?
  • RQ5How can memory-hard functions be integrated into existing cryptographic primitives like encryption and proof-of-work while preserving security and efficiency?

Key findings

  • MTP requires 2 GB of RAM to generate a proof and can be initialized and start producing proofs in under 1 second, outperforming competitors like Equihash in the same memory budget.
  • The MTP scheme supports fast verification and short proofs, making it suitable for deployment in spam countermeasures and time-lock puzzles.
  • MHE ensures that an adversary cannot delegate decryption without full access to both header and ciphertext blocks, and must recompute missing blocks at a high computational cost.
  • With 1/5 of the required memory, an adversary must make 344 times more calls to the compression function F, making memory-reducing attacks infeasible even on specialized hardware.
  • The header phase of MHE runs at ~0.7 cpb (cycles per byte), and the body phase at ~4 cpb, achieving performance comparable to AES-GCM and AES-XTS for practical use.
  • The scheme achieves CPA security under standard assumptions, including collision resistance of the compression function F and pseudorandomness of the block cipher E, up to the birthday bound.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.