|
Haru Free PDF Library
|
#include "hpdf_mmgr.h"

Go to the source code of this file.
Data Structures | |
| struct | HPDF_MD5Context |
| struct | _HPDF_ARC4_Ctx_Rec |
| struct | _HPDF_Encrypt_Rec |
Macros | |
| #define | HPDF_ID_LEN 16 |
| #define | HPDF_PASSWD_LEN 32 |
| #define | HPDF_ENCRYPT_KEY_MAX 16 |
| #define | HPDF_MD5_KEY_LEN 16 |
| #define | HPDF_PERMISSION_PAD 0xFFFFFFC0 |
| #define | HPDF_ARC4_BUF_SIZE 256 |
Typedefs | |
| typedef struct HPDF_MD5Context | HPDF_MD5_CTX |
| typedef struct _HPDF_ARC4_Ctx_Rec | HPDF_ARC4_Ctx_Rec |
| typedef struct _HPDF_Encrypt_Rec * | HPDF_Encrypt |
| typedef struct _HPDF_Encrypt_Rec | HPDF_Encrypt_Rec |
Functions | |
| void | HPDF_MD5Init (struct HPDF_MD5Context *ctx) |
| void | HPDF_MD5Update (struct HPDF_MD5Context *ctx, const HPDF_BYTE *buf, HPDF_UINT32 len) |
| void | HPDF_MD5Final (HPDF_BYTE digest[16], struct HPDF_MD5Context *ctx) |
| void | HPDF_PadOrTrancatePasswd (const char *pwd, HPDF_BYTE *new_pwd) |
| void | HPDF_Encrypt_Init (HPDF_Encrypt attr) |
| void | HPDF_Encrypt_CreateUserKey (HPDF_Encrypt attr) |
| void | HPDF_Encrypt_CreateOwnerKey (HPDF_Encrypt attr) |
| void | HPDF_Encrypt_CreateEncryptionKey (HPDF_Encrypt attr) |
| void | HPDF_Encrypt_InitKey (HPDF_Encrypt attr, HPDF_UINT32 object_id, HPDF_UINT16 gen_no) |
| void | HPDF_Encrypt_Reset (HPDF_Encrypt attr) |
| void | HPDF_Encrypt_CryptBuf (HPDF_Encrypt attr, const HPDF_BYTE *src, HPDF_BYTE *dst, HPDF_UINT len) |
| #define HPDF_ARC4_BUF_SIZE 256 |
| #define HPDF_ENCRYPT_KEY_MAX 16 |
| #define HPDF_ID_LEN 16 |
| #define HPDF_MD5_KEY_LEN 16 |
| #define HPDF_PASSWD_LEN 32 |
| #define HPDF_PERMISSION_PAD 0xFFFFFFC0 |
| typedef struct _HPDF_ARC4_Ctx_Rec HPDF_ARC4_Ctx_Rec |
| typedef struct _HPDF_Encrypt_Rec* HPDF_Encrypt |
| typedef struct _HPDF_Encrypt_Rec HPDF_Encrypt_Rec |
| typedef struct HPDF_MD5Context HPDF_MD5_CTX |
| void HPDF_Encrypt_CreateEncryptionKey | ( | HPDF_Encrypt | attr | ) |
| void HPDF_Encrypt_CreateOwnerKey | ( | HPDF_Encrypt | attr | ) |
| void HPDF_Encrypt_CreateUserKey | ( | HPDF_Encrypt | attr | ) |
| void HPDF_Encrypt_CryptBuf | ( | HPDF_Encrypt | attr, |
| const HPDF_BYTE * | src, | ||
| HPDF_BYTE * | dst, | ||
| HPDF_UINT | len | ||
| ) |
| void HPDF_Encrypt_Init | ( | HPDF_Encrypt | attr | ) |
| void HPDF_Encrypt_InitKey | ( | HPDF_Encrypt | attr, |
| HPDF_UINT32 | object_id, | ||
| HPDF_UINT16 | gen_no | ||
| ) |
| void HPDF_Encrypt_Reset | ( | HPDF_Encrypt | attr | ) |
| void HPDF_MD5Final | ( | HPDF_BYTE | digest[16], |
| struct HPDF_MD5Context * | ctx | ||
| ) |
| void HPDF_MD5Init | ( | struct HPDF_MD5Context * | ctx | ) |
| void HPDF_MD5Update | ( | struct HPDF_MD5Context * | ctx, |
| const HPDF_BYTE * | buf, | ||
| HPDF_UINT32 | len | ||
| ) |
| void HPDF_PadOrTrancatePasswd | ( | const char * | pwd, |
| HPDF_BYTE * | new_pwd | ||
| ) |