algovoi-rfc9421-ecdsa
ECDSA (P-256 / P-384) add-on for the AlgoVoi RFC 9421 verifier.
A pure add-on: it does not modify or re-publish the core verifier. It gives
you a drop-in verify_request that accepts Ed25519 (delegated verbatim to the
untouched verifier) plus the two RFC 9421-registered ECDSA suites:
ecdsa-p256-sha256(RFC 9421 3.3.5): P-256, SHA-256, 64-byter‖ssignatureecdsa-p384-sha384(RFC 9421 3.3.6): P-384, SHA-384, 96-byter‖ssignature
The ECDSA path reuses the verifier's already-hardened primitives (Signature-Input
parsing, freshness/replay, Content-Digest, signing-base, downgrade/allow-list) and
adds only the ECDSA signature check. The core verifier stays Ed25519 + PyNaCl-only
and unchanged; this package brings its own cryptography dependency.
from algovoi_rfc9421_ecdsa import verify_request
result = verify_request(
method="POST", authority="api.example.com", path="/a2a",
headers=headers, body=body, public_key=sec1_point_bytes,
allowed_algorithms={"ecdsa-p256-sha256"}, # opt in per request
)
# Ed25519 requests are delegated to the core verifier automatically.
Hardening
Before accepting an ECDSA signature the provider enforces:
- the public-key point is on the curve and not the identity;
- the signature is exactly the curve size (64 / 96 bytes, raw
r‖s, not DER); randsare each in[1, n-1];- optional canonical low-
senforcement (anti-malleability) viaset_strict_low_s(True), off by default for spec interop.
Apache-2.0.
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 algovoi_rfc9421_ecdsa-0.1.0.tar.gz.
File metadata
- Download URL: algovoi_rfc9421_ecdsa-0.1.0.tar.gz
- Upload date:
- Size: 11.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
017c8e78a31c8dab3b888ce3af78d1a6aa09bfb4aae29f5158a9172668262229
|
|
| MD5 |
5471d5cb219edb700fbf87f04a3a9596
|
|
| BLAKE2b-256 |
397f99aca8b59cc31432663975e7c0b8bf6c5dfb3fbdd094a304fcb88dae01ab
|
File details
Details for the file algovoi_rfc9421_ecdsa-0.1.0-py3-none-any.whl.
File metadata
- Download URL: algovoi_rfc9421_ecdsa-0.1.0-py3-none-any.whl
- Upload date:
- Size: 12.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fa03d4d00e44f0071408a698e897eea3d781198c1de9b327b59c8ba65aeac453
|
|
| MD5 |
4204566edf4ea2b5fc41b94257f159a3
|
|
| BLAKE2b-256 |
ecb5c742a88680b965d8109aaf73c054b69c4d300857136c4e79c03af9230168
|