My question is, from what part of signature is requestStream taken? I need compare hash in ArchiveTimeStamp/EncapsulatedTimeStamp element (which I have decoded) with hash, which is counted from some part of signature, when archive timestamp is created. Or is there some other option, how to check, if archive timestamp is valid?

I’ve noticed there is no Support Access Ticket linked to your user account on EldoS site. Technical Support is provided to customers with the linked Support Access Ticket. You will find your Support Access Ticket together with all the details about how to use it in the registration e-mail that we’ve sent to you upon the purchase.

If you are evaluating the product and don't have a license yet, please let us know and then you can have support according to Basic support level. Basic support level includes answering basic technical questions that appear during product evaluation period. We also offer Premium support for a purchase from https://www.eldos.com/support/calc.php . You can use Premium Support to get higher level of assistance during your evaluation of our products.

I need compare hash in ArchiveTimeStamp/EncapsulatedTimeStamp element (which I have decoded) with hash, which is counted from some part of signature, when archive timestamp is created. Or is there some other option, how to check, if archive timestamp is valid?

No, you only need to call TElXAdESVerifier.Validate(..) method. If the Validate() method result is not valid, then you should check the Reason parameter value.
For example, if some of archive timestamps is invalid the Reason value would contain xvrArchiveTimestampInvalid flag. TimestampInvalid flag means that either a timestamp is corrupted, or timestamped data doesn't match or timestamp signing certificate is invalid.
If you need to known which Archive timestamp is invalid (if you have several of them), you can check them individually, by traversing them using TElXAdESVerifier.ArchiveTimestamps/ArchiveTimestampCount properties. Then, for example to check if the timestamped data is correct you can use TElXAdESVerifier.CheckTimestamp(..) method. For details, please refer to XMLBlackbox\AdvancedSigner sample.

As can I have one more question, when I call TElXAdESVerifier.CheckTimestamp(..), it return bool value. It is possible to get reason, when value is false?

The value of this method is false if the hash value of timestamped data doesn't match message imprint. In other words, it means that timestamped data was modified. It is not possible to detect what exactly data have changed.

We use cookies to help provide you with the best possible online experience. By using this site, you agree that we may store and access cookies on your device. You can find out more about and set your own preferences here.