summaryrefslogtreecommitdiff
path: root/core/fpdfapi/fpdf_parser/cpdf_crypto_handler.h
diff options
context:
space:
mode:
authordsinclair <dsinclair@chromium.org>2016-08-02 10:48:28 -0700
committerCommit bot <commit-bot@chromium.org>2016-08-02 10:48:28 -0700
commit0690c35fec9c320bdc69b4a8678677fe143cee54 (patch)
tree33755ede7db23d5fdd9f4f81e0771dfb6b568389 /core/fpdfapi/fpdf_parser/cpdf_crypto_handler.h
parent8f7970040548ff3550ce450944d39d4660b3d918 (diff)
downloadpdfium-0690c35fec9c320bdc69b4a8678677fe143cee54.tar.xz
Fixup crypto key generation.
This CL fixes up the crypto key copying code to better handle big endian machines. BUG=pdfium:147 Review-Url: https://codereview.chromium.org/2190123002
Diffstat (limited to 'core/fpdfapi/fpdf_parser/cpdf_crypto_handler.h')
-rw-r--r--core/fpdfapi/fpdf_parser/cpdf_crypto_handler.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/fpdfapi/fpdf_parser/cpdf_crypto_handler.h b/core/fpdfapi/fpdf_parser/cpdf_crypto_handler.h
index 3edc47b7b0..52ad4f29c8 100644
--- a/core/fpdfapi/fpdf_parser/cpdf_crypto_handler.h
+++ b/core/fpdfapi/fpdf_parser/cpdf_crypto_handler.h
@@ -62,6 +62,9 @@ class CPDF_CryptoHandler {
int m_KeyLen;
int m_Cipher;
uint8_t* m_pAESContext;
+
+ private:
+ void PopulateKey(uint32_t objnum, uint32_t gennum, uint8_t* key);
};
#endif // CORE_FPDFAPI_FPDF_PARSER_CPDF_CRYPTO_HANDLER_H_