Skip to main content

FIPS-205 SLH-DSA bindings for botan3

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

FIPS-205 SLH-DSA bindings for botan3

The botan library implements NIST's FIP-205 SLH-DSA signature and exposes botan3 python bindings.

This module wraps these bindings to help usage of SLH-DSA in python:

from slh_dsa_botan3 import slh_params

slh_dsa = slh_params()

private_key = slh_dsa.generate_keypair()
public_key = private_key.get_public_key()

message = "hello world"
signature = private_key.sign(message)

assert public_key.verify(message, signature)

See documentation for more examples.

Quick setup

You need a working botan3 installation:

% botan --version
3.7.1

You may need to install python3-botan depending on your distribution:

% python -c 'import botan3; print(botan3.version_string())'
Botan 3.7.1 (release, dated 20250205, revision git:09cc7f97ceb828c19461b2a63f820d3226bb921b, distribution unspecified)

It is recommended to work in a virtual environment as follows:

% python3 -m venv --system-site-packages botan3 venv
% source venv/bin/activate

You can then install slh_dsa_botan3 using the following:

% pip install slh_dsa_botan3

Note that this is experimental and may include mistakes, use with care!

Project details


Download files

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

Source Distribution

slh_dsa_botan3-0.1.1.tar.gz (48.4 kB view details)

Uploaded Source

Built Distribution

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

slh_dsa_botan3-0.1.1-py3-none-any.whl (33.6 kB view details)

Uploaded Python 3

File details

Details for the file slh_dsa_botan3-0.1.1.tar.gz.

File metadata

  • Download URL: slh_dsa_botan3-0.1.1.tar.gz
  • Upload date:
  • Size: 48.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for slh_dsa_botan3-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c2d30a3064bf6cefca4b8f93313e5f267d49796e36489e0c6058e326e46c28d2
MD5 e87f01c753fe5083333988309eef94ec
BLAKE2b-256 ae1cabe7574501437f748ed2f25ef5ec58dc76c2f17ba581886ac8efff1896cc

See more details on using hashes here.

File details

Details for the file slh_dsa_botan3-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: slh_dsa_botan3-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 33.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for slh_dsa_botan3-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 504ac1c0decc1ac38323cb0e8ccd4a79eca241595bb9b20b40b1638e5735f654
MD5 2adbcd9d43d98e2e6ce18922097922fb
BLAKE2b-256 3e43d4054093fe7407c5d8e7d3726d16afac11989fc1d26a43c015578e324159

See more details on using hashes here.

Supported by

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