Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
cpdf_security_handler.cpp File Reference

(9c1f44f67466fea2fb20bb6f31fea388d8c65961)

#include "core/fpdfapi/parser/cpdf_security_handler.h"
#include <stdint.h>
#include <time.h>
#include <algorithm>
#include <utility>
#include "core/fdrm/fx_crypt.h"
#include "core/fpdfapi/parser/cpdf_array.h"
#include "core/fpdfapi/parser/cpdf_crypto_handler.h"
#include "core/fpdfapi/parser/cpdf_dictionary.h"
#include "core/fpdfapi/parser/cpdf_object.h"
#include "core/fpdfapi/parser/cpdf_string.h"
#include "core/fxcrt/data_vector.h"
#include "core/fxcrt/fx_memcpy_wrappers.h"
#include "core/fxcrt/fx_random.h"
#include "third_party/base/check.h"
#include "third_party/base/check_op.h"
#include "third_party/base/notreached.h"
+ Include dependency graph for cpdf_security_handler.cpp:

Go to the source code of this file.

Macros

#define FX_GET_32WORD(n, b, i)
 

Functions

static bool LoadCryptInfo (const CPDF_Dictionary *pEncryptDict, const ByteString &name, CPDF_CryptoHandler::Cipher *cipher, size_t *keylen_out)
 

Macro Definition Documentation

◆ FX_GET_32WORD

#define FX_GET_32WORD ( n,
b,
i )
Value:
{ \
(n) = (uint32_t)( \
((uint64_t)(b)[(i)] << 24) | ((uint64_t)(b)[(i) + 1] << 16) | \
((uint64_t)(b)[(i) + 2] << 8) | ((uint64_t)(b)[(i) + 3])); \
}
GLboolean GLboolean GLboolean b
GLfloat n
[4]

Definition at line 92 of file cpdf_security_handler.cpp.

Function Documentation

◆ LoadCryptInfo()

static bool LoadCryptInfo ( const CPDF_Dictionary * pEncryptDict,
const ByteString & name,
CPDF_CryptoHandler::Cipher * cipher,
size_t * keylen_out )
static

Definition at line 231 of file cpdf_security_handler.cpp.

References CPDF_Dictionary::GetIntegerFor(), CPDF_Dictionary::GetIntegerFor(), CPDF_CryptoHandler::kAES, CPDF_CryptoHandler::kNone, CPDF_CryptoHandler::kRC4, and fxcrt::ByteString::operator==().

+ Here is the call graph for this function: