Resource: signature.verify.dsa.xml
[This sample code uses features that were implemented in MSXML 5.0 for Microsoft Office Applications. XML digital signatures are not supported in MXSML 6.0 and later.]
<?xml version="1.0" encoding="UTF-8"?>
<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
<ds:SignedInfo>
<ds:CanonicalizationMethod
Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/>
<ds:SignatureMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#dsa-sha1"/>
<ds:Reference URI="#obj2"
Type="http://www.w3.org/2000/09/xmldsig#;Object">
<ds:DigestMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
<ds:DigestValue>UDmNPz5eONRovrmzaXoZ2vm5YJs=</ds:DigestValue>
</ds:Reference>
</ds:SignedInfo>
<ds:SignatureValue>
VN9YkEwx1vpu5L/0K2VkY838duwNc+DdudPa7ZOxMcrr5mGw/yL0Kg==
</ds:SignatureValue>
<ds:Object Id="obj1" MimeType="text/plain">Hello, World!</ds:Object>
<ds:Object Id="obj2">Hi, everyone!</ds:Object>
<KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#">
<KeyValue>
<DSAKeyValue>
<P>
wLHwVoUYz2txHkKnKUQoN/u1ftCXqw61edb/
pC1WPv6EV6FBXl0E8vGHHjfzm2ZLm4Gu/
j8vsNXYDTi8zGFXmhqOO5Me2sUpOgbUzZpeZ7ZN0YMaFXWzgeKDg/
gb9DrK/USj4BGueB3HAzmFQT8Qu6SM/YBGZKph7JTddYXbodU=
</P>
<Q>nkI1onvHNR4tMSvPMc0rhOBHgME=</Q>
<G>
QD6OUOIeg64nvtvVbp1Rblw+ehmpPCIjG1Aq+
w67C3PHqRfor9fBeKf6J6Ap1i1QsBBSau6SOOL
LkHvR2jwsgyAdYMYSuUYoTJZ66pGkMy2U7121/
oKrlkF8MrEZh3esA2JfvF+h396K2Wa/
Nvl9s8xTcDhxLepcndAewKhz5nY=
</G>
<Y>
rv1GX+/qY99y0xGrdaJANlm7YjJ5/
j7famSv6cHVwtY79WXFFBDlFGNVOK
GiYGsRG6BXX00G4yHLOndIsywsMYD
ejB+TuUfvkGcEPGDZErtPy1F/xgJ4
8jhPttwrv8Wy3k279+ufB27NpBC/v
W2Rxf3bh22L7V0KNa0VuTwie2g=
</Y>
<PgenCounter>AAAAZQ==</PgenCounter>
<Seed>soBYpnG6Yy/B4Or2y1zqB2mZr/U=</Seed>
</DSAKeyValue>
</KeyValue>
</KeyInfo>
</ds:Signature>