Structure for Signature Handler. More...
#include <fpdf_signature_r.h>
Public Attributes | |
FS_LPVOID | clientData |
User-defined data. More... | |
FS_RESULT(* | StartCalcDigest )(FS_LPVOID clientData, FSPDF_SIGNATURE sig, FSCRT_FILE file, const FS_DWORD *byteRangeArray, FS_DWORD sizeofArray, FS_LPVOID *context) |
Foxit PDF SDK calls this interface to start a custom digest calculation. More... | |
FS_RESULT(* | ContinueCalcDigest )(FS_LPVOID clientData, FS_LPVOID context, FSCRT_PAUSEHANDLER *pause) |
Foxit PDF SDK calls this interface to continue a custom digest calculation. More... | |
FS_RESULT(* | FinishCalcDigest )(FS_LPVOID clientData, FS_LPVOID context, FSCRT_BSTR *digest) |
Foxit PDF SDK calls this interface to finish the custom digest calculation and get the digest. More... | |
FS_RESULT(* | Sign )(FS_LPVOID clientData, FS_LPVOID context, FSPDF_SIGNATURE sig, const FSCRT_BSTR *digest, FSCRT_BSTR *signedData) |
Foxit PDF SDK calls this interface to sign a document. More... | |
FS_RESULT(* | Verify )(FS_LPVOID clientData, FS_LPVOID context, FSPDF_SIGNATURE sig, const FSCRT_BSTR *digest, const FSCRT_BSTR *signedData) |
Verify a specified signature. More... | |
Structure for Signature Handler.
FS_LPVOID FSPDF_SIGNATUREHANDLER::clientData |
User-defined data.
FS_RESULT(* FSPDF_SIGNATUREHANDLER::ContinueCalcDigest) (FS_LPVOID clientData, FS_LPVOID context, FSCRT_PAUSEHANDLER *pause) |
Foxit PDF SDK calls this interface to continue a custom digest calculation.
[in] | clientData | Pointer to the user-supplied data. |
[in] | context | Pointer to context handle which is created by callback function FSPDF_SIGNATUREHANDLER::StartCalcDigest. |
[in] | pause | Pointer to a FSCRT_PAUSEHANDLER structure to determine break state. If it is NULL or FSCRT_PAUSEHANDLER::NeedPauseNow is NULL, this function will not return until it is over or error occurs. |
FS_RESULT(* FSPDF_SIGNATUREHANDLER::FinishCalcDigest) (FS_LPVOID clientData, FS_LPVOID context, FSCRT_BSTR *digest) |
Foxit PDF SDK calls this interface to finish the custom digest calculation and get the digest.
[in] | clientData | Pointer to the user-supplied data. |
[in] | context | Pointer to context handle which is created by callback function FSPDF_SIGNATUREHANDLER::StartCalcDigest. |
[out] | digest | Pointer to a FSCRT_BSTR that receives the digest. A digest buffer is not required to be an UTF-8 string. If it is NULL or FSCRT_PAUSEHANDLER::NeedPauseNow is NULL, this function will not return until it is over or error occurs. |
FS_RESULT(* FSPDF_SIGNATUREHANDLER::Sign) (FS_LPVOID clientData, FS_LPVOID context, FSPDF_SIGNATURE sig, const FSCRT_BSTR *digest, FSCRT_BSTR *signedData) |
Foxit PDF SDK calls this interface to sign a document.
[in] | clientData | Pointer to any type data which indicates user-defined data. |
[in] | context | Pointer to context handle which is created by callback function FSPDF_SIGNATUREHANDLER::StartCalcDigest. |
[in] | sig | Handle to a FSPDF_SIGNATURE object returned by function FSPDF_Doc_GetSignature or FSPDF_Signature_Add. |
[in] | digest | Pointer to a FSCRT_BSTR structure that indicates the digest of source file buffer to be signed. |
[out] | signedData | Pointer to a FSCRT_BSTR structure that receives the signed data. A signed buffer is not required to be an UTF-8 string. |
FS_RESULT(* FSPDF_SIGNATUREHANDLER::StartCalcDigest) (FS_LPVOID clientData, FSPDF_SIGNATURE sig, FSCRT_FILE file, const FS_DWORD *byteRangeArray, FS_DWORD sizeofArray, FS_LPVOID *context) |
Foxit PDF SDK calls this interface to start a custom digest calculation.
[in] | clientData | Pointer to the user-supplied data. |
[in] | sig | Handle to a FSPDF_SIGNATURE object returned by function FSPDF_Doc_GetSignature or FSPDF_Signature_Add. |
[in] | file | Handle to a FSCRT_FILE object. When signing a signature, it is the source file object to be signed. When verifying a signature field, it is the source file object to be verified. |
[in] | byteRangeArray | Pointer to a byte range array of the signed document(not the source document). Elements in this array always be in pairs of offset-size values in order of : offset,size,offset,size... |
[in] | sizeofArray | Count of elements in byte range array byteRangeArray. |
[out] | context | A pointer specifies a context handle. Return NULL if fails. |
FS_RESULT(* FSPDF_SIGNATUREHANDLER::Verify) (FS_LPVOID clientData, FS_LPVOID context, FSPDF_SIGNATURE sig, const FSCRT_BSTR *digest, const FSCRT_BSTR *signedData) |
Verify a specified signature.
[in] | clientData | Pointer to any type data which indicates user-defined data. |
[in] | context | Pointer to context handle which is created by callback function FSPDF_SIGNATUREHANDLER::StartCalcDigest. |
[in] | sig | Handle to a FSPDF_SIGNATURE object returned by function FSPDF_Doc_GetSignature or FSPDF_Signature_Add. |
[in] | digest | Pointer to a FSCRT_BSTR structure that indicates the digest of source file buffer to be verified. |
[in] | signedData | Pointer to a FSCRT_BSTR structure which indicates the signed data. A signed data buffer is not required to be an UTF-8 string. |