EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Error in "Cert.Keymaterial"

Also by EldoS: CallbackDisk
Create virtual disks backed by memory or custom location, expose disk images as disks and more.
#21131
Posted: 08/22/2012 11:05:41
by Bremen Sistemas (Basic support level)
Joined: 08/20/2012
Posts: 17

This signature is verified by a webservice.
I think my problem is steps 2 and 3.
2 - Convert the string to ASCII to bytes.
3 - Generate HASH (byte array) using SHA1.

Is there a way I can directly pass it by SBB?
Steps 2 and 3?
#33628
Posted: 06/10/2015 15:36:28
by Sebastian Schenk (Standard support level)
Joined: 10/02/2013
Posts: 3

Ok I'm now a step further because I because I set the following:

Code
X509KeyData.IncludeKeyValue = false;


So I'm able to generate a SignatureHash in the "OnRemoteSign" Method as follows:

Quote

3E88...819A


But I get the following Exception:

Quote

Object Null Reference Exception:
at SBXMLSig.TElXMLSigner.SignECDSA(Byte[] Buf, TElECKeyMaterial KeyMaterial, Int16 AMethod)
at SBXMLSig.TElXMLSigner.CalculateSignatureValue(Byte[] Buf)
at SBXMLSig.TElXMLSigner.Save(TElXMLDOMNode& Node)
at SmartSigner.SignXMLFile.SignFile(TElXMLDOMDocument XMLDocument, String sFileName, String sSignaturePosition, String sXPath, String sSigId)



And I now don't know the reason why :(
#33629
Posted: 06/10/2015 15:38:45
by Sebastian Schenk (Standard support level)
Joined: 10/02/2013
Posts: 3

Here is the Hash in full lenght, I saw it's shorten it the quote text:

5E86...F8A3 (64 byte)
#33630
Posted: 06/10/2015 15:40:07
by Sebastian Schenk (Standard support level)
Joined: 10/02/2013
Posts: 3

Ok last try as an attachment....


[ Download ]
#33631
Posted: 06/10/2015 15:48:36
by Dmytro Bogatskyy (EldoS Corp.)

Please don't crosspost the messages to forum and helpdesk. We'll continue in helpdesk.
Also by EldoS: RawDisk
Access locked and protected files in Windows, read and write disks and partitions and more.

Reply

Statistics

Topic viewed 4070 times

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




|

Back to top

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

Got it!