Expand description
XMLDSig and Exclusive C14N for XML document signing.
Produces standard XMLDSig signatures verifiable by xmlsec1, browser-
native XMLDSig, and existing OIML CNML verifiers. Direct integration
point with the CNML project.
See TODO.roadmap/32-cert-delegation-cms-xmldsig.md for full spec.
Structs§
- KeyInfo
- Key information.
- Reference
- A reference (something being signed).
- Signed
Info - SignedInfo — the part that gets signed.
- XmlD
SigSignature - XMLDSig Signature structure.
Enums§
- Canonicalization
- Canonicalization algorithm.
- Canonicalization
Error - Canonicalization errors.
- Signature
Algorithm - Signature algorithm.
- Transform
- Transform applied before digesting.
- XmlD
SigError - Errors during XMLDSig operations.
Functions§
- canonicalize
- Canonicalize an XML document per RFC 3076 (Canonical XML, no comments).
- canonicalize_
exclusive - Mock canonicalization: returns the input unchanged. Real impl would implement RFC 3076 (Inclusive) or Exclusive C14N.
- sha256_
digest - Compute a SHA-256 digest over
data. Returns the digest bytes.