EldoS | Feel safer!

Software components for data protection, secure storage and transfer

PKCS #11 support for Windows Mobile

Also by EldoS: RawDisk
Access locked and protected files in Windows, read and write disks and partitions and more.
#5803
Posted: 04/09/2008 08:27:28
by Mathias L. (Basic support level)
Joined: 04/04/2008
Posts: 13

I managed to get it to work with SignedCms. I don't know what the problem with SignCubes is though. We'll contact the authors and inform them about the issue.

Sorry for blaming your product, and thanks for all your help so far.

Best regards,
Mathias
#5843
Posted: 04/11/2008 05:09:25
by Mathias L. (Basic support level)
Joined: 04/04/2008
Posts: 13

Doing further development, I came across another small thing.

I hooked the OnProgress event before signing, timestamping, and verifying some data. Here are the results:

Code
Signing: 0 / 12
Signing: 12 / 12
[b]Timestamping: 235 / 51[/b]
Timestamping: 1241 / 2920
Timestamping: 2920 / 2920
Verifying: 0 / 12
Verifying: 12 / 12


What is weird is the bold line, saying there's more current data than in total. How can this be explained? Also, there's no event for 0 / 2920.
#5844
Posted: 04/11/2008 06:22:43
by Ken Ivanov (EldoS Corp.)

Mmm, TElMessageSigner does not fire OnProgress at all when timestamping the message. Would you be so kind to provide us the code you are using?
#5845
Posted: 04/11/2008 06:39:58
by Mathias L. (Basic support level)
Joined: 04/04/2008
Posts: 13

Of course, here's a snippet I put together for you:

Code
private static void Sign_OnProgress(object sender, long total, long current, ref bool cancel)
{
   Console.WriteLine("Signing: {0} / {1}", current, total);
}

private static void Timestamp_OnProgress(object sender, long total, long current, ref bool cancel)
{
   Console.WriteLine("Timestamping: {0} / {1}", current, total);
}

private static void OnProgressTest(TElMemoryCertStorage store)
{
   TElMessageSigner signer = new TElMessageSigner();
   if (store != null)
      signer.CertStorage = store;
   
   signer.OnProgress += new TSBProgressEvent(Sign_OnProgress);
   
   TElHTTPSClient httpClient = new TElHTTPSClient();
   httpClient.OnProgress += new TSBProgressEvent(Timestamp_OnProgress);

   TElHTTPTSPClient tspClient = new TElHTTPTSPClient();
   tspClient.HTTPClient = httpClient;
   tspClient.URL = "http://timestamping.edelweb.fr/service/tsp";
   signer.TSPClient = tspClient;

   byte[] data = Encoding.Default.GetBytes("Hello World!");

   byte[] signature = new byte[0];
   int size = 0;
   signer.Sign(data, ref signature, ref size, true);
   signature = new byte[size];
   signer.Sign(data, ref signature, ref size, true);
}


And the output:

Code
Signing: 0 / 12
Signing: 12 / 12
Timestamping: 235 / 51
Timestamping: 1241 / 2910
Timestamping: 2910 / 2910

#5846
Posted: 04/11/2008 07:35:02
by Ken Ivanov (EldoS Corp.)

Got it -- it's TElHTTPSClient who incorrectly reports progress. Will be fixed.

Actually, TElHTTPSClient.OnProgress reports progress for two consecutive operations, (a) sending a request and (b) receiving a response. So you will get two series of OnProgress calls for a single Post() or Get() method call.
#5847
Posted: 04/11/2008 07:41:46
by Mathias L. (Basic support level)
Joined: 04/04/2008
Posts: 13

Alright then. I'll be waiting for the next release before implementing progress bars in our application.
#5910
Posted: 04/17/2008 04:37:06
by Mathias L. (Basic support level)
Joined: 04/04/2008
Posts: 13

Just downloaded the latest version and everything works well now. Thank you.

Btw, is SecureBlackbox certified in any way? Maybe Common Criteria EAL3 or 4?
#5913
Posted: 04/17/2008 04:49:25
by Eugene Mayevski (EldoS Corp.)

SecureBlackbox is not certified as we are not a US company and we don't target governmental institutions specifically. We were interested in FIPS certification, but it's cost is prohibitive (over $100K to certify all functionality of SBB).


Sincerely yours
Eugene Mayevski
#6270
Posted: 05/15/2008 05:04:37
by Mathias L. (Basic support level)
Joined: 04/04/2008
Posts: 13

Hello,

I've got another question concerning TElMessageSigner.OnProgress() which I want to use for a progress bar. What I find strange is that progress is being reported (up to 100%) before the CSP asks for a signing password. How can this be explained?
#6271
Posted: 05/15/2008 05:30:24
by Mykola Olshevsky (Basic support level)
Joined: 07/07/2005
Posts: 450

It reports progress in hashing of the data being signed.
Also by EldoS: Rethync
The cross-platform framework that simplifies synchronizing data between mobile and desktop applications and servers and cloud storages

Reply

Statistics

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