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.from_string('SLH-DSA-SHAKE-128s')

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.2.tar.gz (48.5 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.2-py3-none-any.whl (33.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: slh_dsa_botan3-0.1.2.tar.gz
  • Upload date:
  • Size: 48.5 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.2.tar.gz
Algorithm Hash digest
SHA256 a606d4237c79b69e0eb70c4b737466bef822ffaad5a2d3f6b98310da08f9eb6c
MD5 e983517a67af0142005097aeceda6887
BLAKE2b-256 0830beceb25668f24b99fd7e280da76803ee2228d810889986cc01f7090c320c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: slh_dsa_botan3-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 33.8 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0068abd953b9de1ddaec6595321570d83dc558f09294f6f98a808e894d86cb38
MD5 d8959534cb188d7b0fd5e61439596b78
BLAKE2b-256 a8fe46f23f9a28caa6bdaa15346aa2089bf2fa15976a6d99e9c80d220fdeffca

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