A reference implementation for testing & validating Privacy Amplification algorithms
Project description
The randextract
library is a Python 3 package implementing randomness extractors that can be used to transform
weak random sources into almost-uniform ones. The library implements quantum-proof strong randomness extractors that can
be used in the Privacy Amplification (PA) step of any Quantum Key Distribution (QKD) or Quantum Random Number Generator
(QRNG) protocol. Since quantum-proof strong randomness extractors are also classical-proof, these extractors are also
well-suited for applications that involve only classical or no side-information at all.
Our goal is to provide an easy-to-read reference library, whose correctness can be easily verified, that can be used to validate high performance implementations (usually hardware based) that are more difficult to audit and test.
Structure of the repo
The source code of the library is in src/randextract
, unit and integration tests in tests
, and the documentation in
docs/source
. Additional tools such as plots, datasets used for testing and the scripts to generate them, Jupyter
notebooks, etc. are all in tools
.
Build & install
You can install the latest release of the package using pip
:
pip install randextract
You can also install the current dev version cloning this git repo:
git clone https://github.com/cryptohslu/randextract.git
cd randextract
# (Optionally, create a virtual environment)
python -m venv .venv
source .venv/bin/activate
pip install .
The documentation is available at https://randextract.crypto-lab.ch.
You can also build the documentation locally:
cd docs
make html
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for randextract-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9ce877b260d851a37fd3c4cee425cf00d86118e7258a8a28ace0dbf10137a00 |
|
MD5 | d60a9c77005050d50576f731d7cf1b8f |
|
BLAKE2b-256 | 68db39c4e249d3294baf039f05fc1bc57d8112ed436781c65534d33f30711a41 |