Vanilla.PDF  2.0.0
Cross-platform toolkit for creating and modifying PDF documents
c_pkcs12_key.h
Go to the documentation of this file.
1#ifndef _C_PKCS12_KEY_H
2#define _C_PKCS12_KEY_H
3
7
8#ifdef __cplusplus
9extern "C"
10{
11#endif
12
39 VANILLAPDF_API error_type CALLING_CONVENTION PKCS12Key_CreateFromFile(string_type path, string_type password, PKCS12KeyHandle** result);
40
47 VANILLAPDF_API error_type CALLING_CONVENTION PKCS12Key_CreateFromBuffer(BufferHandle* data, string_type password, PKCS12KeyHandle** result);
48
52 VANILLAPDF_API error_type CALLING_CONVENTION PKCS12Key_ToEncryptionKey(PKCS12KeyHandle* handle, EncryptionKeyHandle** result);
53
57 VANILLAPDF_API error_type CALLING_CONVENTION PKCS12Key_FromEncryptionKey(EncryptionKeyHandle* handle, PKCS12KeyHandle** result);
58
62 VANILLAPDF_API error_type CALLING_CONVENTION PKCS12Key_ToSigningKey(PKCS12KeyHandle* handle, SigningKeyHandle** result);
63
67 VANILLAPDF_API error_type CALLING_CONVENTION PKCS12Key_FromSigningKey(SigningKeyHandle* handle, PKCS12KeyHandle** result);
68
73 VANILLAPDF_API error_type CALLING_CONVENTION PKCS12Key_Release(PKCS12KeyHandle* handle);
74
77#ifdef __cplusplus
78};
79#endif
80
81#endif /* _C_PKCS12_KEY_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.
PKCS#12 container is often used in cryptography to store asymmetric key pair.
error_type CALLING_CONVENTION PKCS12Key_FromEncryptionKey(EncryptionKeyHandle *handle, PKCS12KeyHandle **result)
Convert SigningKeyHandle to EncryptionKeyHandle.
error_type CALLING_CONVENTION PKCS12Key_Release(PKCS12KeyHandle *handle)
Decrement the internal reference counter.
error_type CALLING_CONVENTION PKCS12Key_FromSigningKey(SigningKeyHandle *handle, PKCS12KeyHandle **result)
Convert SigningKeyHandle to PKCS12KeyHandle.
error_type CALLING_CONVENTION PKCS12Key_ToSigningKey(PKCS12KeyHandle *handle, SigningKeyHandle **result)
Reinterpret current object as SigningKeyHandle.
error_type CALLING_CONVENTION PKCS12Key_CreateFromFile(string_type path, string_type password, PKCS12KeyHandle **result)
Uses PKCS#12 standard format to access asymmetric keys.
error_type CALLING_CONVENTION PKCS12Key_ToEncryptionKey(PKCS12KeyHandle *handle, EncryptionKeyHandle **result)
Reinterpret current object as EncryptionKeyHandle.
error_type CALLING_CONVENTION PKCS12Key_CreateFromBuffer(BufferHandle *data, string_type password, PKCS12KeyHandle **result)
Uses PKCS#12 standard format to access asymmetric keys.
Used for document signing.
uint32_t error_type
This is return value type of all API functions.
Definition c_types.h:25
const char * string_type
C-Style string.
Definition c_types.h:82