English

Cryptomite: A versatile and user-friendly library of randomness extractors

Cryptography and Security 2025-11-27 v3 Quantum Physics

Abstract

We present Cryptomite, a Python library of randomness extractor implementations. The library offers a range of two-source, seeded and deterministic randomness extractors, together with parameter calculation modules, making it easy to use and suitable for a variety of applications. We also present theoretical results, including new extractor constructions and improvements to existing extractor parameters. The extractor implementations are efficient in practice and tolerate input sizes of up to 240>10122^{40}>10^{12} bits. Contrary to alternatives using the fast Fourier transform, we implement convolutions efficiently using the number-theoretic transform to avoid rounding errors, making them well suited to cryptography. The algorithms and parameter calculation are described in detail, including illustrative code examples and performance benchmarking.

Keywords

Cite

@article{arxiv.2402.09481,
  title  = {Cryptomite: A versatile and user-friendly library of randomness extractors},
  author = {Cameron Foreman and Richie Yeung and Alec Edgington and Florian J. Curchod},
  journal= {arXiv preprint arXiv:2402.09481},
  year   = {2025}
}

Comments

Corrected the proof of Theorem 9 and several minor typos. 26+12 pages (9 figures)

R2 v1 2026-06-28T14:48:52.679Z