Re: Extracting a timestamp from a PKCS#7
From: Michel Gallant (neutron_at_istar.ca)
Date: 10/23/05
- Previous message: arik_at_codebuildingblocks.com: "Looking for an elliptic curve (EC) Cryptographic Service Provider (CSP)"
- In reply to: smveloso_at_gmail.com: "Extracting a timestamp from a PKCS#7"
- Next in thread: smveloso_at_gmail.com: "Re: Extracting a timestamp from a PKCS#7"
- Reply: smveloso_at_gmail.com: "Re: Extracting a timestamp from a PKCS#7"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Sun, 23 Oct 2005 10:42:47 -0400
The Crypt_ATTR_BLOB contains the asn encoded UTC time.
So you will need to CryptDecodeObject(..) with the oid szOID_RSA_signingTime
See also:
http://groups.google.com/group/microsoft.public.platformsdk.security/browse_thread/thread/e675726633a4c13b/d5bc97504a810cab
- Mitch Gallant
MVP Security
<smveloso@gmail.com> wrote in message news:1129924858.840418.31480@o13g2000cwo.googlegroups.com...
Hi,
I am having problems trying to retrieve the timestamp encoded in a
pkcs#7 digital signature.
I am using MS CryptoAPI and I extract the authenticated attribute
using the CryptMsgGetParam(...) function. After all processing is done,
I get a pointer to a CRYPT_ATTR_BLOB structure, which in turn provides
me with a BYTE* (with the timestamp info).
The problem is how to process this BYTE* to extract the original
timestamp information... how is it encoded ? Does anyone know where can
I find this information ?
Thank you,
Sérgio
- Previous message: arik_at_codebuildingblocks.com: "Looking for an elliptic curve (EC) Cryptographic Service Provider (CSP)"
- In reply to: smveloso_at_gmail.com: "Extracting a timestamp from a PKCS#7"
- Next in thread: smveloso_at_gmail.com: "Re: Extracting a timestamp from a PKCS#7"
- Reply: smveloso_at_gmail.com: "Re: Extracting a timestamp from a PKCS#7"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|