Thanks in advance.
Alessio
It is not a good idea to manually start with a pkcs1 blob (the encrypted
hash) and construct the pkcs7 (although it is possible). For starters,
CryptSignHash creates the signed hash in REVERSE byte order to that embedded
in the pkcs7 structure. Second, you will often want the signature to cover
other attributes (other than the original base content). This is managed
fairly easily using CryptSignMessage.
Here's a simple view of pkcs7 versus pkcs1:
http://www.jensign.com/JavaScience/sigview
- Mitch Gallant
http://www.jensign.com
"Alessio" <ales...@dataflex.it> wrote in message
news:880b5ae2-6383-4fd2...@t54g2000hsg.googlegroups.com...
I think that I can't use CryptSignMessage becose I only have the hash
of the file that I have to sign.
So I've thought that I can sign the hash using CryptSignHash and then
build a PKCS#7 like a detached signature.
Do you think it's possible?
The only function that I can use is CryptEncodeObject or there is
another way to do that?
Best regards.
Alessio
i have the same question,have you got a solution?