Expand description
Bridge between ecdsa 0.17 (signature v3 / spki v0.8) and x509-ocsp
(signature v2 / spki v0.7), mirroring ml_dsa_bridge.rs.
produce_bundle and the OCSP response builder require Signer<Sig> + DynSignatureAlgorithmIdentifier from signature v2 / spki v0.7. The p256
0.14 / ecdsa 0.17 line implements signature v3 traits. This module wraps
the v3 types to satisfy the v2 trait bounds.
Wire compatibility: the signature is embedded as a DER BIT STRING over the DER-encoded ECDSA-Sig-Value, and the algorithm identifier is ecdsa-with-SHA256 (1.2.840.10045.4.3.2) with no parameters — the exact encoding the PKCS#11 bridge and the previous ecdsa 0.16 native impls produced.
Structs§
- Ecdsa
P256 Signer - Wrapper around a software P-256
SigningKeyimplementing the signature v2 / spki v0.7 trait setproduce_bundlerequires. - Ecdsa
Signature Bytes - DER-encoded ECDSA-Sig-Value wrapper implementing v2
SignatureBitStringEncoding.
Constants§
- ECDSA_
WITH_ SHA256_ OID - OID for ecdsa-with-SHA256 (RFC 5912 / SEC 2).