![]() |
Vanilla.PDF
2.0.0
Cross-platform toolkit for creating and modifying PDF documents
|
Used for document signing. More...
typedef error_type(CALLING_CONVENTION * | SigningKey_Initialize_Function) (void *user_data, MessageDigestAlgorithmType algorithm) |
Initialize signing engine using selected digest algorithm. | |
typedef error_type(CALLING_CONVENTION * | SigningKey_Update_Function) (void *user_data, const BufferHandle *data) |
Insert data into engine for digest calculation. | |
typedef error_type(CALLING_CONVENTION * | SigningKey_Final_Function) (void *user_data, BufferHandle **result) |
Finish the digest calculation and return signed hash. | |
typedef error_type(CALLING_CONVENTION * | SigningKey_Cleanup_Function) (void *user_data) |
Cleanup all dependencies after the signing process has finished. | |
error_type CALLING_CONVENTION | SigningKey_CreateCustom (SigningKey_Initialize_Function sign_init, SigningKey_Update_Function sign_update, SigningKey_Final_Function sign_final, SigningKey_Cleanup_Function sign_cleanup, void *user_data, SigningKeyHandle **result) |
Creates a custom SigningKeyHandle to provide custom sign operation. | |
error_type CALLING_CONVENTION | SigningKey_ToUnknown (SigningKeyHandle *handle, IUnknownHandle **result) |
Reinterpret current object as IUnknownHandle. | |
error_type CALLING_CONVENTION | SigningKey_FromUnknown (IUnknownHandle *handle, SigningKeyHandle **result) |
Convert IUnknownHandle to BufferHandle. | |
error_type CALLING_CONVENTION | SigningKey_Release (SigningKeyHandle *handle) |
Decrement the internal reference counter. | |
Additional Inherited Members | |
![]() | |
error_type CALLING_CONVENTION | IUnknown_AddRef (IUnknownHandle *handle) |
Increment the internal reference counter. | |
![]() | |
error_type CALLING_CONVENTION | IUnknown_Release (IUnknownHandle *handle) |
Decrement the internal reference counter. | |
Used for document signing.
Standard routine for message signing is Initialize, (single or multiple) Update, Final.
typedef error_type(CALLING_CONVENTION * SigningKey_Initialize_Function) (void *user_data, MessageDigestAlgorithmType algorithm) |
Initialize signing engine using selected digest algorithm.
This function should reset all previous settings and prepare for future SigningKey_Update_Function to be called.
|
related |
Insert data into engine for digest calculation.
This function can be called multiple times, if there are more data for signing that would fit in a single buffer.
|
related |
Finish the digest calculation and return signed hash.
This function should allocate buffer, filled with data. The data should be hash value according to algorithm
in SigningKey_Initialize_Function.
Hash should be signed and the result should be either a DER-encoded PKCS#1 binary data object or a DER-encoded PKCS#7 binary data object.
|
related |
Cleanup all dependencies after the signing process has finished.
This function is called when the signing of a file has been finished
|
related |
Decrement the internal reference counter.
When the internal counter reaches zero the object is deleted. Releasing already disposed object causes undefined behavior.