FIPS-205 SLH-DSA bindings for botan3
Project description
FIPS-205 SLH-DSA bindings for botan3
The botan cryptographic library
implements NIST's
FIP-205
SLH-DSA
signature algorithm, using the botan3
python bindings.
This 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)
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 still 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file slh_dsa_botan3-0.1.0.tar.gz.
File metadata
- Download URL: slh_dsa_botan3-0.1.0.tar.gz
- Upload date:
- Size: 48.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
171bffbf7c5fee886f42bdd6da08188564368e7e35ef3e0756f1ac1d62cb9da8
|
|
| MD5 |
32a49b76457fc40e5b98dab77d87dd45
|
|
| BLAKE2b-256 |
bd86fa3289745bfa288e71da36887055156202831e44a7cb03640c7bc95bd5fe
|
File details
Details for the file slh_dsa_botan3-0.1.0-py3-none-any.whl.
File metadata
- Download URL: slh_dsa_botan3-0.1.0-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bb9c8b641f0eb759c2b567a4d2f4328b1c7dc8883ffff2c0bee4532ef01351e4
|
|
| MD5 |
ea874b64f2a4153f361f4f51a3de2d35
|
|
| BLAKE2b-256 |
0fba6b04f3c43afecd697fd04055d6f30c3c03133444effe1663d07d87bca629
|