Skip to main content

Module mutation

Module mutation 

Source
Expand description

Streaming XML mutation helpers for the XMLDSig signing pipeline.

Signing cannot mutate roxmltree’s read-only DOM. These helpers validate structure with roxmltree, then rewrite the document with quick-xml.

Enums§

XmlMutationError
Errors produced by XMLDSig XML mutation helpers.

Functions§

append_signature_to_root
Append a generated XMLDSig <Signature> template as the last child of the source document root.
fill_digest_values
Fill XMLDSig <DigestValue> elements in document order.
fill_key_info
Fill the direct <Signature>/<KeyInfo> child with XML child content.
fill_signature_value
Fill the direct <Signature>/<SignatureValue> child for a signing template.
fill_signature_values
Fill XMLDSig <SignatureValue> elements in document order.
fill_signed_info_digest_values
Fill <DigestValue> elements for direct <SignedInfo>/<Reference> children.