Hi!
I create application in csharp, .net 2.0. I must get (decode) from
SignedXml.Signa ture.SignatureV alue hash. This hash I need to send to
TSA with TSP RFC 3161. I have spend lot of time read msdn and some
news gropus but dont see any method for this. Can any one show me the
way how do this?
Thanks for help!
Iguana 3 5146
Iguana wrote:
Hi!
I create application in csharp, .net 2.0. I must get (decode) from
SignedXml.Signa ture.SignatureV alue hash. This hash I need to send to
TSA with TSP RFC 3161. I have spend lot of time read msdn and some
news gropus but dont see any method for this. Can any one show me the
way how do this?
Thanks for help!
Iguana
Hi, Iguana
Yes, the signature is available trough the Signature.Signa tureValue Property
(as described in http://msdn2.microsoft.com/en-us/lib...ignature.aspx).
But whats TSA ? B)
For crypto stuff I usually do the Bouncy Castle C# API
( http://www.bouncycastle.org/csharp/). They cover TSP - RFC 3161, as you
can see from the link.
Regards,
Petar Atanasov http://a-wake.net
On 11 Maj, 15:35, Petar Atanasov <ppa_i...@mail. bgwrote:
Iguana wrote:
Hi!
I create application in csharp, .net 2.0. I must get (decode) from
SignedXml.Signa ture.SignatureV alue hash. This hash I need to send to
TSA with TSP RFC 3161. I have spend lot of time read msdn and some
news gropus but dont see any method for this. Can any one show me the
way how do this?
Thanks for help!
Iguana
Hi, Iguana
Yes, the signature is available trough the Signature.Signa tureValue Property
(as described inhttp://msdn2.microsoft .com/en-us/library/system.security .cryptography.. .).
But whats TSA ? B)
For crypto stuff I usually do the Bouncy Castle C# API
(http://www.bouncycastle.org/csharp/). They cover TSP - RFC 3161, as you
can see from the link.
Regards,
Petar Atanasovhttp://a-wake.net
HI Petar!
TSA is Time Stamp Authority. RFC 3161 describes protocol TSP (Time
Stamp Protocol). TSP request for timestamp must have signature hash.
This hash need to be extracted from signature value - with this I have
problem.
I know about Bouncy Castle, but must do everything with .net security
and xml library.
Iguana
Iguana wrote:
On 11 Maj, 15:35, Petar Atanasov <ppa_i...@mail. bgwrote:
>Iguana wrote:
>>Hi! I create application in csharp, .net 2.0. I must get (decode) from SignedXml.Sig nature.Signatur eValue hash. This hash I need to send to TSA with TSP RFC 3161. I have spend lot of time read msdn and some news gropus but dont see any method for this. Can any one show me the way how do this? Thanks for help! Iguana
Hi, Iguana
Yes, the signature is available trough the Signature.Signa tureValue Property (as described inhttp://msdn2.microsoft .com/en-us/library/system.security .cryptography.. .). But whats TSA ? B)
For crypto stuff I usually do the Bouncy Castle C# API (http://www.bouncycastle.org/csharp/). They cover TSP - RFC 3161, as you can see from the link.
Regards, Petar Atanasovhttp://a-wake.net
HI Petar!
TSA is Time Stamp Authority. RFC 3161 describes protocol TSP (Time
Stamp Protocol). TSP request for timestamp must have signature hash.
This hash need to be extracted from signature value - with this I have
problem.
I know about Bouncy Castle, but must do everything with .net security
and xml library.
Iguana
Hmm think you should ask in in the microsoft.publi c.security.cryp to -
your question tends to reach out the topics discussed here...
Anyway - I’m 90% sure that you’ll have to read some structure (e.g.
CRYPT_TIME_STAM P_REQUEST_INFO holds the timestamp value) in order to get
the hash value.
Good luck :)
Regards,
Petar Atanasov http://a-wake.net This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Murali |
last post by:
I have a requirement where I have to use two unsigned ints as a key in a STL
hash map.
A couple of ways to do this is
1. create a struct with two unsigned ints and use that as key (write my own
HashFcn and EqualKey template args) or,
2. convert the two unsigned ints to char*s, concatenate them and use that as
Key.
For method 1, the difficulty I am having is in writing the HashFcn. HashFcn
requires the following method
|
by: Bryan Olson |
last post by:
The current Python standard library provides two cryptographic
hash functions: MD5 and SHA-1 . The authors of MD5 originally
stated:
It is conjectured that it is computationally infeasible to
produce two messages having the same message digest.
That conjecture is false, as demonstrated by Wang, Feng, Lai and
Yu in 2004 . Just recently, Wang, Yu, and Lin showed a short-
cut solution for finding collisions in SHA-1 . Their result
|
by: kdotsky |
last post by:
Hello,
I am using some very large dictionaries with keys that are long strings
(urls). For a large dictionary these keys start to take up a
significant amount of memory. I do not need access to these keys -- I
only need to be able to retrieve the value associated with a certain
key, so I do not want to have the keys stored in memory. Could I just
hash() the url strings first and use the resulting integer as the key?
I think what I'm...
|
by: Arash Partow |
last post by:
Hi all,
I've ported various hash functions to python if anyone is interested:
def RSHash(key):
a = 378551
b = 63689
hash = 0
|
by: Johan Tibell |
last post by:
I would be grateful if someone had a minute or two to review my hash
table implementation. It's not yet commented but hopefully it's short
and idiomatic enough to be readable. Some of the code (i.e. the
get_hash function) is borrowed from various snippets I found on the
net. Thee free function could probably need some love. I have been
thinking about having a second linked list of all entries so that the
cost of freeing is in proportion to...
| |
by: Hallvard B Furuseth |
last post by:
Is the code below valid? Generally a value must be accessed
through the same type it was stored as, but there is an exception
for data stored through a character type. I'm not sure if that
applies in this case though:
#include <limits.h>
unsigned foo(void) {
static const union {
unsigned char str;
|
by: Douglas Dude |
last post by:
how much time does it take to lok for a value - key in a hash_map ?
Thanks
|
by: beginner |
last post by:
Hi All.
I'd like to do the following in more succint code:
if k in b:
a=b
else:
a={}
b=a
|
by: NeilReed |
last post by:
Hello,
For reasons I can not control I am having to compose some code to talk to a b2b ebxml system.
There is no WSDL so Im having to code it all.
The posts are made via HTTP using SOAP with an XML payload.
Step 1:
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |