01.01.2015 Views

Acrobat Digital Signature API Reference - Adobe Partners

Acrobat Digital Signature API Reference - Adobe Partners

Acrobat Digital Signature API Reference - Adobe Partners

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

PubSec Methods<br />

General PubSec Methods<br />

2<br />

PSDataBufferEnum<br />

ASBool PSDataBufferEnum (PSDataBuffer dataBuffer,<br />

ASInt32 maxSize, ASUns8 **pReturnBuffer,<br />

ASInt32 *pReturnSize);<br />

Description<br />

Gets bytes of data to digest when signing or verifying, in chunks of a specified size.<br />

Continues getting data chunks until all of the data in the data buffer has been returned.<br />

A handler will use this call when computing its own data digest, to get the next blob of<br />

bytes to digest. The dataBuffer object keeps track of the bytes that have been returned,<br />

of how many bytes remain to be returned, and of the byte ranges of data to be provided.<br />

When signing or verifying a PDDoc, the data buffer object is a PDDoc handle and the bytes<br />

returned will be those defined by /ByteRange in the signature object dictionary. See the PDF<br />

<strong>Reference</strong> for details.<br />

The PSDataBufferDigest uses this method when computing the digest for the data.<br />

Parameters<br />

dataBuffer<br />

maxSize<br />

pReturnBuffer<br />

pReturnSize<br />

The buffer containing the data.<br />

The maximum number of bytes to return in the return buffer.<br />

(Filled by the method) A pointer to the buffer containing the<br />

current bytes to be processed. If NULL, an error occurred and you<br />

should abort the enumeration.<br />

(Filled by the method) A pointer to the size in bytes of the return<br />

buffer. When 0, do not process the return buffer, but continue<br />

enumerating until the method returns false. Always less than<br />

maxSize.<br />

Return Value<br />

true as long as there is more data to process, false when the end of the buffer is<br />

reached.<br />

Header File<br />

PubSecHFT.h<br />

Related Methods<br />

PSDataBufferDigest<br />

<strong>Acrobat</strong> <strong>Digital</strong> <strong>Signature</strong> <strong>API</strong> <strong>Reference</strong> 27

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!