Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The CardSignData function, defined by a smart card module, creates a digital signature for the specified block of data.
Syntax
DWORD WINAPI CardSignData(
__in PCARD_DATA pCardData,
__inout PCARD_SIGNING_INFO pInfo
);
Parameters
pCardData [in]
A pointer to a CARD_DATA structure received from a call to the CardAcquireContext function.pInfo [in, out]
A pointer to a CARD_SIGNING_INFO structure that specifies the data to sign and the keys and hashing algorithm with which to sign the data. On output, the structure contains the signed data.
Return Value
If the function succeeds, the function returns zero.
If the function fails, it returns a nonzero error value.
Remarks
This function can either pad the block of data on the smart card or pad the data by using the PFN_CSP_PAD_DATA callback function.
Requirements
| Minimum supported client | Windows XP, Windows 2000 Professional with SP4 |
| Minimum supported server | Windows Server 2003, Windows 2000 Server with SP4 |
| Header | Cardmod.h |
See Also
Microsoft Base Smart Card Cryptographic Service Provider
Send comments about this topic to Microsoft
Build date: 3/5/2009