|
LibreOffice Module sdext (master) 1
|
#include <pdfparse.hxx>#include <comphelper/hash.hxx>#include <rtl/strbuf.hxx>#include <rtl/ustring.hxx>#include <rtl/ustrbuf.hxx>#include <rtl/digest.h>#include <rtl/cipher.h>#include <sal/log.hxx>#include <zlib.h>#include <math.h>#include <map>#include <string.h>Go to the source code of this file.
Classes | |
| struct | pdfparse::EmitImplData |
| struct | pdfparse::PDFFileImplData |
Namespaces | |
| namespace | pdfparse |
Macros | |
| #define | ENCRYPTION_KEY_LEN 16 |
| #define | ENCRYPTION_BUF_LEN 32 |
Functions | |
| static void | unzipToBuffer (char *pBegin, unsigned int nLen, sal_uInt8 **pOutBuf, sal_uInt32 *pOutLen) |
| static void | pad_or_truncate_to_32 (const OString &rStr, char *pBuffer) |
| static sal_uInt32 | password_to_key (const OString &rPwd, sal_uInt8 *pOutKey, PDFFileImplData const *pData, bool bComputeO) |
| static bool | check_user_password (const OString &rPwd, PDFFileImplData *pData) |
Variables | |
| const sal_uInt8 | nPadString [32] |
| #define ENCRYPTION_BUF_LEN 32 |
Definition at line 1010 of file pdfentries.cxx.
| #define ENCRYPTION_KEY_LEN 16 |
Definition at line 1009 of file pdfentries.cxx.
|
static |
Definition at line 1149 of file pdfentries.cxx.
References ENCRYPTION_BUF_LEN, ENCRYPTION_KEY_LEN, comphelper::Hash::finalize(), i, nPadString, password_to_key(), pData, and comphelper::Hash::update().
Referenced by pdfparse::PDFFile::setupDecryptionData().
|
static |
Definition at line 1101 of file pdfentries.cxx.
References i, and nPadString.
Referenced by password_to_key().
|
static |
Definition at line 1114 of file pdfentries.cxx.
References comphelper::Hash::calculateHash(), ENCRYPTION_BUF_LEN, comphelper::Hash::finalize(), i, pad_or_truncate_to_32(), pData, and comphelper::Hash::update().
Referenced by check_user_password(), and pdfparse::PDFFile::setupDecryptionData().
|
static |
Definition at line 724 of file pdfentries.cxx.
Referenced by pdfparse::PDFObject::emit(), and pdfparse::PDFObject::writeStream().
| const sal_uInt8 nPadString[32] |
Definition at line 1095 of file pdfentries.cxx.
Referenced by check_user_password(), and pad_or_truncate_to_32().