I have an example of a XML file in which a DigestValue is produced, see below. The DigestValue is shown as:
wJsL4RtLToFeHW/xt2ewbAAiNxk= When I calculate the DigestValue for the following: <ns1:Operation Id="MsgOperation" soapenv:mustUnderstand="0" xsi:type="xsd:string" xmlns:ns1="http://www.ros.ie/schemas/service/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">CT1/File</ns1:Operation> I get the DigestValue of: dRohRaB4At8XvIYb5nMGjaDe+Sw= Could someone please advise what I need to do to get the correct DigestValue? My code that produces a Digest is proven and I know it to be correct, I expect I need to add a namespace into the data being hashed. I would appreciate some urgent advise. Thanks. ... <ns1:Operation Id="MsgOperation" soapenv:mustUnderstand="0" xsi:type="xsd:string" xmlns:ns1="http://www.ros.ie/schemas/service/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">CT1/File</ns1:Operation> ... <ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#"> <ds:SignedInfo> <ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/> <ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/> <ds:Reference URI="#MsgOperation"> <ds:Transforms> <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/> </ds:Transforms> <ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/> <ds:DigestValue>wJsL4RtLToFeHW/xt2ewbAAiNxk=</ds:DigestValue> ... -- View this message in context: http://www.nabble.com/computing-DigestValue-tf3902092.html#a11062276 Sent from the OpenSSL - Dev mailing list archive at Nabble.com. ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [email protected] Automated List Manager [EMAIL PROTECTED]
