EldoS | Feel safer!

Software components for data protection, secure storage and transfer

How the DigestValue is generated?

Also by EldoS: CallbackDisk
Create virtual disks backed by memory or custom location, expose disk images as disks and more.
#27008
Posted: 10/25/2013 07:26:39
by Rodrigo Ramalho (Standard support level)
Joined: 04/26/2012
Posts: 12

Hello,

I would like some help with digest values. We are using the class TElXMLSigner to generate signatures. We put a TElXMLReference with a specific node into the signer. When we try to generate a digest value with the xml of the node into another program, the results differ from the one of TElXMLSigner. We want to know what type of transformation the xml is suffering before applying the digest algorithm. The other program digest algorithm is SHA1 then a Base64 transformation is applied into the SHA1.
#27013
Posted: 10/25/2013 15:27:52
by Dmytro Bogatskyy (Team)

Thank you for contacting us.

Quote
We want to know what type of transformation the xml is suffering before applying the digest algorithm.

Everything is according to the XML-DSig standard. First, transforms are applied to the data/node (if specified in the reference), then algorithm specified in the DigestMethod applied to the transformed data, then Base64 encoding is applied to the digest value.
If you want to know intermediate results (transformed data) before applying digest algorithm you can use a following code:
Code
Buffer : ByteArray := Reference.TransformChain.TransformData(Reference.URINode, xcmCanon);

Reply

Statistics

Topic viewed 400 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS business operates as a division of /n software, inc. For more information, please read the announcement.

Got it!