Skip to main content

Module parse

Module parse 

Source
Expand description

Parsing of XMLDSig <Signature> and <SignedInfo> elements.

Implements strict child order enforcement per XMLDSig §4.1:

<Signature>
  <SignedInfo>
    <CanonicalizationMethod Algorithm="..."/>
    <SignatureMethod Algorithm="..."/>
    <Reference URI="..." Id="..." Type="...">+
  </SignedInfo>
  <SignatureValue>...</SignatureValue>
  <KeyInfo>?
  <Object>*
</Signature>

Structs§

KeyInfo
Parsed <KeyInfo> element.
Reference
Parsed <Reference> element.
SignedInfo
Parsed <SignedInfo> element.
X509DataInfo
Parsed <X509Data> children.

Enums§

KeyInfoSource
Top-level key material source parsed from <KeyInfo>.
KeyValueInfo
Parsed <KeyValue> dispatch result.
ParseError
Errors during XMLDSig element parsing.
SignatureAlgorithm
Signature algorithms supported for signing and verification.

Functions§

find_signature_node
Find the first <ds:Signature> element in the document.
parse_key_info
Parse <ds:KeyInfo> and dispatch supported child sources.
parse_signed_info
Parse a <ds:SignedInfo> element.