Vanilla.PDF  2.0.0
Cross-platform toolkit for creating and modifying PDF documents
c_encryption.h
Go to the documentation of this file.
1#ifndef _C_ENCRYPTION_H
2#define _C_ENCRYPTION_H
3
7
8#ifdef __cplusplus
9extern "C"
10{
11#endif
12
37 typedef void (*EncryptionKeyInitializeFunction)(void);
38
45 typedef void (*EncryptionKeyCleanupFunction)(void);
46
54 typedef error_type (*EncryptionKeyDecryptFunction)(const BufferHandle* data, BufferHandle** result);
55
62 typedef error_type (*EncryptionKeyContainsFunction)(const BufferHandle* issuer, const BufferHandle* serial, boolean_type* result);
63
67 VANILLAPDF_API error_type CALLING_CONVENTION EncryptionKey_CreateCustom(
68 EncryptionKeyInitializeFunction initialize,
69 EncryptionKeyCleanupFunction cleanup,
70 EncryptionKeyDecryptFunction decrypt,
71 EncryptionKeyContainsFunction contains,
72 EncryptionKeyHandle** result
73 );
74
79 VANILLAPDF_API error_type CALLING_CONVENTION EncryptionKey_Release(EncryptionKeyHandle* handle);
80
83#ifdef __cplusplus
84};
85#endif
86
87#endif /* _C_ENCRYPTION_H */
This file contains macro declarations for importing and exporting symbols from library boundaries.
This file contains all type forward declarations returned by the library API.
This file contains types and constants used as parameters or return values.
Represents memory stored data.
Represents encryption key other than password.
error_type CALLING_CONVENTION EncryptionKey_CreateCustom(EncryptionKeyInitializeFunction initialize, EncryptionKeyCleanupFunction cleanup, EncryptionKeyDecryptFunction decrypt, EncryptionKeyContainsFunction contains, EncryptionKeyHandle **result)
Creates a custom EncryptionKeyHandle to provide custom decrypt operation.
error_type CALLING_CONVENTION EncryptionKey_Release(EncryptionKeyHandle *handle)
Decrement the internal reference counter.
uint32_t error_type
This is return value type of all API functions.
Definition c_types.h:25
int8_t boolean_type
Boolean type supported in C.
Definition c_types.h:31