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§

Reference
Parsed <Reference> element.
SignedInfo
Parsed <SignedInfo> element.

Enums§

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_signed_info
Parse a <ds:SignedInfo> element.