summaryrefslogtreecommitdiff
path: root/core/fpdfapi/parser/cpdf_crypto_handler.h
diff options
context:
space:
mode:
authorArtem Strygin <art-snake@yandex-team.ru>2017-10-03 21:51:18 +0300
committerChromium commit bot <commit-bot@chromium.org>2017-10-03 19:01:05 +0000
commita081931e2b00e3aadff2050f7d253e17c124c69f (patch)
tree1ec6c2f5ba7e7a7d875cffe658e56dbc0803c122 /core/fpdfapi/parser/cpdf_crypto_handler.h
parentc3d5c9746384ccf13617370fbc81397040355c4d (diff)
downloadpdfium-a081931e2b00e3aadff2050f7d253e17c124c69f.tar.xz
Move initialization of CPDF_CryptoHandler into CPDF_SytnaxParser initialization.
Change-Id: I70d04f38767f2c17c41407fc9b4fc25519ba32f4 Reviewed-on: https://pdfium-review.googlesource.com/15330 Commit-Queue: Art Snake <art-snake@yandex-team.ru> Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fpdfapi/parser/cpdf_crypto_handler.h')
-rw-r--r--core/fpdfapi/parser/cpdf_crypto_handler.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/core/fpdfapi/parser/cpdf_crypto_handler.h b/core/fpdfapi/parser/cpdf_crypto_handler.h
index 7175088de4..32eeaef4c9 100644
--- a/core/fpdfapi/parser/cpdf_crypto_handler.h
+++ b/core/fpdfapi/parser/cpdf_crypto_handler.h
@@ -22,14 +22,11 @@ class CPDF_SecurityHandler;
class CPDF_CryptoHandler {
public:
- CPDF_CryptoHandler();
+ CPDF_CryptoHandler(int cipher, const uint8_t* key, int keylen);
~CPDF_CryptoHandler();
static bool IsSignatureDictionary(const CPDF_Dictionary* dictionary);
- bool Init(CPDF_Dictionary* pEncryptDict,
- CPDF_SecurityHandler* pSecurityHandler);
-
std::unique_ptr<CPDF_Object> DecryptObjectTree(
std::unique_ptr<CPDF_Object> object);
@@ -44,7 +41,6 @@ class CPDF_CryptoHandler {
uint8_t* dest_buf,
uint32_t& dest_size);
- bool Init(int cipher, const uint8_t* key, int keylen);
bool IsCipherAES() const;
private: