Skip to main content

hash-drbg

SP800-90A Hash DRBG

CI/CD CI - Test CD - Build Documentation Status
Package PyPI - Version PyPI - Python Version
Meta Hatch project linting - Ruff code style - Black License - apache-2.0

Pure python implementation of NIST SP800-90A Hash DRBG tested against NIST test vectors.

User documentation is hosted on readthedocs.

Installation

python3 -m pip install hdrbg

Test with pytest

pytest-3

Test without pytest

Tests can run without creating/installing the package:

python3 -m test.test

you can also run each test separately:

python3 -m test.test_cavp

Build the package

Build is done using hatchling. The script build allows to build for different version of python3:

./build python3.10

Create a new version

Version is managed by hatch-vcs, you just need to create a tag in github.

Using provided pipenv

See pipenv-howto.md

Launch linters

They use the configuration from pyproject.toml

pipenv run ./lint

Test

pipenv run pytest

Building the docs

cd docs
pipenv install --dev
pipenv run make html

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hdrbg-1.1.0.tar.gz (1.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hdrbg-1.1.0-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file hdrbg-1.1.0.tar.gz.

File metadata

  • Download URL: hdrbg-1.1.0.tar.gz
  • Upload date:
  • Size: 1.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for hdrbg-1.1.0.tar.gz
Algorithm Hash digest
SHA256 b30eddf37594e59542d9e2ba6ccccc227bb973c7057837e6d78e301f39dc16ed
MD5 d86b7db7ee7be95c35365b82836fc4c2
BLAKE2b-256 19c6d9bbc2b4d32e1c79346178f8b314e4ad7bba48c6ad28e536f87cde82533f

See more details on using hashes here.

Provenance

The following attestation bundles were made for hdrbg-1.1.0.tar.gz:

Publisher: python-publish.yml on sebastien-riou/hash-drbg

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hdrbg-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: hdrbg-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for hdrbg-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 18a8e8d2113175180c081a4151f9c5c50cb5885af97a2a9cdbff1348406250ee
MD5 15cab8a5cfb8098d275406a95335cdab
BLAKE2b-256 5260e96182b29a75f4f51b0d6c9de625f9dd98daab1c83aafebf02239796c55a

See more details on using hashes here.

Provenance

The following attestation bundles were made for hdrbg-1.1.0-py3-none-any.whl:

Publisher: python-publish.yml on sebastien-riou/hash-drbg

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page