Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Signer authenticated attribute

83 views
Skip to first unread message

Vishal Agarwal[MSFT]

unread,
Mar 16, 2004, 1:26:52 AM3/16/04
to
What's the attribute you want to put?

Thanks,
Vishal [MSFT]

--
This posting is provided "AS IS" with no warranties, and confers no rights
"Massimo Gaddini" <anon...@discussions.microsoft.com> wrote in message
news:B7B0F78B-73C6-458A...@microsoft.com...
> Hi,
> how i can insert a signer authenticated attribute during the signing
process?
> I sign one file with CryptSignMessage API function and I pass it the
CRYPT_SIGN_MESSAGE_PARA structure.
> The signing process work but i don't know how to set the field rgAuthAttr
in the CRYPT_SIGN_MESSAGE_PARA structure.
> Which CryptoAPI function must i call ?
>
> Thanks
> Massimo Gaddini
>


Massimo Gaddini

unread,
Mar 16, 2004, 12:46:07 PM3/16/04
to
Well, i want to put the "signingTime" attribute first.
Where can i find a complete list of available attributes, with their OID and meaning?

Thanks,
Massimo Gaddini


----- Vishal Agarwal[MSFT] wrote: -----

Vishal Agarwal[MSFT]

unread,
Mar 17, 2004, 12:51:18 PM3/17/04
to
You will have to create a CRYPT_ATTRIBUTE structure with oid as
szOID_RSA_signingTime and set its reference as the value of rgAuthAttr.
Its a single valued attribute with CRYPT_ATTR_BLOB containing the asn
encoded UTC time (You can use CryptEncodedObject with the same Oid to obtain
the encoded data).

Depending on the attribute you want and if its a known attribute, you should
find it in the help for CryptEncodeObject or in Wincrypt.h

Thanks,
Vishal [MSFT]

--
This posting is provided "AS IS" with no warranties, and confers no rights
"Massimo Gaddini" <anon...@discussions.microsoft.com> wrote in message

news:3B6D154C-AA3D-4AD3...@microsoft.com...

0 new messages