Manuscript Offprint

arXiv:2610.21457

Benchmarking Post-Quantum Key Encapsulation in S3-Compatible Object Storage under Client Concurrency

Revanth Reddy Lingala, K. Gangadhara Rao, Padigela Srujan, Saarthak Manocha, Vainavi Venkat

Revanth Reddy Lingala

Dept. of Information Technology

Chaitanya Bharathi Institute of Technology

Hyderabad, India

revanthreddy0906@gmail.com

K. Gangadhara Rao

Dept. of Information Technology

Chaitanya Bharathi Institute of Technology

Hyderabad, India

kgangadhar_it@cbit.ac.in

Padigela Srujan

Dept. of Information Technology

Chaitanya Bharathi Institute of Technology

Hyderabad, India

padigela.srujan2007@gmail.com

Saarthak Manocha

Dept. of Information Technology

Chaitanya Bharathi Institute of Technology

Hyderabad, India

saarthakmanocha@gmail.com

Vainavi Venkat

Dept. of Information Technology

Chaitanya Bharathi Institute of Technology

Hyderabad, India

vainavivenkat06@gmail.com

Abstract—Data encrypted today with classical public-key algorithms could be decrypted once large quantum computers exist. Cloud object stores keep data for years, so the client-side encryption that protects it must move to post-quantum algorithms such as ML-KEM, which adds a key-encapsulation step and a larger ciphertext to every stored object. So far, the cost of ML-KEM has been measured for the algorithm on its own and for securing network connections, but not for encrypting each object in a storage system that serves many clients at once. It has therefore been unclear whether ML-KEM slows such a system, under which conditions, and why. We address this problem by measuring per-object ML-KEM against classical key exchange on an S3-compatible object store, with two client implementations, two processor types and up to 500 concurrent workers, using pre-registered experiments and statistical equivalence tests. ML-KEM reduced throughput only when the client's processor was at or near full load, with one unexplained exception, and then by 4.0 to 4.9 % in our main client. Controlled experiments on one processor type traced most of that loss to the way the software library was called, and a second, native client showed that the size of the loss depends on the implementation. The lasting cost is storage: 1,056 more bytes per object than with classical key exchange. The results cover two clients, one single-node store and one cloud provider.

Index Terms—ML-KEM, hybrid KEM, envelope encryption, client-side encryption, cloud storage security, HPKE, equivalence testing, performance evaluation

I. INTRODUCTION

Cloud object stores keep data for years, and much of that data is encrypted under keys established with RSA or elliptic-curve Diffie–Hellman. Shor's algorithm would allow a sufficiently large quantum computer to recover those keys, so an adversary who records ciphertext today can decrypt it once such a machine exists, a threat usually called "harvest now, decrypt later". For data at rest the exposure lasts as long as the data is retained. In August 2024 NIST published FIPS 203, standardizing the module-lattice key-encapsulation mechanism ML-KEM [1].

With client-side envelope encryption, as implemented by the Amazon S3 Encryption Client and by Azure Blob Storage client libraries [2], [3], every object is encrypted under its own data key, and that key is protected for the recipient and stored with the object.

A public-key KEM per object is needed only in some deployments. If writer and reader share a symmetric key-encryption key, wrapping the data key with AES is already quantum-safe and no KEM is needed; that is our baseline B1. A public-key mechanism is required when the writer must not be able to decrypt, or does not share a secret with the reader: write-only producers such as log shippers, backup agents and sensors that hold only a public key; objects encrypted to several recipients or to an escrow key; and data handed across organizational boundaries. These deployments use RSA or elliptic-curve key establishment today, and they are the ones that must migrate. For them, ML-KEM places a key establishment and its 1,088-byte ciphertext on every PUT and every GET rather than once per connection.

What is known falls into three groups of measurements. Primitive-level studies report the cost of key generation, encapsulation and decapsulation and the sizes of keys and ciphertexts on several processor families [4], [5], [6], [7]. Studies of post-quantum TLS and KEMTLS measure connection establishment under latency, loss and bandwidth limits [8], [9], [10], [11]. Storage studies measure the S3 interface without cryptography [12] and client-side encryption without post-quantum key establishment [13], [14].

What is not known is the cost on the data path of an object store. None of these measures ML-KEM where an object store would use it: once per object, on a data path whose throughput is set jointly by client CPU, network, metadata handling and the storage server, with many clients at once. A back-of-envelope estimate already says that tens of microseconds of KEM against milliseconds of storage round trip should be invisible. What that estimate cannot say is whether it holds under concurrency, in which regime it fails, by how much, and whether the cause is the KEM computation or the larger ciphertext it carries through the data path (Section II, Table I).

The thesis of this paper is the following. In the configurations we measured, replacing X25519 by per-object ML-KEM lowered throughput only where the client was at or near CPU saturation, with one unexplained exception in the native reader. The size of the loss there depended on the client implementation: it ranged from no measurable loss (0.999 of X25519's throughput, the Python client calling liboqs through one foreign call) through 4.0–4.9% (the same client through the standard binding) to 9.5% (a native Go reader on one core). The cost that every implementation pays is storage: a larger ciphertext with every object. The observations that do not fit this picture are collected in Section V-G.

The contributions are the following.

C1 The saturation-regime result, with a method to apply it: measurements of ML-KEM-768 against X25519 over object size, 1–500 concurrent workers, two client architectures and two client implementations, with the independently restarted run as the experimental unit and pre-registered equivalence tests. We use a CPU accounting identity (Section IV-C) as a method: under client saturation the throughput ratio of two modes is the inverse ratio of their client CPU per request, which turns a migration question into a CPU measurement and a saturation check (Sections V-B–V-C).

C2 A binding artifact, and what it implies for library authors: two pre-registered controls on the x86 Python client show that its client-bound deficit is produced by a library binding that makes four foreign calls per decapsulation, and for 17% by the larger manifest (Section V-C).

C3 The storage cost: the per-object metadata cost of ML-KEM and of two hybrids, separated into ciphertext and encoding, scaled to fleet sizes, and set against the 2 KB limit that Amazon S3 places on user-defined object metadata (Section V-E).

Secondary results are the measured trade-off of bounded session amortization, which saves a few percent of client CPU and changes throughput only on a client-bound workload (Section V-F); the attribution of the store's small-object write ceiling to its metadata path and not to its disk (Section V-B); and the observation that RSA-4096 is the one mode that moves the bottleneck in the Python client. The instrumented client, the harness, the native reader and the analysis pipeline are an artifact that supports these results and are not claimed as a contribution; neither is the architecture or commit protocol, which is not a new cryptographic construction (Table III). The open-loop capacity observations in the supplementary material describe the store, not post-quantum cryptography, and their main lesson is known [15].

The scope of the study is limited as follows. We do not evaluate the security of ML-KEM, side channels, or transport security, which is held constant. All performance statements concern one Python client stack and one small native reader, one single-node MinIO deployment and one cloud provider (Section VI). The native reader covers the GET path of three modes only. Section VI lists the experiments that remain.

This paper measures what per-object ML-KEM-768 costs against RSA-4096, X25519 and symmetric-only baselines on the same data path; how that cost depends on object size, concurrency and a hybrid construction, and what causes it; and what bounded sessions trade for the key-establishment work they save.

References (52)

  • Module-lattice-based key-encapsulation mechanism standard
  • Amazon S3 Encryption Client concepts
  • Client-side encryption for blobs
  • liboqs: C library for prototyping and experimenting with quantum-resistant cryptography, version 0.16.0
  • Performance and storage analysis of CRYSTALS-Kyber as a post quantum replacement for RSA and ECC (opens arXiv in a new tab)
  • Performance analysis and industry deployment of post-quantum cryptography algorithms (opens arXiv in a new tab)
  • Evaluating post-quantum cryptographic algorithms on resource-constrained devices (opens arXiv in a new tab)
  • Benchmarking post-quantum cryptography in TLS
  • Post-quantum authentication in TLS 1.3: A performance study
  • The performance of post-quantum TLS 1.3
  • Post-quantum hybrid KEMTLS performance in simulated and real network environments
  • Analyzing the performance of the S3 object storage API for HPC workloads
  • Delta encoding overhead analysis of cloud storage systems using client-side encryption
  • Benefits of encryption at the storage client
  • Open versus closed: A cautionary tale
  • X-Wing: The hybrid KEM you’ve been looking for
  • X-Wing: General-purpose hybrid post-quantum KEM
  • Hybrid public key encryption
  • Post-quantum and post-quantum/traditional hybrid algorithms for HPKE
  • age v1.3.0: post-quantum recipients
  • KEM combiners
  • Hybrid key encapsulation mechanisms and authenticated key exchange
  • HMAC-based extract-and-expand key derivation function (HKDF)
  • Recommendation for block cipher modes of operation: Galois/Counter Mode (GCM) and GMAC
  • PKCS #1: RSA cryptography specifications version 2.2
  • Elliptic curves for security
  • MinIO object storage server, release RELEASE.2025-10-15T17-29-55Z (repository archived April 2026)
  • The PQXDH key agreement protocol
  • iMessage with PQ3: The new state of the art in quantum-secure messaging at scale
  • A commitment-based hybrid post-quantum cryptographic model for multi-file cloud storage (opens arXiv in a new tab)
  • A Hybrid Post-Quantum Encryption Architecture with Self-Hosted Key Management for SME Cloud Data Protection
  • CRYSTALS-Kyber: A CCA-secure module-lattice-based KEM
  • Post-quantum TLS without handshake signatures
  • Reducing the cost of SSE-KMS with Amazon S3 Bucket Keys
  • Data key caching details
  • Patterns in the chaos: A study of performance variation and predictability in public IaaS clouds
  • Is big data performance reproducible in modern cloud networks?
  • Taming performance variability
  • Scientific benchmarking of parallel computing systems: Twelve ways to tell the masses when reporting performance results
  • Rigorous benchmarking in reasonable time
  • A comparison of the two one-sided tests procedure and the power approach for assessing the equivalence of average bioavailability
  • Equivalence tests: A practical primer for t tests, correlations, and meta-analyses
  • Fast message franking: From invisible salamanders to encryption
  • Partitioning oracle attacks
  • How to abuse and fix authenticated encryption without key commitment
  • Online authenticated-encryption and its nonce-reuse misuse-resistance
  • liboqs-python: Python 3 bindings for liboqs, version 0.16.0.1
  • cryptography, version 50.0.1
  • A primer on the use of equivalence testing for evaluating measurement agreement
  • A simple sequentially rejective multiple test procedure
  • Working with object metadata
  • Artifact review and badging, version 1.1