Skip to main content

Module transforms

Module transforms 

Source
Expand description

Transform pipeline for XMLDSig <Reference> processing.

Implements XMLDSig §6.6: each <Reference> specifies a chain of transforms applied sequentially to produce bytes for digest computation.

The pipeline is a simple Vec<Transform> iterated front-to-back — a dramatic simplification of xmlsec1’s bidirectional push/pop doubly-linked list with auto-inserted type adapters.

§Supported transforms

TransformDirectionPriority
Enveloped signatureNodeSet → NodeSetP0 (SAML)
Inclusive C14N 1.0/1.1NodeSet → BinaryP0
Exclusive C14N 1.0NodeSet → BinaryP0
Base64 decodeBinary → BinaryP1 (future)

Enums§

Transform
A single transform in the pipeline.

Constants§

DEFAULT_IMPLICIT_C14N_URI
The implicit default canonicalization URI applied when no explicit C14N transform is present in a <Reference>.
ENVELOPED_SIGNATURE_URI
The algorithm URI for the enveloped signature transform.
XPATH_TRANSFORM_URI
The algorithm URI for the XPath 1.0 transform.

Functions§

execute_transforms
Execute a chain of transforms for a single <Reference>.
parse_transforms
Parse a <Transforms> element into a Vec<Transform>.