Skip to main content

Module ecdsa_bridge

Module ecdsa_bridge 

Source
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§

EcdsaP256Signer
Wrapper around a software P-256 SigningKey implementing the signature v2 / spki v0.7 trait set produce_bundle requires.
EcdsaSignatureBytes
DER-encoded ECDSA-Sig-Value wrapper implementing v2 SignatureBitStringEncoding.

Constants§

ECDSA_WITH_SHA256_OID
OID for ecdsa-with-SHA256 (RFC 5912 / SEC 2).