EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Error in "Cert.Keymaterial"

Also by EldoS: CallbackFilter
A component to monitor and control disk activity, track file and directory operations (create, read, write, rename etc.), alter file data, encrypt files, create virtual files.
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?
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:

X509KeyData.IncludeKeyValue = false;

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



But I get the following Exception:


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 :(
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)
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 ]
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: Rethync
The cross-platform framework that simplifies synchronizing data between mobile and desktop applications and servers and cloud storages



Topic viewed 3892 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!