XML Signature example




info about the ->
data that
is signed


data that is ->
signed




digest of data ->


the signature ->
info about ->
the signature
key
 
<Signature Id="MyFirstSignature"
           xmlns="http://www.w3.org/2000/09/xmldsig#"> 
 <SignedInfo> 
  <CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/> 
  <SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#dsa-sha1"/> 
  <Reference
    URI="http://www.w3.org/TR/2000/REC-xhtml1-20000126/">
   <Transforms> 
    <Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/> 
   </Transforms> 
   <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/> 
   <DigestValue>j6lwx3rvEPO0vKtMup4NbeVu8nk=</DigestValue>
  </Reference> 
 </SignedInfo>
 <SignatureValue>MC0CFFrVLtRlk=...</SignatureValue>
 <KeyInfo> 
  <KeyValue>
   <DSAKeyValue> 
    <P>...</P><Q>...</Q><G>...</G><Y>...</Y> 
   </DSAKeyValue> 
  </KeyValue> 
 </KeyInfo>
</Signature