Re: Extracting a timestamp from a PKCS#7

From: Michel Gallant (neutron_at_istar.ca)
Date: 10/23/05

  • Next message: lelteto: "RE: Question about OffloadModExpo() Function"
    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


  • Next message: lelteto: "RE: Question about OffloadModExpo() Function"

    Relevant Pages

    • Extracting a timestamp from a PKCS#7
      ... pkcs#7 digital signature. ... I am using MS CryptoAPI and I extract the authenticated attribute ... me with a BYTE* (with the timestamp info). ...
      (microsoft.public.platformsdk.security)
    • Re: Firefox, XML, and Javascript (oh my!)
      ... to load the page with the ugly timestamp in a span, extract the ... timestamp and replace the content of the span with a snazzy formatted ...
      (comp.infosystems.www.authoring.html)
    • Simple CGI Question
      ... I'm trying to extract the PID ... that corresponds to it. ... timestamp. ...
      (perl.beginners)