CSSM_VerifyData

Purpose

This function verifies the input data against the provided signature.

Format

CSSM_BOOL CSSMAPI CSSM_VerifyData 
              (CSSM_CC_HANDLE CCHandle,
              const CSSM_DATA_PTR DataBufs,
              uint32 DataBufCount,
              const CSSM_DATA_PTR Signature)

Parameters

Input
CCHandle
The handle that describes the context of this cryptographic operation used to link to the CSP-managed information.
DataBufs
A pointer to a vector of CSSM_DATA structures that contain the data to be operated on.
DataBufCount
The number of DataBufs to be verified.
Signature
A pointer to a CSSM_DATA structure which contains the signature and the size of the signature.

Return Value

A CSSM_TRUE return value signifies the signature was successfully verified. When CSSM_FALSE is returned, either the signature was not successfully verified or an error has occurred. Use CSSM_GetError to obtain the error code.

Related Information

CSSM_SignData
CSSM_VerifyDataInit
CSSM_VerifyDataUpdate
CSSM_VerifyDataFinal