다음을 통해 공유


CardSignData function

This topic is not current. For the most current information about the Smart Card API, see Smart Card Minidriver Specification.

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 [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Header
Cardmod.h

See also

Microsoft Base Smart Card Cryptographic Service Provider